From d8fbcce62a0e3a18211dd6a783a2eb8d29442c7b Mon Sep 17 00:00:00 2001 From: Andrea Bollini Date: Sat, 7 Nov 2009 19:11:00 +0000 Subject: [PATCH] DS-236 bug fix - wrong pagination links when browsing authored items git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@4516 9c30dcfa-912a-0410-8fc2-9e0234be79fd --- .../src/main/webapp/browse/full.jsp | 36 +++++++++++++------ 1 file changed, 26 insertions(+), 10 deletions(-) diff --git a/dspace-jspui/dspace-jspui-webapp/src/main/webapp/browse/full.jsp b/dspace-jspui/dspace-jspui-webapp/src/main/webapp/browse/full.jsp index 19ceedf9fd..e877e9da3e 100644 --- a/dspace-jspui/dspace-jspui-webapp/src/main/webapp/browse/full.jsp +++ b/dspace-jspui/dspace-jspui-webapp/src/main/webapp/browse/full.jsp @@ -101,11 +101,6 @@ type = bix.getName(); - if (bi.hasValue()) - { - value = "\"" + bi.getValue() + "\""; - } - // next and previous links are of the form: // [handle///]browse?type=&sort_by=&order=[&value=][&rpp=][&[focus=|vfocus=] @@ -121,12 +116,25 @@ } String direction = (bi.isAscending() ? "ASC" : "DESC"); - String valueString = ""; - if (bi.hasValue()) + + String argument = null; + if (bi.hasAuthority()) + { + value = bi.getAuthority(); + argument = "authority"; + } + else if (bi.hasValue()) { - valueString = "&value=" + URLEncoder.encode(bi.getValue()); + value = bi.getValue(); + argument = "value"; } + String valueString = ""; + if (value!=null) + { + valueString = "&" + argument + "=" + URLEncoder.encode(value); + } + String sharedLink = linkBase + urlFragment + "?"; if (bix.getName() != null) @@ -204,7 +212,11 @@ <% - if (bi.hasValue()) + if (bi.hasAuthority()) + { + %><% + } + else if (bi.hasValue()) { %><% } @@ -314,7 +326,11 @@
<% - if (bi.hasValue()) + if (bi.hasAuthority()) + { + %><% + } + else if (bi.hasValue()) { %><% }