From 7fb993003c07dfa722c9c14dcf12191804b8033f Mon Sep 17 00:00:00 2001 From: Aleisha Date: Tue, 19 Jan 2016 03:44:31 +0000 Subject: [PATCH] Bug 12051: Adds a Renew tab to the staff client MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit UPDATE: Added to checkin-search.inc to show up on returns.pl To test: 1) Apply patch 2) Confirm that there is now a Renew tab on the pages where there is also a Check-in tab only 3) Attempt to renew a book using this, confirm it works as expected 4) Check if I have missed any pages Signed-off-by: Marc VĂ©ron Signed-off-by: Kyle M Hall --- .../intranet-tmpl/prog/en/includes/cat-search.inc | 40 ++++++++++++++-------- .../prog/en/includes/cataloging-search.inc | 11 +++++- .../prog/en/includes/checkin-search.inc | 13 ++++++- .../intranet-tmpl/prog/en/includes/circ-search.inc | 16 +++++++-- .../prog/en/includes/contracts-admin-search.inc | 5 +-- .../intranet-tmpl/prog/en/includes/home-search.inc | 16 +++++++-- .../prog/en/includes/patron-search.inc | 10 +++++- .../prog/en/includes/patrons-admin-search.inc | 3 +- koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js | 1 + 9 files changed, 88 insertions(+), 27 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/cat-search.inc index 6eae193..61fefa7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/cat-search.inc @@ -12,22 +12,32 @@ - [% END %] - [% IF ( CAN_user_catalogue ) %] - - [% END %] - -
    - [% IF ( CAN_user_circulate ) %]
  • Check out
  • [% END %] + +[% END %] + +[% IF ( CAN_user_catalogue ) %] + +[% END %] + + + [% IF ( CAN_user_circulate ) %]
  • Renew
  • [% END %] + [% IF ( CAN_user_catalogue ) %]
  • Search the catalog
  • [% END %] +
+ diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/cataloging-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/cataloging-search.inc index 4b6a9de..1cb311e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/cataloging-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/cataloging-search.inc @@ -20,8 +20,16 @@ + [% END %] + diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/checkin-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/checkin-search.inc index 4f1e2b9..07cb17b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/checkin-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/checkin-search.inc @@ -11,9 +11,20 @@ [% END %] +[% IF ( CAN_user_circulate ) %] + +[% END %] + diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-search.inc index ab730ba..141561c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-search.inc @@ -10,7 +10,15 @@ -[% END %] + + +[% END %] [% IF ( CAN_user_catalogue ) %] [% END %] + +[% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/contracts-admin-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/contracts-admin-search.inc index 1d38559..692dfd1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/contracts-admin-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/contracts-admin-search.inc @@ -20,11 +20,12 @@ [% END %] - diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc index fbf3618..d1b2f9a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc @@ -10,7 +10,16 @@ -[% END %] + + +[% END %] + [% IF ( CAN_user_borrowers ) %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc index 9b4f19e..5170432 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc @@ -122,6 +122,13 @@ + [% END %] [% IF ( CAN_user_catalogue ) %] @@ -137,7 +144,8 @@
  • Search patrons
  • [% IF ( CAN_user_circulate ) %]
  • Check out
  • [% END %] [% IF ( CAN_user_circulate ) %]
  • Check in
  • [% END %] - [% IF ( CAN_user_catalogue ) %]
  • Search the catalog
  • [% END %] + [% IF ( CAN_user_circulate ) %]
  • Renew
  • [% END %] + [% IF ( CAN_user_catalogue ) %]
  • Search the catalog
  • [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patrons-admin-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patrons-admin-search.inc index c248810..9c15306 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patrons-admin-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patrons-admin-search.inc @@ -17,7 +17,8 @@ [% END %] -
      + +
      • Search patron categories
      • [% IF ( CAN_user_circulate ) %]
      • Check out
      • [% END %] [% IF ( CAN_user_catalogue ) %]
      • Search the catalog
      • [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js b/koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js index 92ba935..bc4318e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js +++ b/koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js @@ -32,6 +32,7 @@ $.fn.selectTabByID = function (tabID) { if($("#header_search #checkin_search").length > 0){ shortcut.add('Alt+r',function (){ $("#header_search").selectTabByID("#checkin_search"); $("#ret_barcode").focus(); }); } else { shortcut.add('Alt+r',function (){ location.href="/cgi-bin/koha/circ/returns.pl"; }); } if($("#header_search #circ_search").length > 0){ shortcut.add('Alt+u',function (){ $("#header_search").selectTabByID("#circ_search"); $("#findborrower").focus(); }); } else { shortcut.add('Alt+u',function(){ location.href="/cgi-bin/koha/circ/circulation.pl"; }); } if($("#header_search #catalog_search").length > 0){ shortcut.add('Alt+q',function (){ $("#header_search").selectTabByID("#catalog_search"); $("#search-form").focus(); }); } else { shortcut.add('Alt+q',function(){ location.href="/cgi-bin/koha/catalogue/search.pl"; }); } + if($("#header_search #renew_search").length > 0){ shortcut.add('Alt+y',function (){ $("#header_search").selectTabByID("#renew_search"); $("#ren_barcode").focus(); }); } else { shortcut.add('Alt+y',function(){ location.href="/cgi-bin/koha/circ/renew.pl"; }); } $(".focus").focus(); $(".validated").each(function() { -- 2.1.4