From 2692977afa5368a0f9fd206c4ec077c7cc8b34ca Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 28 Apr 2015 15:14:49 +0200 Subject: [PATCH] [PASSED QA] 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 --- .../intranet-tmpl/prog/en/modules/basket/basket.tt | 27 ++++++++++++---------- .../opac-tmpl/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 d9ff504..847088c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt @@ -278,18 +278,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 4a44b33..2418a5e 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 %] -- 1.9.1