Skip to content

Commit

Permalink
MIR-1260 Removed parameter 'returnId' as it is not needed anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
Possommi committed Feb 23, 2024
1 parent a1042cf commit 2c67902
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 3 additions & 0 deletions mir-module/src/main/resources/config/mir/mycore.properties
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ MCR.URIResolver.xslIncludes.xeditorTemplates=solr-xeditor-templates.xsl
#required for mycore-mods
MCR.URIResolver.xslImports.solr-document=%MCR.URIResolver.xslImports.solr-document%,mods-solr.xsl

#required for mycore-iview2
MCR.URIResolver.xslImports.solr-document=%MCR.URIResolver.xslImports.solr-document%,iview2-solr.xsl

##############################################################################
# Configure ACL Checking #
##############################################################################
Expand Down
3 changes: 1 addition & 2 deletions mir-module/src/main/resources/xsl/mir-utils.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
<xsl:param name="baseURL"/>
<xsl:param name="mimeType"/>
<xsl:param name="derivateMaindoc"/>
<xsl:param name="returnId"/>

<xsl:choose>
<xsl:when test="$mimeType='application/pdf' or
Expand Down Expand Up @@ -103,7 +102,7 @@
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="string-length($derivateMaindoc) &gt; 0 and string-length($returnId) &gt; 0">
<xsl:when test="string-length($derivateMaindoc) &gt; 0">
<xsl:variable name="ext"
select="document(concat('callJava:org.apache.commons.io.FilenameUtils:getExtension:', $derivateMaindoc))"/>
<xsl:value-of
Expand Down
1 change: 0 additions & 1 deletion mir-module/src/main/resources/xsl/response-mir.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,6 @@
<xsl:with-param name="baseURL" select="$WebApplicationBaseURL"/>
<xsl:with-param name="mimeType" select="$contentType"/>
<xsl:with-param name="derivateMaindoc" select="$displayDerivate/str[@name='derivateMaindoc']"/>
<xsl:with-param name="returnId" select="$displayDerivate/str[@name='returnId']"/>
</xsl:call-template>
</xsl:variable>
<img class="hit_icon_overlay" src="{$iconLink}"/>
Expand Down

0 comments on commit 2c67902

Please sign in to comment.