From 39e61f56ae861032eecd16e0f7d0655a1b4a52ae Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Sun, 7 Feb 2016 03:39:58 +0000 Subject: [PATCH] Bug 14753 - Show accession date on checkin MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This patch adds the dateaccessioned column fro an item to the display on returns.pl. The column is added with a CSS class for easy selection. To test: Check in some items Note date accessioned is not shown Apply patch Refresh page Check in some items See the added column 'Date acquired' Sponsored by: North Central Regional Library (ncrl.org) Signed-off-by: Marc Véron Signed-off-by: Jonathan Druart Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com --- circ/returns.pl | 1 + koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/circ/returns.pl b/circ/returns.pl index da4cee0630..c4ec1001ae 100755 --- a/circ/returns.pl +++ b/circ/returns.pl @@ -588,6 +588,7 @@ foreach ( sort { $a <=> $b } keys %returneditems ) { $ri{itemtitle} = $biblio->{'title'}; $ri{itemauthor} = $biblio->{'author'}; $ri{itemcallnumber} = $biblio->{'itemcallnumber'}; + $ri{dateaccessioned} = output_pref({ dt=>dt_from_string( $item->{dateaccessioned}, 'sql' ), dateonly => 1}); $ri{itemtype} = $biblio->{'itemtype'}; $ri{itemnote} = $biblio->{'itemnotes'}; $ri{itemnotes_nonpublic} = $item->{'itemnotes_nonpublic'}; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt index 822b70e345..c3e0a1e0cf 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt @@ -589,7 +589,7 @@ $(document).ready(function () { [% IF ( riloop ) %]

Checked-in items

- + [% FOREACH riloo IN riloop %] @@ -609,6 +609,7 @@ $(document).ready(function () { +
Due dateTitleAuthorBarcodeHome libraryHolding libraryShelving locationCall numberTypePatronNote
Due dateTitleAuthorBarcodeHome libraryHolding libraryShelving locationCall numberDate acquiredTypePatronNote
[% Branches.GetName( riloo.holdingbranch ) %] [% riloo.location %] [% riloo.itemcallnumber %][% riloo.dateaccessioned %] [% ItemTypes.GetDescription( riloo.itemtype ) %] [% AuthorisedValues.GetByCode('CCODE', riloo.ccode) %] [% IF ( riloo.duedate ) %] -- 2.39.5