Bug 19796 - Fix doubled up subscription info on OPAC detail page
authorKatrin Fischer <katrin.fischer.83@web.de>
Mon, 11 Dec 2017 22:54:54 +0000 (23:54 +0100)
committerChris Cormack <chrisc@catalyst.net.nz>
Fri, 22 Dec 2017 19:16:10 +0000 (08:16 +1300)
The info "Subscription from..." is showing twice on the subscription
tab on the OPAC detail page because of a bad merge. This patch removes
the doubled up information.

To test:
- Add a subscription
- Search for the record in the OPAC
- Switch to the subscription tab
- Verify that the 'Subscription from...' line is repeated
- Apply patch
- Verify only one line remains and nothing is missing

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>

koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt

index 65ba24c..f18e5ba 100644 (file)
                                 [% IF ( subscription.subscriptionnotes ) %]
                                     <p>[% subscription.subscriptionnotes FILTER html_line_break %] </p>
                                 [% END %]
-                                <p>Subscription from: [% subscription.histstartdate | $KohaDates %] to:[% IF ( subscription.histenddate ) %] [% subscription.histenddate | $KohaDates %] [% ELSE %] now (current)[% END %]</p>
                                 <p class="subscription_dates">Subscription from: [% subscription.histstartdate | $KohaDates %] to:[% IF ( subscription.histenddate ) %] [% subscription.histenddate | $KohaDates %] [% ELSE %] now (current)[% END %]</p>
                                 [% IF ( subscription.missinglist ) %]
                                     <p>Missing issues: [% subscription.missinglist %] </p>