From e4cd5ab522b0d98d8cb637d2c2e3873371d86f6a Mon Sep 17 00:00:00 2001 From: Alex Buckley Date: Sun, 28 Oct 2018 18:00:31 +0000 Subject: [PATCH] Bug 15565: (follow-up) Removed leftover debug code and added missing filters Sponsord-By: Brimbank Library, Australia Signed-off-by: Katrin Fischer --- C4/Reserves.pm | 2 +- .../prog/en/modules/reserve/request.tt | 6 +-- .../opac-tmpl/bootstrap/en/modules/opac-reserve.tt | 50 +++++++++++----------- opac/opac-reserve.pl | 5 --- 4 files changed, 29 insertions(+), 34 deletions(-) diff --git a/C4/Reserves.pm b/C4/Reserves.pm index 77880dc..4f280a5 100644 --- a/C4/Reserves.pm +++ b/C4/Reserves.pm @@ -173,7 +173,7 @@ sub AddReserve { $expdate = output_pref({ str => $expdate, dateonly => 1, dateformat => 'iso' }); - # if we have an item selectionned, and the pickup branch is the same as the holdingbranch + # if we have an item selected, and the pickup branch is the same as the holdingbranch # of the document, we force the value $priority and $found . if ( $checkitem and not C4::Context->preference('ReservesNeedReturns') ) { $priority = 0; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt index 972ea49..115cdb8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt @@ -317,9 +317,9 @@ Hold must be record level [% ELSIF ( itemloo.available ) %] - + [% ELSIF ( itemloo.override ) %] - + [% ELSE %] @@ -672,7 +672,7 @@ }; var MSG_NO_ITEMS_AVAILABLE = _("A hold cannot be requested on any of these items."); var MSG_EXCEEDED_HOLDS_PER_RECORD = _("Patron has exceeded the number of holds for this record."); - var remainingHolds = "[% remaining_holds_for_record %]"; + var remainingHolds = "[% remaining_holds_for_record | html %]"; $(document).ready(function() { function ToggleHoldsToPlace() { diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt index 0679d0a..da01558 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt @@ -155,7 +155,7 @@ [% FOREACH bibitemloo IN bibitemloop %]
- +

[% IF ( bibitemloo.holdable ) %] @@ -228,7 +228,7 @@

  • [% UNLESS ( bibitemloo.holdable ) %] - [% PROCESS options_for_libraries libraries => Branches.pickup_locations( biblio => bibitemloo.biblionumber, selected => branch ) %] [% ELSE %] @@ -304,16 +304,16 @@