Browse Source

Bug 30081: Add item type column to holds table

Add new column item type to holds table in patron's details and check
out views. Some libraries will find this information useful for
distinguishing inter library holds from normal holds.

To test:
1. Apply patch
2. Place a hold and confirm it
3. Go to cgi-bin/koha/circ/circulation.pl?borrowernumber=1 with
   borrowernumber being the id of your patron
4. Click "1 Hold(s)" tab
5. Observe new column "Item type"
6. Confirm the item type is correct
7. Go to moremember.pl?borrowernumber=1 with
   borrowernumber being the id of your patron
8. Repeat steps 4-6

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

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
22.05.x
Lari Taskula 2 years ago
committed by Fridolin Somers
parent
commit
a925cb8ba4
  1. 1
      koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt
  2. 1
      koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt
  3. 9
      koha-tmpl/intranet-tmpl/prog/js/holds.js

1
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt

@ -840,6 +840,7 @@
<th>Hold date</th>
<th>Title</th>
<th>Call number</th>
<th>Item type</th>
<th>Barcode</th>
<th>Pickup at</th>
<th>Expiration</th>

1
koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt

@ -776,6 +776,7 @@
<th>Hold date</th>
<th>Title</th>
<th>Call number</th>
<th>Item type</th>
<th>Barcode</th>
<th>Pickup at</th>
<th>Expiration</th>

9
koha-tmpl/intranet-tmpl/prog/js/holds.js

@ -172,6 +172,15 @@ $(document).ready(function() {
return oObj.itemcallnumber && oObj.itemcallnumber.escapeHtml() || "";
}
},
{
"mDataProp": function( oObj ) {
var data = "";
if ( oObj.itemtype ) {
data += oObj.itemtype;
}
return data;
}
},
{
"mDataProp": function( oObj ) {
var data = "";

Loading…
Cancel
Save