Bugzilla – Attachment 84307 Details for
Bug 7614
Use branch transfer limits for determining available opac holds pickup locations
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7614: (follow-up) If patron's home library is not a pickup library, let them choose another one
Bug-7614-follow-up-If-patrons-home-library-is-not-.patch (text/plain), 2.39 KB, created by
Kyle M Hall (khall)
on 2019-01-22 19:07:55 UTC
(
hide
)
Description:
Bug 7614: (follow-up) If patron's home library is not a pickup library, let them choose another one
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2019-01-22 19:07:55 UTC
Size:
2.39 KB
patch
obsolete
>From 2e76bbac90553717c194d77219f2326c5c5878bc Mon Sep 17 00:00:00 2001 >From: Lari Taskula <lari.taskula@jns.fi> >Date: Thu, 21 Dec 2017 16:55:58 +0200 >Subject: [PATCH] Bug 7614: (follow-up) If patron's home library is not a > pickup library, let them choose another one > >This patch fixes an issue where patron is not allowed to place a hold in OPAC >while their home library is not a pickup library. > >Instead, they should be presented with a list of other available pickup locations. > >Signed-off-by: Bob Bennhoff <bbennhoff@clicweb.org> > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt | 5 +++++ > opac/opac-reserve.pl | 9 +++++++++ > 2 files changed, 14 insertions(+) > >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 214eb7732a..d55672fa5a 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt >@@ -112,6 +112,11 @@ > </li> > [% END %] > >+ [% IF ( no_pickup_locations ) %] >+ <li id="no_pickup_locations"> >+ None of the libraries are available for pickup location. >+ </li> >+ [% END %] > [% ELSE %] > > [% IF ( none_available && multi_hold ) %] >diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl >index df13dc1c74..e8969752b5 100755 >--- a/opac/opac-reserve.pl >+++ b/opac/opac-reserve.pl >@@ -385,6 +385,7 @@ my $itemdata_enumchron = 0; > my $itemdata_ccode = 0; > my $anyholdable = 0; > my $itemLevelTypes = C4::Context->preference('item-level_itypes'); >+my $pickup_locations = Koha::Libraries->search({ pickup_location => 1 }); > $template->param('item_level_itypes' => $itemLevelTypes); > > foreach my $biblioNum (@biblionumbers) { >@@ -614,6 +615,14 @@ foreach my $biblioNum (@biblionumbers) { > $anyholdable = 1 if $biblioLoopIter{holdable}; > } > >+unless ($pickup_locations->count) { >+ $numBibsAvailable = 0; >+ $anyholdable = 0; >+ $template->param( >+ message => 1, >+ no_pickup_locations => 1 >+ ); >+} > > if ( $numBibsAvailable == 0 || $anyholdable == 0) { > $template->param( none_available => 1 ); >-- >2.17.2 (Apple Git-113)
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 7614
:
60141
|
60142
|
60143
|
60144
|
60145
|
60785
|
60786
|
60787
|
60938
|
60946
|
70047
|
77895
|
77896
|
77897
|
77898
|
77899
|
77900
|
78020
|
84295
|
84296
|
84297
|
84298
|
84299
|
84300
|
84301
|
84302
|
84303
|
84304
|
84305
|
84306
| 84307 |
84308
|
84309
|
84310
|
84311