From baa0b0814919f4cb117c2ea9fcd0d726c0191bad Mon Sep 17 00:00:00 2001 From: Nicole Engard Date: Wed, 12 Aug 2009 17:38:08 -0500 Subject: [PATCH] ENH: 3525 - Link to OPAC View from Staff Bib This patch adds a link to the OPAC view for a bib record from the staff client so catalogers can preview changes as the patrons see them. This patch only shows the link is the OPACBaseURL system preference has a value. [RM note re bug 2152: this is probably enough to keep OPACBaseURL after all - the staff interface has no other way of reliably knowing where the OPAC is.] Signed-off-by: Galen Charlton --- catalogue/detail.pl | 6 ++++++ koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/catalogue/detail.pl b/catalogue/detail.pl index 716d65c7ab..a24031e66b 100755 --- a/catalogue/detail.pl +++ b/catalogue/detail.pl @@ -268,4 +268,10 @@ if ( C4::Context->preference("AmazonEnabled") == 1 ) { $template->param( AMAZON_EDITORIAL_REVIEWS => $editorial_reviews ); } } + +# Get OPAC URL +if (C4::Context->preference('OPACBaseURL')){ + $template->param( OpacUrl => C4::Context->preference('OPACBaseURL') ); +} + output_html_with_http_headers $query, $cookie, $template->output; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl index cb9dae5984..4bacb77ae6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl @@ -100,6 +100,11 @@ function verify_images() { + +
  • OPAC View: + /cgi-bin/koha/opac-detail.pl?biblionumber=" target="_blank">Open in new window +
  • + -- 2.11.0