From bb3e76f7f9e7f65fa0de2ee0fe51d09c81368480 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Joonas=20Kylm=C3=A4l=C3=A4?= Date: Wed, 22 Jul 2020 15:44:31 +0000 Subject: [PATCH] Bug 12556: Remove unused HTML Koha::Hold::is_at_destination() already checks for found = 'W' so the ELSE code path which would print "Item waiting to be pulled from [...]" never gets executed. Signed-off-by: Timothy Alexis Vass Signed-off-by: Martin Renvoize Signed-off-by: Jonathan Druart --- .../bootstrap/en/includes/holds-table.inc | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/holds-table.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/holds-table.inc index 970df4cccf..0c365b5fb2 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/holds-table.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/holds-table.inc @@ -104,18 +104,14 @@ [% IF ( HOLD.is_waiting ) %] [% IF ( HOLD.is_at_destination ) %] - [% IF ( HOLD.found ) %] - Item waiting at [% HOLD.branch.branchname | html %] - [% IF ( HOLD.waitingdate ) %] - since [% HOLD.waitingdate | $KohaDates %] - [% IF HOLD.expirationdate %] - until [% HOLD.expirationdate | $KohaDates %] - [% END %] + Item waiting at [% HOLD.branch.branchname | html %] + [% IF ( HOLD.waitingdate ) %] + since [% HOLD.waitingdate | $KohaDates %] + [% IF HOLD.expirationdate %] + until [% HOLD.expirationdate | $KohaDates %] [% END %] - - [% ELSE %] - Item waiting to be pulled from [% Branches.GetName( HOLD.branchcode ) | html %] [% END %] + [% ELSE %] Item in transit to [% Branches.GetName( HOLD.branchcode ) | html %] [% END %] -- 2.39.5