Bugzilla – Attachment 29386 Details for
Bug 12481
Staff client detail-view "next" link is greyed out when the last search result of any results page is clicked or navigated into
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12481 - Follow up: Link to results is not refreshed when item is on next or prev result page
Bug-12481---Follow-up-Link-to-results-is-not-refre.patch (text/plain), 2.75 KB, created by
Marc Véron
on 2014-06-30 18:58:14 UTC
(
hide
)
Description:
Bug 12481 - Follow up: Link to results is not refreshed when item is on next or prev result page
Filename:
MIME Type:
Creator:
Marc Véron
Created:
2014-06-30 18:58:14 UTC
Size:
2.75 KB
patch
obsolete
>From f4ec53cc13663d3a2027c48672f8d325aa390c5c Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Marc=20V=C3=A9ron?= <veron@veron.ch> >Date: Fri, 20 Jun 2014 22:40:03 +0200 >Subject: [PATCH] Bug 12481 - Follow up: Link to results is not refreshed > when item is on next or prev result page > >Test plan for this follow up > >Reproduce issue without patch: > >Do a search that results in 3 or more pages. >Print out list or do the same search in an other browser (to have a reference for the following) >Go to a detail view and step through details to a detail that ist on result #3 >Click on Link "Return to details" >Result: The first page will display (instead of page #2) > >With patch, the correct page should display. >--- > koha-tmpl/intranet-tmpl/js/browser.js | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/js/browser.js b/koha-tmpl/intranet-tmpl/js/browser.js >index b0676a5..0dbd2f5 100644 >--- a/koha-tmpl/intranet-tmpl/js/browser.js >+++ b/koha-tmpl/intranet-tmpl/js/browser.js >@@ -77,6 +77,8 @@ KOHA.browser = function (searchid, biblionumber) { > var searchURL = '/cgi-bin/koha/catalogue/search.pl?' + decodeURIComponent(me.searchCookie.query) + '&limit=' + decodeURIComponent(me.searchCookie.limit) + '&sort=' + me.searchCookie.sort + '&searchid=' + me.searchid + '&offset=' + me.offset; > var prevbutton; > var nextbutton; >+ var returnbutton; >+returnbutton = '<div class="browse-label"><a href="' + searchURL + '" id="browse-return-to-results" class="browse-button">' + BROWSER_RETURN_TO_SEARCH + '</a></div>'; > if (me.curPos === 0 && me.searchCookie.offset === 1) { > prevbutton = '<span id="browse-previous" class="browse-button">« ' + BROWSER_PREVIOUS + '</span>'; > } else { >@@ -87,7 +89,7 @@ KOHA.browser = function (searchid, biblionumber) { > } else { > nextbutton = '<a href="#" id="browse-next" class="browse-button">' + BROWSER_NEXT + ' »</a>'; > } >- $('#menu').before('<div class="browse-controls"><div class="browse-controls-inner"><div class="browse-label"><a href="' + searchURL + '" id="browse-return-to-results" class="browse-button">' + BROWSER_RETURN_TO_SEARCH + '</a></div><div class="browse-prev-next">' + prevbutton + nextbutton + '</div></div></div>'); >+ $('#menu').before('<div class="browse-controls"><div class="browse-controls-inner"></div>' +returnbutton + '<div class="browse-prev-next">' + prevbutton + nextbutton + '</div></div></div>'); > $('a#browse-previous').click(function (ev) { > ev.preventDefault(); > browseRecords(-1); >-- >1.7.10.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 12481
:
29210
|
29272
|
29275
|
29276
|
29386
|
29403
|
29408