Skip to content

Commit

Permalink
MIR-1275 add property to enable METS editor menu entry in action menu (
Browse files Browse the repository at this point in the history
…#951)

* MIR-1275 add property to enable METS editor menu entry in action menu

* MIR-1275 add missing derivate id in editor url

* MIR-1275 revert formatting changes
  • Loading branch information
kkrebs authored Feb 14, 2024
1 parent 6dc9eac commit 5da45a9
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ component.mods.metaData.options.addFile = Hinzuf\u00FCgen einer
component.mods.metaData.options.delDerivate = L\u00F6schen dieses Datenobjektes
component.mods.metaData.options.derivateLocked = Bearbeitung wg. PI gesperrt
component.mods.metaData.options.updateDerivateName = Dateibereich verwalten
component.mods.metaData.options.startmets = im METS-Editor \u00F6ffnen
component.mods.metaData.options.zip = als Zip speichern
component.pi.register.DNBURN = URN registrieren
component.pi.register.Datacite = DOI registrieren
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ component.mods.metaData.dictionary.tocLayout = Table of Contents layo
component.mods.metaData.options.addFile = Add a file
component.mods.metaData.options.delDerivate = Delete this data object
component.mods.metaData.options.derivateLocked = locked due to PI
component.mods.metaData.options.startmets = open in METS editor
component.mods.metaData.options.updateDerivateName = Manage file space
component.mods.metaData.options.zip = save as Zip
component.pi.register.DNBURN = register URN
Expand Down
5 changes: 5 additions & 0 deletions mir-module/src/main/resources/config/mir/mycore.properties
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ MCR.ContentTransformer.mets-dfg.Stylesheet=xsl/mets/mets-dfg.xsl
# MIR.DFGViewer.DV.OwnerSiteURL=
# MIR.DFGViewer.DV.OPAC.CATALOG.URL=http://uri.gbv.de/document/opac-de-84:ppn:{PPN}

##############################################################################
# Configure METSEditor #
##############################################################################
MIR.METSEditor.enable=false


##############################################################################
# Configure Hibernate Mappings #
Expand Down
11 changes: 10 additions & 1 deletion mir-module/src/main/resources/xsl/modsdetails-external.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
xmlns:imageware="org.mycore.mir.imageware.MIRImageWarePacker"
xmlns:pi="xalan://org.mycore.pi.frontend.MCRIdentifierXSLUtils"
xmlns:piUtil="xalan://org.mycore.pi.frontend.MCRIdentifierXSLUtils"
exclude-result-prefixes="basket xalan xlink mcr i18n mods mcrmods mcrxsl str encoder acl imageware pi piUtil"
xmlns:iview2="xalan://org.mycore.iview2.services.MCRIView2Tools"
exclude-result-prefixes="basket xalan xlink mcr i18n mods mcrmods mcrxsl str encoder acl imageware pi piUtil iview2"
xmlns:ex="http://exslt.org/dates-and-times"
xmlns:exslt="http://exslt.org/common"
extension-element-prefixes="ex exslt"
Expand All @@ -25,6 +26,7 @@

<xsl:param name="MIR.registerDOI" select="''" />
<xsl:param name="MIR.registerURN" select="'true'" />
<xsl:param name="MIR.METSEditor.enable" select="'false'" />
<xsl:param name="template" select="'fixme'" />

<xsl:param name="MCR.Packaging.Packer.ImageWare.FlagType" />
Expand Down Expand Up @@ -719,6 +721,13 @@
</a>
</li>
</xsl:if>
<xsl:if test="key('rights', $deriv)/@write and iview2:getSupportedMainFile($deriv) and normalize-space($MIR.METSEditor.enable)='true'">
<li>
<a href="{$WebApplicationBaseURL}rsc/mets/editor/start/{$deriv}" class="option startmets dropdown-item">
<xsl:value-of select="i18n:translate('component.mods.metaData.options.startmets')" />
</a>
</li>
</xsl:if>
<xsl:if test="key('rights', $deriv)/@read">
<li>
<a href="{$ServletsBaseURL}MCRZipServlet/{$deriv}" class="option downloadzip dropdown-item">
Expand Down

0 comments on commit 5da45a9

Please sign in to comment.