From 687d3035eec7a99d1737dfdcc460a16dd4e2d476 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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Kyle M Hall Signed-off-by: Séverine QUEUNE Signed-off-by: Katrin Fischer Signed-off-by: Martin Renvoize --- 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.39.5