From 306e341c656f7c1803283c66d325c3bbe5cfbb6e 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 e263375..39adfeb 100644 --- a/C4/Reserves.pm +++ b/C4/Reserves.pm @@ -170,7 +170,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 b875285..a3b1676 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 %] @@ -678,7 +678,7 @@ var MSG_NO_ITEMS_AVAILABLE = _("A hold cannot be requested on any of these items."); columns_settings_borrowers_table = [% ColumnsSettings.GetColumns( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %] 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 78f35da..1b1b17e 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 @@