Bugzilla – Attachment 129995 Details for
Bug 29982
Show itemtype in holds table on patron details
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29982 - Show itemtype in holds table on patron details
Bug-29982---Show-itemtype-in-holds-table-on-patron.patch (text/plain), 4.28 KB, created by
Magnus Enger
on 2022-01-31 10:38:36 UTC
(
hide
)
Description:
Bug 29982 - Show itemtype in holds table on patron details
Filename:
MIME Type:
Creator:
Magnus Enger
Created:
2022-01-31 10:38:36 UTC
Size:
4.28 KB
patch
obsolete
>From e85dd7c8cb8f9440c914638f834cf48fb3625782 Mon Sep 17 00:00:00 2001 >From: Magnus Enger <magnus@libriotech.no> >Date: Mon, 31 Jan 2022 11:29:16 +0100 >Subject: [PATCH] Bug 29982 - Show itemtype in holds table on patron details > >Show item type in the holds tables on "Check out" and "Details" >tabs in the intranet. > >To test: >- Add an item level hold >- Go to patron details and look at the "Check out" tab >- Click on the "Holds" horizontal tab and verify the item > type is shown in a column between "Title" and "Call > number" >- Go to the "Details" tab >- Click on the "Holds" horizontal tab and verify the display > is the same as above >- Make a record level hold and verify the item type is not > shown in the tables described above >- Check in an item from the record level hold, so it is > "waiting" for the patron >- Verify the item type is now shown in the same way as for > the item level hold, as described above >--- > .../intranet-tmpl/prog/en/modules/circ/circulation.tt | 1 + > .../intranet-tmpl/prog/en/modules/members/moremember.tt | 1 + > koha-tmpl/intranet-tmpl/prog/js/holds.js | 5 +++++ > svc/holds | 7 ++++++- > 4 files changed, 13 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >index a5ada8c27b..c430df1200 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >@@ -839,6 +839,7 @@ > <tr> > <th>Hold date</th> > <th>Title</th> >+ <th>Item type</th> > <th>Call number</th> > <th>Barcode</th> > <th>Pickup at</th> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >index 951c3e1023..7183030daf 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >@@ -775,6 +775,7 @@ > <tr> > <th>Hold date</th> > <th>Title</th> >+ <th>Item type</th> > <th>Call number</th> > <th>Barcode</th> > <th>Pickup at</th> >diff --git a/koha-tmpl/intranet-tmpl/prog/js/holds.js b/koha-tmpl/intranet-tmpl/prog/js/holds.js >index 20ada49226..68ce82a7a2 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/holds.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/holds.js >@@ -168,6 +168,11 @@ $(document).ready(function() { > return title; > } > }, >+ { >+ "mDataProp": function( oObj ) { >+ return oObj.itemtype_descr && oObj.itemtype_descr.escapeHtml() || ""; >+ } >+ }, > { > "mDataProp": function( oObj ) { > return oObj.itemcallnumber && oObj.itemcallnumber.escapeHtml() || ""; >diff --git a/svc/holds b/svc/holds >index 77c260ff27..c30eda3062 100755 >--- a/svc/holds >+++ b/svc/holds >@@ -132,9 +132,14 @@ while ( my $h = $holds_rs->next() ) { > $hold->{not_transfered} = 0; > > if ($item) { >+ >+ my $effective_itemtype = $item->effective_itemtype(); >+ my $itemtype_obj = Koha::ItemTypes->find( $effective_itemtype ); >+ > $hold->{itemnumber} = $item->itemnumber(); > $hold->{barcode} = $item->barcode(); >- $hold->{itemtype} = $item->effective_itemtype(); >+ $hold->{itemtype} = $effective_itemtype; >+ $hold->{itemtype_descr} = $itemtype_obj->translated_description; > $hold->{enumchron} = $item->enumchron(); > $hold->{itemcallnumber} = $item->itemcallnumber() || q{}; > >-- >2.20.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 29982
:
129995
|
130020
|
130144
|
130147