From a925cb8ba41976a545c8fdf8f42d7b361e95ebb5 Mon Sep 17 00:00:00 2001 From: Lari Taskula 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 Signed-off-by: Katrin Fischer Signed-off-by: Fridolin Somers --- .../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 d13a09ee3c..7e62d7ae3f 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 @@ Hold date Title Call number + Item type Barcode Pickup at Expiration 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 f2c728ca9a..d04371402a 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 @@ Hold date Title Call number + Item type Barcode Pickup at Expiration 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.39.5