Browse Source

Bug 26999: Make 'Any library' translatable when placing a hold

This patch makes the 'Any library' string translatable, by converting it
into a flag and using it accordingly on the request.tt template.

To test:
1. Have the 'Hold pickup library match' set to 'any library' on the
   circultation rules.
2. Open the page to place a hold on a biblio with some items
=> SUCCESS: The item says 'Any library' on the 'Allowed pickup
locations' column.
3. Apply this patch
4. Repeat 2
=> SUCCESS: No behavior change
=> SUCCESS: The string is on the template
5. Sign off :-D

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
21.05.x
Tomás Cohen Arazi 2 years ago
committed by Jonathan Druart
parent
commit
13bb39f4c6
  1. 4
      koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt
  2. 3
      reserve/request.pl

4
koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt

@ -685,7 +685,11 @@
[% END %]
</td>
<td>
[% IF itemloo.any_pickup_location %]
Any library
[% ELSE %]
[% itemloo.pickup_locations | html %]
[% END %]
</td>
</tr>
[% END # / UNLESS itemloo.hide %]

3
reserve/request.pl

@ -569,8 +569,7 @@ foreach my $biblionumber (@biblionumbers) {
$item->{available} = 1;
$num_available++;
if($branchitemrule->{'hold_fulfillment_policy'} eq 'any' ) {
$item->{pickup_locations} = 'Any library';
$item->{pickup_locations_code} = 'all';
$item->{any_pickup_location} = 1;
} else {
my $arr_locations = Koha::Items->find($itemnumber)
->pickup_locations( { patron => $patron } )->as_list();

Loading…
Cancel
Save