Bugzilla – Attachment 99048 Details for
Bug 19718
Create message for patrons with multiple holds on the same item
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19718: Show message if patron has existing holds on a title
Bug-19718-Show-message-if-patron-has-existing-hold.patch (text/plain), 3.00 KB, created by
Katrin Fischer
on 2020-02-14 21:52:33 UTC
(
hide
)
Description:
Bug 19718: Show message if patron has existing holds on a title
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2020-02-14 21:52:33 UTC
Size:
3.00 KB
patch
obsolete
>From 7d80625edf7b3ae4c1248cbe6f0b0c1219e7247e Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Wed, 28 Aug 2019 11:51:18 +0000 >Subject: [PATCH] Bug 19718: Show message if patron has existing holds on a > title > >To test: > 1 - Set a rule to allow multiple holds on a title > 2 - Place a single hold in the opac for a patron > 3 - Return to record and attempt place a second hold > 4 - Note there is no message but that you must match the type placed before (item or record level) > 5 - Don't place the hold > 6 - Apply patch > 7 - Attempt to place second hold again > 8 - Note there is a message informing you of which level hold you may place > 9 - Test with both item/record level holds and placing a single request or multiple requests > >Signed-off-by: donnab <donna@bywatersolutions.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt | 8 +++++++- > opac/opac-reserve.pl | 1 + > 2 files changed, 8 insertions(+), 1 deletion(-) > >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 6932d49f90..30c63ed0d5 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt >@@ -158,9 +158,15 @@ > <div id="bigloop"> > > [% FOREACH bibitemloo IN bibitemloop %] >+ [% IF ( bibitemloo.holdable ) %] > <div class="holdrow"> >+ [% IF bibitemloo.forced_hold_level %] >+ <span class="forced_hold_level"><h5> >+ You already have at least one [% bibitemloo.forced_hold_level %] level hold on this title. >+ All further holds must be [% bibitemloo.forced_hold_level %] level. >+ </h5></span> >+ [% END %] > <p> >- [% IF ( bibitemloo.holdable ) %] > <input class="reserve_mode" name="reserve_mode" type="hidden" value="single"/> > <input class="single_bib" name="single_bib" type="hidden" value="[% bibitemloo.biblionumber | html %]"/> > <span class="confirmjs_hold" title="[% bibitemloo.biblionumber | html %]" style="padding:.3em"></span> >diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl >index 96834cb6cd..95b208e148 100755 >--- a/opac/opac-reserve.pl >+++ b/opac/opac-reserve.pl >@@ -638,6 +638,7 @@ foreach my $biblioNum (@biblionumbers) { > if ($forced_hold_level) { > $biblioLoopIter{force_hold} = 1 if $forced_hold_level eq 'item'; > $biblioLoopIter{itemholdable} = 0 if $forced_hold_level eq 'record'; >+ $biblioLoopIter{forced_hold_level} = $forced_hold_level; > } > > >-- >2.17.1
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 19718
:
92489
|
95120
|
98946
| 99048 |
99049