Skip to content

Commit

Permalink
MIR-1423 Showing fullname in mir-admindata-box should be optional (#1105
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Antoniafriedrich authored Feb 14, 2025
1 parent 9434619 commit 8472e98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions mir-module/src/main/resources/config/mir/mycore.properties
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,7 @@ MCR.ContentTransformer.mets-dfg.Stylesheet=xsl/mets/mets-dfg.xsl
# Configure METSEditor #
##############################################################################
MIR.METSEditor.enable=false


MIR.Metadata.Admindata.ShowRealUserName=false
##############################################################################
# Configure Hibernate Mappings #
##############################################################################
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
exclude-result-prefixes="encoder i18n mcracl mods xlink mcrxsl">
<xsl:import href="xslImport:modsmeta:metadata/mir-admindata-box.xsl"/>
<xsl:param name="WebApplicationBaseURL"/>

<xsl:param name="MIR.Metadata.Admindata.ShowRealUserName"/>
<xsl:template match="/">
<xsl:variable name="ID" select="/mycoreobject/@ID"/>
<div id="mir-admindata">
Expand Down Expand Up @@ -136,7 +136,7 @@

<xsl:variable name="display-name">
<xsl:choose>
<xsl:when test="$user/user/realName">
<xsl:when test="$user/user/realName and $MIR.Metadata.Admindata.ShowRealUserName='true'">
<xsl:value-of select="$user/user/realName"/>
</xsl:when>
<xsl:otherwise>
Expand Down

0 comments on commit 8472e98

Please sign in to comment.