Bugzilla – Attachment 77851 Details for
Bug 7534
Add an option on library level to indicate if a library can be chosen as pick-up location
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7534: Display pickup locations instead of all libraries in opac-reserve.pl
Bug-7534-Display-pickup-locations-instead-of-all-l.patch (text/plain), 3.01 KB, created by
Kyle M Hall (khall)
on 2018-08-15 17:52:08 UTC
(
hide
)
Description:
Bug 7534: Display pickup locations instead of all libraries in opac-reserve.pl
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2018-08-15 17:52:08 UTC
Size:
3.01 KB
patch
obsolete
>From b7460bb9be64a3aea4a37205d271ba4392d8d6ab Mon Sep 17 00:00:00 2001 >From: Lari Taskula <lari.taskula@jns.fi> >Date: Tue, 7 Feb 2017 19:42:22 +0200 >Subject: [PATCH] Bug 7534: Display pickup locations instead of all libraries > in opac-reserve.pl > >This patch sets opac-reserve.tt to use the list of pickup libraries instead >of every library in the system. > >To test: >1. Go to cgi-bin/koha/admin/branches.pl >2. Configure one of your libraries to "Pickup location" => "No" >3. Go to OPAC and place a hold >4. See the provided Pickup location list >5. Observe the library that you configured is not present in the list > >Signed-off-by: Koha Team AMU <axelle.clarisse@univ-amu.fr> >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >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 ae417ba815..cd6c8ef40b 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt >@@ -226,12 +226,12 @@ > <label for="branch_[% bibitemloo.biblionumber %]">Pick up location:</label> > [% UNLESS ( bibitemloo.holdable ) %] > <select name="branch" id="branch_[% bibitemloo.biblionumber %]" disabled="disabled"> >- [% PROCESS options_for_libraries libraries => Branches.all( selected => branch ) %] >+ [% PROCESS options_for_libraries libraries => Branches.all({ search_params => { pickup_location => 1 }, 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) %] >+ [% FOREACH library IN Branches.all({ search_params => { pickup_location => 1 }, selected => branch }) %] > [% SET pickup_available_at = bibitemloo.not_available_at.grep(library.branchcode).size ? 0 : 1 %] > [% IF library.selected AND pickup_available_at %] > <option value="[% library.branchcode %]" selected="selected" >[% library.branchname %]</option> >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 7534
:
60014
|
60015
|
60016
|
60017
|
60018
|
60022
|
60023
|
60781
|
60794
|
60795
|
60796
|
60797
|
60798
|
60799
|
60878
|
60879
|
60880
|
60881
|
60882
|
60883
|
61044
|
61045
|
61046
|
61047
|
61273
|
61274
|
61275
|
61276
|
61277
|
61278
|
61279
|
61280
|
77847
|
77848
|
77849
|
77850
|
77851
|
77852
|
77853
|
77854
|
77855
|
77856
|
78160
|
78161
|
78162
|
78163
|
78164
|
78165
|
78166
|
78167
|
78168
|
78169
|
78170
|
78171
|
78477
|
78478
|
78479
|
78480
|
78481
|
78482
|
78483
|
78484
|
78485
|
78486
|
78487
|
78488
|
78489
|
78495
|
78540
|
78548
|
84852