From 2dc32ecfb0266848d9d05e8b36a2f1eceeb8237e Mon Sep 17 00:00:00 2001
From: Dalmon Ian <dspace@dspacesnj2.c3sl.ufpr.br>
Date: Mon, 2 Jun 2014 16:55:13 +0000
Subject: [PATCH] Fix results per page issue on the theme Participatorio-mobile

the issue is described in "http://redmine.c3sl.ufpr.br/issues/1744"

Signed-off-by: Dalmon Ian <dspace@dspacesnj2.c3sl.ufpr.br>
---
 .../Participatorio-mobile.xsl                 | 21 +++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/dspace/modules/xmlui/src/main/webapp/themes/Participatorio-mobile/Participatorio-mobile.xsl b/dspace/modules/xmlui/src/main/webapp/themes/Participatorio-mobile/Participatorio-mobile.xsl
index c842a62..8a5c866 100644
--- a/dspace/modules/xmlui/src/main/webapp/themes/Participatorio-mobile/Participatorio-mobile.xsl
+++ b/dspace/modules/xmlui/src/main/webapp/themes/Participatorio-mobile/Participatorio-mobile.xsl
@@ -991,6 +991,27 @@
             </xsl:choose>
         </li>
     </xsl:template>
+
+    <xsl:template match="dri:xref">
+        <a>
+            <xsl:if test="@target">
+                <xsl:attribute name="href"><xsl:value-of select="@target"/></xsl:attribute>
+                <xsl:if test="substring(@target, 1, 4) = 'rpp='">
+                    <xsl:attribute name="href"><xsl:value-of select="concat($mobile-url, '/', $page-url, '?query=', '&amp;', 'submit=Go', '&amp;', @target)" /></xsl:attribute>
+                </xsl:if>
+            </xsl:if>
+            
+            <xsl:if test="@rend">
+                <xsl:attribute name="class"><xsl:value-of select="@rend"/></xsl:attribute>
+            </xsl:if>
+            
+            <xsl:if test="@n">
+                <xsl:attribute name="name"><xsl:value-of select="@n"/></xsl:attribute>
+            </xsl:if>
+
+            <xsl:apply-templates />
+        </a>
+    </xsl:template>
 <!-- ******************************************************************** -->
 
 </xsl:stylesheet>
-- 
GitLab