Bug 17453: Add a visible notification to patron to explain why the hold locations are disabled

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

https://bugs.koha-community.org/show_bug.cgi?id=14753

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2017-02-09 18:46:38 +01:00 committed by Kyle M Hall
parent 0d55faa9a9
commit 6c02e5f8db

View file

@ -218,6 +218,7 @@
[% PROCESS options_for_libraries libraries => Branches.all( selected => branch ) %]
</select>
[% ELSE %]
[% SET at_least_one_library_not_available_for_pickup = 0 %]
<select name="branch" id="branch_[% bibitemloo.biblionumber %]">
[% FOREACH library IN Branches.all( selected => branch) %]
[% SET pickup_available_at = bibitemloo.not_available_at.grep(library.branchcode).size ? 0 : 1 %]
@ -226,10 +227,14 @@
[% ELSIF pickup_available_at %]
<option value="[% library.branchcode %]">[% library.branchname %]</option>
[% ELSE %]
[% SET at_least_one_library_not_available_for_pickup = 1 %]
<option value="[% library.branchcode %]" disabled="disabled" title="At least one item is available at this library">[% library.branchname %]</option>
[% END %]
[% END %]
</select>
[% IF at_least_one_library_not_available_for_pickup %]
Note: Library policy does not allow hold/pickup of an item available locally. Please come to the library to retrieve these items
[% END %]
[% END # / UNLESS bibitemloo.holdable %]
</li>
[% END # / IF bibitemloo.holdable && choose_branch %]