Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading