Bug 25024: Make grep match full string
To test: 1 - Create or have a branch with code CPL 2 - Create two new branches 'ACPL' and 'CPLA' 3 - In branch transfer limits disallow some itype or collection from another branch (FPL) to ACPL and CPLA 4 - Set UseBranchTransferLimits to 'Enforce' 5 - Find a biblio with one item belonging to FPL 6 - On opac, attempt to place a hold 7 - Note that ACPL and CPLA don't show in dropdown, OK 8 - Note that CPL is disabled, NOT OK 9 - Apply patch 10 - Place hold 11 - CPL is now enabled Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com> Signed-off-by: Joel Sasse <jsasse@plumcreeklibrary.net> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
This commit is contained in:
parent
9f89eabcd5
commit
155b47d2fe
|
|
@ -234,7 +234,7 @@
|
|||
[% SET at_least_one_library_not_available_for_pickup = 0 %]
|
||||
<select name="branch" id="branch_[% bibitemloo.biblionumber | html %]">
|
||||
[% 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 %]
|
||||
[% 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 | html %]" selected="selected" >[% library.branchname | html %]</option>
|
||||
[% ELSIF pickup_available_at %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue