Bugzilla – Attachment 130493 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: Add item type column to holds table
Bug-30081-Add-item-type-column-to-holds-table.patch (text/plain), 3.51 KB, created by
Owen Leonard
on 2022-02-11 13:15:03 UTC
(
hide
)
Description:
Bug 30081: Add item type column to holds table
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2022-02-11 13:15:03 UTC
Size:
3.51 KB
patch
obsolete
>From 4118fa5bf15f4e5f36b2eecb38a433932cc34c03 Mon Sep 17 00:00:00 2001 >From: Lari Taskula <lari.taskula@hypernova.fi> >Date: Fri, 11 Feb 2022 12:53:55 +0000 >Subject: [PATCH] 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> >--- > .../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 | 9 +++++++++ > 3 files changed, 11 insertions(+) > >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 5ec6bd391a..7fcc1e20b1 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >+++ b/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> >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 81602072d0..deaec4c251 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >+++ b/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> >diff --git a/koha-tmpl/intranet-tmpl/prog/js/holds.js b/koha-tmpl/intranet-tmpl/prog/js/holds.js >index 9f17863f1b..3136796cc8 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/holds.js >+++ b/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 = ""; >-- >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 30081
:
130490
|
130492
|
130493
|
130494
|
130539
|
130540