From 21c27fbf8d19cc0d71ac1f903af7681b7667ddd7 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 28 Apr 2015 15:14:49 +0200 Subject: [PATCH] Bug 12253: Fix MARCUrls in basket At the OPAC and the intranet, the urls don't be displayed anymore. The variables used in the templates are not the good ones (MARCurlS vs MARCURLS). Test plan: 1/ On the intranet side, add some urls to some records 2/ Add these records to the basket 3/ Add records without urls defined 4/ Go on the basket view, click "more details" 5/ You should see the urls displayed 6/ Repeat steps 4-5 at the OPAC Signed-off-by: Mark Tompsett NOTE: 856$u displays now in intranet and OPAC. :) Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 6a923f9cc666d3186d70299d0e18530c2bc26e97) Signed-off-by: Chris Cormack --- .../prog/en/modules/basket/basket.tt | 27 ++++++++++--------- .../bootstrap/en/modules/opac-basket.tt | 19 ++++++------- 2 files changed, 25 insertions(+), 21 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt index 278a191e5c..b93bae8908 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt @@ -268,18 +268,21 @@ function batchDelete(){ [% END %] - [% IF ( BIBLIO_RESULT.MARCurlS ) %] - - URL(s) - - [% FOREACH MARCurl IN BIBLIO_RESULT.MARCurlS %] -

[% IF ( MARCurl.part ) %][% MARCurl.part %] -
[% END %] - - [% MARCurl.MARCurl %] - [% IF ( MARCurl.notes ) %][% FOREACH note IN MARCurl.notes %][% note.note %]
[% END %][% END %] - [% END %]

- [% END %] + + [% IF BIBLIO_RESULT.MARCURLS.size %] + + URL(s) + + [% FOREACH MARCurl IN BIBLIO_RESULT.MARCURLS %] + [% IF MARCurl.part %]

[% MARCurl.part %]

[% END %] + + [% MARCurl.linktext %] + + [% IF MARCurl.notes %][% FOREACH note IN MARCurl.notes %]

[% note.note %]

[% END %][% END %] + [% END %] + + + [% END %] Location(s) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-basket.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-basket.tt index 4a44b33947..2418a5ec82 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-basket.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-basket.tt @@ -191,20 +191,21 @@ [% END %] - [% IF ( BIBLIO_RESULT.MARCurlS ) %] + [% IF BIBLIO_RESULT.MARCURLS.size %] URL(s) - [% FOREACH MARCurl IN BIBLIO_RESULT.MARCurlS %] -

- [% IF ( MARCurl.part ) %][% MARCurl.part %] -
- [% END %] + [% FOREACH MARCurl IN BIBLIO_RESULT.MARCURLS %] + [% IF MARCurl.part %]

[% MARCurl.part %]

[% END %] - [% MARCurl.MARCurl %] - [% IF ( MARCurl.notes ) %][% FOREACH note IN MARCurl.notes %][% note.note %]
[% END %][% END %] + [% IF OPACurlOpenInNewWindow %] + [% MARCurl.linktext %] + [% ELSE %] + [% MARCurl.linktext %] [% END %] -

+ + [% IF MARCurl.notes %][% FOREACH note IN MARCurl.notes %]

[% note.note %]

[% END %][% END %] + [% END %] [% END %] -- 2.39.5