From 6385cfd1dc6c0dbceed0064c35f6f86f86e22be2 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Wed, 5 Dec 2012 13:55:00 -0500 Subject: [PATCH] Bug 9219 - Show damaged and lost statuses for issues on circulation.pl as they are on moremember.pl This patch adds the lost and damaged status for an issued item to the table of issued items on circulation.pl to make it align more closely to the same table on moremember.pl Test Plan: 1) Apply patch 2) Issue an item 3) Set the item's damaged status 4) Verify the status is showing near the date due on circulation.pl 5) Clear the damaged status and set the lost status again 6) Repeat step 4 Signed-off-by: Owen Leonard Signed-off-by: Katrin Fischer I could only test this with the DAMAGED value, because currently lost items are removed from the patron account when you set the status. I know there is a patch somewhere to make it optional and the change looks alright. Passes all tests and QA script. Signed-off-by: Jared Camins-Esakov --- .../prog/en/modules/circ/circulation.tt | 22 +++++++++++++++++++ 1 file changed, 22 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 b7f7c4c0e4..05dbefa055 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -819,6 +819,13 @@ No patron matched [% message %] [% END %] [% IF ( todayissue.od ) %][% ELSE %][% END %] [% todayissue.dd %] + + [% IF ( todayissue.itemlost ) %] + [% KohaAuthorisedValues.GetByCode( 'LOST', todayissue.itemlost ) %] + [% END %] + [% IF ( todayissue.damaged ) %] + [% KohaAuthorisedValues.GetByCode( 'DAMAGED', todayissue.damaged ) %] + [% END %] [% todayissue.title |html %][% IF ( todayissue.author ) %], by [% todayissue.author %][% END %][% IF ( todayissue.itemnotes ) %]- [% todayissue.itemnotes %][% END %] [% todayissue.barcode %] [% UNLESS ( noItemTypeImages ) %] [% IF ( todayissue.itemtype_image ) %][% END %][% END %][% todayissue.itemtype %] @@ -899,6 +906,13 @@ No patron matched [% message %] [% END %] [% IF ( previssue.od ) %][% ELSE %][% END %] [% previssue.dd %] + + [% IF ( previssue.itemlost ) %] + [% KohaAuthorisedValues.GetByCode( 'LOST', previssue.itemlost ) %] + [% END %] + [% IF ( previssue.damaged ) %] + [% KohaAuthorisedValues.GetByCode( 'DAMAGED', previssue.damaged ) %] + [% END %] [% previssue.title |html %][% IF ( previssue.author ) %], by [% previssue.author %][% END %] [% IF ( previssue.itemnotes ) %]- [% previssue.itemnotes %][% END %] [% previssue.barcode %] @@ -1030,6 +1044,14 @@ No patron matched [% message %] [% END %] [% IF ( relissue.overdue ) %][% ELSE %][% END %] [% relissue.dd %] + + [% IF ( relissue.itemlost ) %] + [% KohaAuthorisedValues.GetByCode( 'LOST', relissue.itemlost ) %] + [% END %] + [% IF ( relissue.damaged ) %] + [% KohaAuthorisedValues.GetByCode( 'DAMAGED', relissue.damaged ) %] + [% END %] + [% relissue.title |html %][% IF ( relissue.author ) %], by [% relissue.author %][% END %][% IF ( relissue.itemnotes ) %]- [% relissue.itemnotes %][% END %] [% relissue.barcode %] [% UNLESS ( noItemTypeImages ) %] [% IF ( relissue.itemtype_image ) %][% END %][% END %][% relissue.itemtype %] [% relissue.displaydate %] -- 2.39.5