@@ -, +, @@ interface - Launch a search (on the staff interface) - Check some biblios - Go on another page - Check some biblios - Come back to a page you already check results and confirm that they are - Click on the "Browse selected records" button - Check that you are able to browse results you had checked. - add them to the cart - add them to a list --- installer/data/mysql/atomicupdate/bug_19290.sql | 1 + installer/data/mysql/sysprefs.sql | 1 + koha-tmpl/intranet-tmpl/js/browser.js | 2 +- .../intranet-tmpl/prog/en/includes/js_includes.inc | 1 + .../prog/en/includes/page-numbers.inc | 10 +-- .../en/modules/admin/preferences/searching.pref | 7 +++ .../prog/en/modules/catalogue/detail.tt | 3 +- .../prog/en/modules/catalogue/results.tt | 60 ++++++++++++++++-- koha-tmpl/intranet-tmpl/prog/js/basket.js | 48 +++++++++----- koha-tmpl/intranet-tmpl/prog/js/cart.js | 2 + koha-tmpl/intranet-tmpl/prog/js/commons.js | 73 ++++++++++++++++++++++ 11 files changed, 181 insertions(+), 27 deletions(-) create mode 100644 installer/data/mysql/atomicupdate/bug_19290.sql create mode 100644 koha-tmpl/intranet-tmpl/prog/js/commons.js --- a/installer/data/mysql/atomicupdate/bug_19290.sql +++ a/installer/data/mysql/atomicupdate/bug_19290.sql @@ -0,0 +1, @@ +INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`, `type`) VALUES ('BrowseResultSelection','0',NULL,'Enable/Disable browsing search results fromt the bibliographic record detail page in staff client','YesNo'); --- a/installer/data/mysql/sysprefs.sql +++ a/installer/data/mysql/sysprefs.sql @@ -90,6 +90,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('BorrowersTitles','Mr|Mrs|Miss|Ms',NULL,'Define appropriate Titles for patrons','free'), ('BorrowerUnwantedField','',NULL,'Name the fields you don\'t need to store for a patron\'s account','free'), ('BranchTransferLimitsType','ccode','itemtype|ccode','When using branch transfer limits, choose whether to limit by itemtype or collection code.','Choice'), +('BrowseResultSelection','0',NULL,'Enable/Disable browsing search results fromt the bibliographic record detail page in staff client','YesNo'), ('CalculateFinesOnReturn','1','','Switch to control if overdue fines are calculated on return or not','YesNo'), ('CalendarFirstDayOfWeek','0','0|1|2|3|4|5|6','Select the first day of week to use in the calendar.','Choice'), ('canreservefromotherbranches','1','','With Independent branches on, can a user from one library place a hold on an item from another library','YesNo'), --- a/koha-tmpl/intranet-tmpl/js/browser.js +++ a/koha-tmpl/intranet-tmpl/js/browser.js @@ -102,7 +102,7 @@ KOHA.browser = function (searchid, biblionumber) { } else { nextbutton = '' + BROWSER_NEXT + ' ยป'; } - $('#menu').before('
' + prevbutton + nextbutton + '
'); + $('#menu').before('
' + prevbutton + nextbutton + '
'); $('a#browse-previous').click(function (ev) { ev.preventDefault(); browseRecords(-1); --- a/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc @@ -21,6 +21,7 @@ + [% INCLUDE 'validator-strings.inc' %] [% IF ( IntranetUserJS ) %] --- a/koha-tmpl/intranet-tmpl/prog/en/includes/page-numbers.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/page-numbers.inc @@ -1,18 +1,18 @@ [% IF ( PAGE_NUMBERS ) %][% END %] --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref @@ -78,6 +78,13 @@ Searching: yes: Keep no: "Don't keep" - patron search history in the staff client. + - + - pref: BrowseResultSelection + default: 0 + choices: + yes: Enable + no: Disable + - "browsing search results fromt the bibliographic record detail page in staff client." Search Form: - - Load the unlogged history to the next user. --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -1043,7 +1043,8 @@ [% INCLUDE 'browser-strings.inc' %] +