Skip to content

Commit

Permalink
MIR-1347-allow to change the number of entries per page of the filebo…
Browse files Browse the repository at this point in the history
…x with a property
  • Loading branch information
sebhofmann authored and kkrebs committed Sep 6, 2024
1 parent e643167 commit b058416
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
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 @@ -766,6 +766,11 @@ MIR.Viewer.DisableDerivateType=thumbnail
##############################################################################
MIR.CanonicalBaseURL=

##############################################################################
# Files per page in metadata view #
##############################################################################
MIR.FileBrowser.FilesPerPage=10

##############################################################################
# Sherpa Romeo API - details see https://v2.sherpa.ac.uk/api/ #
##############################################################################
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
>
<xsl:import href="xslImport:modsmeta:metadata/mir-collapse-files.xsl" />
<xsl:param name="MIR.NotFullAccessInfo.Genres" />
<xsl:param name="MIR.FileBrowser.FilesPerPage" />
<xsl:template match="/">
<xsl:variable xmlns:encoder="xalan://java.net.URLEncoder" name="loginURL"
select="concat( $ServletsBaseURL, 'MCRLoginServlet',$HttpSession,'?url=', encoder:encode( string( $RequestURL ) ) )" />
Expand Down Expand Up @@ -91,7 +92,7 @@
<xsl:choose>
<xsl:when test="key('rights', @xlink:href)/@read">
<xsl:variable name="maindoc" select="$derivateXML/mycorederivate/derivate/internals/internal/@maindoc" />
<div class="file_box_files" data-objID="{$objID}" data-deriID="{$derId}" data-mainDoc="{$maindoc}" data-writedb="{acl:checkPermission($derId,'writedb')}" data-deletedb="{acl:checkPermission($derId,'deletedb')}">
<div class="file_box_files" data-objID="{$objID}" data-deriID="{$derId}" data-mainDoc="{$maindoc}" data-writedb="{acl:checkPermission($derId,'writedb')}" data-deletedb="{acl:checkPermission($derId,'deletedb')}" data-numperpage="{$MIR.FileBrowser.FilesPerPage}">
<xsl:if test="acl:checkPermission($derId,'read')">
<xsl:attribute name="data-jwt">
<xsl:value-of select="'required'" />
Expand Down

0 comments on commit b058416

Please sign in to comment.