From 535cadf081c6c6dfd6ed05e407c75853b6f674d9 Mon Sep 17 00:00:00 2001 From: Christopher Brannon Date: Tue, 7 Mar 2017 20:01:05 +0000 Subject: [PATCH] Bug 18219: Remove duplicated code in returns.tt Removed lines of code that were duplicated in bug 16530. Fixes alignment of a few lines of code surrounding duplication. Modifies returns.tt To test: 1) Check in items that are not checked out. 2) Note duplicated problem message (i.e. "Not checked out.") 3) Apply patch. 4) Repeat step 1. 5) Note the problem message is no longer duplicated. --- .../intranet-tmpl/prog/en/modules/circ/returns.tt | 43 ++-------------------- 1 file changed, 4 insertions(+), 39 deletions(-) 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 702a039..2744cbd 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt @@ -634,45 +634,10 @@ $(document).ready(function () { [% END %] [% IF ( errmsgloo.prevdebarred ) %]

Reminder: Patron was earlier restricted until [% errmsgloo.prevdebarred | $KohaDates %].

- [% END %] - [% IF ( errmsgloo.badbarcode ) %] -

No item with barcode: [% errmsgloo.msg %]

- [% END %] - [% IF ( errmsgloo.ispermanent ) %] -

Please return item to: [% errmsgloo.msg %]

- [% END %] - [% IF ( errmsgloo.notissued ) %] -

Not checked out.

- [% END %] - [% IF ( errmsgloo.localuse) %] -

Local use recorded

- [% END %] - [% IF ( errmsgloo.waslost ) %] -

Item was lost, now found.

- [% IF ( LostItemFeeRefunded ) %] -

A refund has been applied to the borrowing patron's account.

- [% ELSE %] -

Any lost item fees for this item will remain on the patron's account.

- [% END %] - [% END %] - [% IF ( errmsgloo.withdrawn ) %] - [% IF BlockReturnOfWithdrawnItems %] -
Cannot check in
-

NOT CHECKED IN

-

Item is withdrawn.

- [% ELSE %] -

Item is withdrawn.

- [% END %] - [% END %] - [% IF ( errmsgloo.debarred ) %] -

[% errmsgloo.debarname %]([% errmsgloo.debarcardnumber %]) is now debarred until [% errmsgloo.debarred | $KohaDates %].

- [% END %] - [% IF ( errmsgloo.prevdebarred ) %] -

Reminder: Patron was earlier restricted until [% errmsgloo.prevdebarred | $KohaDates %].

- [% END %] - [% IF ( errmsgloo.foreverdebarred ) %] -

Reminder: Patron has an indefinite restriction.

- [% END %] + [% END %] + [% IF ( errmsgloo.foreverdebarred ) %] +

Reminder: Patron has an indefinite restriction.

+ [% END %] [% END %] [% END %] -- 2.1.4