Bugzilla – Attachment 130492 Details for
Bug 30081
Display item type in patron's holds table
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30081: Use itemtype description instead of itemtype code
Bug-30081-Use-itemtype-description-instead-of-item.patch (text/plain), 1.65 KB, created by
Lari Taskula
on 2022-02-11 13:08:57 UTC
(
hide
)
Description:
Bug 30081: Use itemtype description instead of itemtype code
Filename:
MIME Type:
Creator:
Lari Taskula
Created:
2022-02-11 13:08:57 UTC
Size:
1.65 KB
patch
obsolete
>From d973b28d6f7127ac85a655656717fcaad93aaa36 Mon Sep 17 00:00:00 2001 >From: Lari Taskula <lari.taskula@hypernova.fi> >Date: Fri, 11 Feb 2022 13:07:40 +0000 >Subject: [PATCH] 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 >--- > koha-tmpl/intranet-tmpl/prog/js/holds.js | 2 +- > svc/holds | 1 + > 2 files changed, 2 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/holds.js b/koha-tmpl/intranet-tmpl/prog/js/holds.js >index 3136796cc8..44e110df43 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/holds.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/holds.js >@@ -176,7 +176,7 @@ $(document).ready(function() { > "mDataProp": function( oObj ) { > var data = ""; > if ( oObj.itemtype ) { >- data += oObj.itemtype; >+ data += oObj.itemtype_description; > } > return data; > } >diff --git a/svc/holds b/svc/holds >index 77c260ff27..c02602c0ff 100755 >--- a/svc/holds >+++ b/svc/holds >@@ -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{}; > >-- >2.25.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 30081
:
130490
|
130492
|
130493
|
130494
|
130539
|
130540