Skip to content

Commit

Permalink
DBT-363 add support for BU Weimar DOI and URN
Browse files Browse the repository at this point in the history
  • Loading branch information
yagee-de committed Dec 14, 2023
1 parent 5c6969d commit 6e6d5e8
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/main/resources/META-INF/resources/oai/set_urn-weimar.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<ListSets xmlns="http://www.openarchives.org/OAI/2.0/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/ http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd">
<set>
<setSpec>urn-weimar</setSpec>
<setName>URNs documents of Bauhaus-Universität Weimar</setName>
</set>
</ListSets>
4 changes: 4 additions & 0 deletions src/main/resources/config/dbt/messages_de.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ button.done = Fertigstellen
component.mods.metaData.dictionary.oai = OAI Freigabe
component.opc.result.head.hits = Es wurden {1} Treffer gefunden.
component.opc.result.pageTitle = Suchergebnisse
component.pi.register.Uni-Weimar-Datacite = BU Weimar DOI registrieren
component.pi.register.modal.text.Uni-Weimar-Datacite = Sind Sie sich sicher, dass Sie eine BU Weimar DOI (10.25643) vergeben m\u00F6chten. Diese w\u00E4re permanent und kann nicht gel\u00F6scht werden.
component.pi.register.Uni-Weimar-DNBURN = BU Weimar URN registrieren
component.pi.register.modal.text.Uni-Weimar-DNBURN = Sind Sie sich sicher, dass Sie eine BU Weimar URN (urn:nbn:de:gbv:wim2-dbt-*) vergeben m\u00F6chten. Diese w\u00E4re permanent und kann nicht gel\u00F6scht werden.
component.rc.attendees = Teilnehmer Liste
component.rc.attendees.emptyList = Keine Teilnehmer gefunden!
component.rc.attendees.invalidKey = Ung\u00FCltiger Zugriffsschl\u00FCssel
Expand Down
4 changes: 4 additions & 0 deletions src/main/resources/config/dbt/messages_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ button.done = Done
component.mods.metaData.dictionary.oai = OAI enabling
component.opc.result.head.hits = Found {1} records.
component.opc.result.pageTitle = Search results
component.pi.register.Uni-Weimar-Datacite = register BU Weimar DOI
component.pi.register.modal.text.Uni-Weimar-Datacite = Are you sure you want to register a BU Weimar DOI (10.25643)? This would be permanent and can not be deleted.
component.pi.register.Uni-Weimar-DNBURN = register BU Weimar URN
component.pi.register.modal.text.Uni-Weimar-DNBURN = Are you sure you want to register a BU Weimar URN (urn:nbn:de:gbv:wim2-dbt-*)? This would be permanent and can not be deleted.
component.rc.attendees = List of attendees
component.rc.attendees.emptyList = No attendees was found!
component.rc.attendees.invalidKey = Invalid accesskey
Expand Down
38 changes: 37 additions & 1 deletion src/main/resources/config/dbt/mycore.properties
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,40 @@ MCR.PI.Service.Datacite.RegisterURLContext=receive/$ID

MCR.PI.Generator.MapObjectIDDOI.Prefix.dbt_mods=%MCR.DOI.Prefix%/dbt.

# Uni Weimar

MCR.PI.MetadataService.Uni-Weimar-MODSDOI=org.mycore.mods.identifier.MCRMODSDOIMetadataService
MCR.PI.MetadataService.Uni-Weimar-MODSDOI.Prefix=10.25643

MCR.PI.Generator.Uni-Weimar-DOI=org.mycore.pi.doi.MCRMapObjectIDDOIGenerator
MCR.PI.Generator.Uni-Weimar-DOI.Prefix.dbt_mods=%MCR.PI.MetadataService.Uni-Weimar-MODSDOI.Prefix%/dbt.

