From 651aadc01420240e2e8b5e49f31b98dd1f6cb59d Mon Sep 17 00:00:00 2001 From: Ian Walls Date: Mon, 13 Jun 2011 04:08:28 -0400 Subject: [PATCH] Bug 6497: MARC URLs not showing up in details pages under normal view Part one: followup to the original patch. The variable name for the URL itself was wrong, so despite getting the link to show up, the href was the catalog page itself, NOT the 856$u. Updating "MARCurl.MARCurl" to "MARCurl.MARCURL" fixes this issue. To test: go to the OPAC, and see that the URL in the link is the same as the URL in the MARC Part two: this problem is present on the staff side, as well. This patch implements both parts of the fix (renaming "MARCurlS" to "MARCURLS" and "MARCurl.MARCurl" to "MARCurl.MARCURL") To test: go to the staff client, and check that a)URLs show up and b)they link to the URL in the MARC record Signed-off-by: Ian Walls Signed-off-by: Nicole C. Engard Signed-off-by: Chris Cormack (cherry picked from commit 59ac64db973b3a0f4cebd6c5933c4f78bf0dbc2e) Signed-off-by: Chris Nighswonger --- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 6 +++--- koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt index 39c2cd36de..fffe411899 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -138,14 +138,14 @@ function verify_images() { [% IF ( pages ) %] [% END %][% pages %] [% IF ( illus ) %][% illus %][% END %] [% IF ( size ) %][% size %][% END %] -[% IF ( MARCurlS ) %]
  • +[% IF ( MARCURLS ) %]
  • Online Resources: -
      [% FOREACH MARCurl IN MARCurlS %] +
        [% FOREACH MARCurl IN MARCURLS %]
      • [% IF ( MARCurl.part ) %][% MARCurl.part %]
        [% END %] - [% MARCurl.linktext %] + [% MARCurl.linktext %] [% IF ( MARCurl.notes ) %]
          [% FOREACH note IN MARCurl.notes %]
        • [% note.note %]
        • [% END %]
        [% END %]
      • [% END %]
      diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt index 51d56df787..60fadeb3f9 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt @@ -189,7 +189,7 @@ YAHOO.util.Event.onContentReady("furtherm", function () {
      [% END %] - [% IF ( MARCurl.OPACurlOpenInNewWindow ) %][% ELSE %][% END %] + [% IF ( MARCurl.OPACurlOpenInNewWindow ) %][% ELSE %][% END %] [% MARCurl.linktext %] [% IF ( MARCurl.notes ) %]
        [% FOREACH note IN MARCurl.notes %]
      • [% note.note %]
      • [% END %]
      [% END %] -- 2.39.5