From 4fd57249b1c33f0370e0daa1c0225cb94aadddae Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Fri, 18 Oct 2019 12:56:43 +0000 Subject: [PATCH] Bug 23862: add enumchron to holds-table Signed-off-by: Kyle M Hall --- koha-tmpl/intranet-tmpl/prog/js/holds.js | 4 ++++ svc/holds | 1 + 2 files changed, 5 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/js/holds.js b/koha-tmpl/intranet-tmpl/prog/js/holds.js index 3c0d77dc48..14f1ab87ac 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/holds.js +++ b/koha-tmpl/intranet-tmpl/prog/js/holds.js @@ -30,6 +30,10 @@ $(document).ready(function() { title += " " + oObj.part_number + " " + oObj.part_name; + if ( oObj.enumchron ) { + title += " (" + oObj.enumchron.escapeHtml() + ")"; + } + title += ""; if ( oObj.author ) { diff --git a/svc/holds b/svc/holds index c406c0e4a4..55aa3a604f 100755 --- a/svc/holds +++ b/svc/holds @@ -129,6 +129,7 @@ while ( my $h = $holds_rs->next() ) { $hold->{itemnumber} = $item->itemnumber(); $hold->{barcode} = $item->barcode(); $hold->{itemtype} = $item->effective_itemtype(); + $hold->{enumchron} = $item->enumchron(); $hold->{itemcallnumber} = $item->itemcallnumber() || q{}; my ( $transferred_when, $transferred_from, $transferred_to ) = -- 2.21.0 (Apple Git-122)