Browse Source

Bug 13134 - Add patron category to returns confirmation dialogs

Some librarians find it useful to know what category a patron is before
confirming a reserve or transfer from the checkin screen.

This patch adds the patron category to the hold and transfer popups
to the patron information already displayed. The li tags that contain
the patron category have the class "patron-category" to allow this data
to be easily hidden.

Test Plan:
1) Apply this patch
2) Trap a hold for a patron, note the patron category is now displayed
3) Trap a hold for pickup at another loation, note the patron category
   is now displayed

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
16.11.x
Kyle Hall 13 years ago
parent
commit
f3322257d5
  1. 3
      circ/returns.pl
  2. 8
      koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt

3
circ/returns.pl

@ -175,6 +175,7 @@ if ( $query->param('reserve_id') ) {
borcnum => $borr->{'cardnumber'},
borfirstname => $borr->{'firstname'},
borsurname => $borr->{'surname'},
borcategory => $borr->{'description'},
diffbranch => 1,
);
}
@ -405,6 +406,7 @@ if ( $messages->{'WrongTransfer'} and not $messages->{'WasTransfered'}) {
wname => $name,
wborfirstname => $borr->{'firstname'},
wborsurname => $borr->{'surname'},
wborcategory => $borr->{'description'},
wbortitle => $borr->{'title'},
wborphone => $borr->{'phone'},
wboremail => $borr->{'email'},
@ -446,6 +448,7 @@ if ( $messages->{'ResFound'}) {
name => $borr->{'surname'} . ", " . $borr->{'title'} . " " . $borr->{'firstname'},
borfirstname => $borr->{'firstname'},
borsurname => $borr->{'surname'},
borcategory => $borr->{'description'},
bortitle => $borr->{'title'},
borphone => $borr->{'phone'},
boremail => $borr->{'email'},

8
koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt

@ -228,8 +228,8 @@ $(document).ready(function () {
<button class="deny" type="submit" onclick="window.location.href='/cgi-bin/koha/circ/returns.pl?itemnumber=[% itemnumber %]&amp;canceltransfer=1'"><i class="fa fa-times"></i> Cancel transfer</button>
[% IF ( wborcnum ) %]<h5>Hold for:</h5>
<ul><li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">
[% borsurname %], [% borfirstname %]</a> ([% borcnum %])</li>
<li>[% wborstnum %] [% wboraddress %][% IF ( wboraddress2 ) %]<br />
[% borsurname %], [% borfirstname %]</a> ([% borcnum %]) <span class="patron-category"> - [% wborcategory %]</span> </li>
<li>[% wborstnum %] [% wboraddress %][% IF ( wboraddress2 ) %]<br />
[% wboraddress2 %]<br />[% END %]
[% wborcity %] [% wborzip %]</li>
[% IF ( wborphone ) %]<li>[% wborphone %]</li>[% END %]
@ -274,6 +274,7 @@ $(document).ready(function () {
<li>
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borsurname %], [% borfirstname %]</a> ([% borcnum %])
<span class="patron-category"> - [% wborcategory %]</span>
</li>
<li>
@ -352,7 +353,7 @@ $(document).ready(function () {
<p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&amp;biblionumber=[% itembiblionumber %]">[% itembarcode |html %]: [% title |html %]</a></p>
<h4>Hold for: </h4>
<ul>
<li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borsurname %], [% borfirstname %]</a> ([% borcnum %])</li>
<li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borsurname %], [% borfirstname %]</a> ([% borcnum %]) <span class="patron-category"> - [% wborcategory %]</span> </li>
<li>[% borstnum %] [% boraddress %]<br />
[% IF ( boraddress2 ) %][% boraddress2 %]<br />[% END %]
[% borcity %] [% borzip %]</li>
@ -477,6 +478,7 @@ $(document).ready(function () {
[% borsurname %], [% borfirstname %]
</a>
([% borcnum %])
<span class="patron-category"> - [% wborcategory %]</span>
</li>
<li>

Loading…
Cancel
Save