MCR.PI.Service.Uni-Weimar-Datacite=org.mycore.pi.doi.MCRDOIService
MCR.PI.Service.Uni-Weimar-Datacite.MetadataService=Uni-Weimar-MODSDOI
MCR.PI.Service.Uni-Weimar-Datacite.Generator=Uni-Weimar-DOI
MCR.PI.Service.Uni-Weimar-Datacite.RegisterBaseURL=%MCR.PI.Service.Datacite.RegisterBaseURL%
MCR.PI.Service.Uni-Weimar-Datacite.Username=
MCR.PI.Service.Uni-Weimar-Datacite.Password=
MCR.PI.Service.Uni-Weimar-Datacite.UseTestServer=%MCR.PI.Service.Datacite.UseTestPrefix%
MCR.PI.Service.Uni-Weimar-Datacite.Transformer=datacite
MCR.PI.Service.Uni-Weimar-Datacite.JobApiUser=%MCR.PI.Service.Datacite.JobApiUser%
MCR.PI.Service.Uni-Weimar-Datacite.RegistrationPredicate=org.mycore.pi.condition.MCRPIPublishedPredicate
MCR.PI.Service.Uni-Weimar-Datacite.HostingInstitution=Bauhaus-Universit\u00E4t Weimar
MCR.PI.Service.Uni-Weimar-Datacite.Namespace=http://datacite.org/schema/kernel-4
MCR.PI.Service.Uni-Weimar-Datacite.Schema=xsd/datacite/v4.3/metadata.xsd

MCR.PI.Generator.Uni-Weimar-URN=org.mycore.pi.MCRGenericPIGenerator
MCR.PI.Generator.Uni-Weimar-URN.CountPrecision=2
MCR.PI.Generator.Uni-Weimar-URN.DateFormat=yyyyMMdd-HHmmss
MCR.PI.Generator.Uni-Weimar-URN.GeneralPattern=urn\:nbn\:de\:gbv\:wim2-dbt-$ObjectDate-$Count
MCR.PI.Generator.Uni-Weimar-URN.Namespace=urn\:nbn\:de\:gbv\:wim2-dbt-
MCR.PI.Generator.Uni-Weimar-URN.Type=dnbUrn

MCR.PI.Service.Uni-Weimar-DNBURN=org.mycore.pi.urn.MCRURNOAIService
MCR.PI.Service.Uni-Weimar-DNBURN.Generator=Uni-Weimar-URN
MCR.PI.Service.Uni-Weimar-DNBURN.MetadataService=MODSURN


######################################################################
# OAI Data Provider
######################################################################
Expand All @@ -66,9 +100,11 @@ MCR.OAIDataProvider.MetadataFormat.xMetaDissPlus.Namespace=http://www.d-nb.de/st
MCR.OAIDataProvider.OAI2.Sets.xmetadissplus=webapp:oai/set_xmetadissplus.xml
MCR.OAIDataProvider.OAI2.Sets.xmetadissplus.Query=category.top:"mir_genres\:thesis" AND derCount:[1 TO *]

MCR.OAIDataProvider.OAI2.Sets=%MCR.OAIDataProvider.OAI2.Sets%,urn-jena,fulltext,dnb-jena,dnb-ilmenau,kulthura
MCR.OAIDataProvider.OAI2.Sets=%MCR.OAIDataProvider.OAI2.Sets%,urn-jena,urn-weimar,fulltext,dnb-jena,dnb-ilmenau,kulthura
MCR.OAIDataProvider.OAI2.Sets.urn-jena=webapp:oai/set_urn-jena.xml
MCR.OAIDataProvider.OAI2.Sets.urn-jena.Query=({!join from=returnId to=id}derivateURN:* OR mods.identifier:urn\\:nbn\\:de\\:gbv\\:27-dbt-*)
MCR.OAIDataProvider.OAI2.Sets.urn-weimar=webapp:oai/set_urn-weimar.xml
MCR.OAIDataProvider.OAI2.Sets.urn-weimar.Query=({!join from=returnId to=id}derivateURN:* OR mods.identifier:urn\\:nbn\\:de\\:gbv\\:wim2-*)
MCR.OAIDataProvider.OAI2.Sets.dnb-jena=webapp:oai/set_dnb-jena.xml
MCR.OAIDataProvider.OAI2.Sets.dnb-jena.Query=(+category.top:"mir_institutes\\:1" +mods.identifier:(10.* urn\\:nbn\\:de\\:*) -mods.type:(video lecture) -createdby:deepgreen)
MCR.OAIDataProvider.OAI2.Sets.dnb-ilmenau=webapp:oai/set_dnb-ilmenau.xml
Expand Down

0 comments on commit 6e6d5e8

Please sign in to comment.