From b2c85ee13b697924367a227cfe70d5a093645c90 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 7 Jul 2011 10:01:34 -0400 Subject: [PATCH] Fix for Bug 6531 - clicking print button in opac causes 404 error Content-Type: text/plain; charset="utf-8" opac-detail and opac-ISBDdetail both use window.print(), so I've added that to opac-MARCdetail as well. I've also eliminated the "javascript:" pseudo-protocol because it's pointless. I'd prefer to have a real link for non-js users but that will have to wait for another bug. After applying this patch users with JS enabled should get a print prompt after clicking the "Print" link on opac-MARCdetail.pl --- .../opac-tmpl/prog/en/modules/opac-ISBDdetail.tt | 2 +- .../opac-tmpl/prog/en/modules/opac-MARCdetail.tt | 2 +- koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-ISBDdetail.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-ISBDdetail.tt index 35fffc8..f9984a7 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-ISBDdetail.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-ISBDdetail.tt @@ -62,7 +62,7 @@ [% END %] [% END %] [% END %] -
  • Print
  • +
  • Print
  • [% IF ( virtualshelves ) %] [% IF ( opacuserlogin ) %] [% IF ( loggedinusername ) %]
  • diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-MARCdetail.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-MARCdetail.tt index 68b0148..284154e 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-MARCdetail.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-MARCdetail.tt @@ -217,7 +217,7 @@ $(document).ready(function(){ [% END %] [% END %] [% END %] -
  • +
  • Print
  • [% IF ( virtualshelves ) %] 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 4866ba0..991d016 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt @@ -814,7 +814,7 @@ YAHOO.util.Event.onContentReady("furtherm", function () { [% END %] [% END %] [% END %] -
  • Print
  • +
  • Print
  • [% IF ( virtualshelves ) %] [% IF ( opacuserlogin ) %][% IF ( loggedinusername ) %]
  • -- 1.7.3