From b5a6c4180fb1fe9f0232dce0afe64a26d78e0a28 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Wed, 5 Dec 2012 13:55:00 -0500 Subject: [PATCH] [PASSED QA] 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 http://bugs.koha-community.org/show_bug.cgi?id=6739 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. --- .../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 b7f7c4c..05dbefa 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 %] -- 1.7.9.5