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-1347-allow to change the number of entries per page of the filebox with a property #1052

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
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
Loading