From 59ac64db973b3a0f4cebd6c5933c4f78bf0dbc2e 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 --- 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 534aeeef90..01a66a3ce2 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