Bug 17453: Add a visible notification to patron to explain why the hold locations...
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 9 Feb 2017 17:46:38 +0000 (18:46 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 17 Feb 2017 17:15:07 +0000 (17:15 +0000)
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>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt

index 7bb7bd2..584687b 100644 (file)
                                                                         [% 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 %]
                                                                             [% 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 %]