Bug 30081: Use itemtype description instead of itemtype code

To test:
1. Use same plan as previous patch, but observe full item type description
   instead of item type code

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>
This commit is contained in:
Lari Taskula 2022-02-11 13:07:40 +00:00 committed by Fridolin Somers
parent a925cb8ba4
commit 742e14a97b
2 changed files with 2 additions and 1 deletions

View File

@ -176,7 +176,7 @@ $(document).ready(function() {
"mDataProp": function( oObj ) {
var data = "";
if ( oObj.itemtype ) {
data += oObj.itemtype;
data += oObj.itemtype_description;
}
return data;
}

View File

@ -135,6 +135,7 @@ while ( my $h = $holds_rs->next() ) {
$hold->{itemnumber} = $item->itemnumber();
$hold->{barcode} = $item->barcode();
$hold->{itemtype} = $item->effective_itemtype();
$hold->{itemtype_description} = $item->itemtype->description;
$hold->{enumchron} = $item->enumchron();
$hold->{itemcallnumber} = $item->itemcallnumber() || q{};