[Koha-patches] [PATCH] ENH: 3525 - Link to OPAC View from Staff Bib
Nicole Engard
nengard at gmail.com
Thu Aug 13 00:38:08 CEST 2009
From: Nicole Engard <nce at liblime.com>
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.
---
catalogue/detail.pl | 6 ++++++
.../prog/en/modules/catalogue/detail.tmpl | 5 +++++
2 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/catalogue/detail.pl b/catalogue/detail.pl
index 716d65c..a24031e 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 cb9dae5..4bacb77 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() {
<!-- /TMPL_LOOP --></ul>
</li>
<!-- /TMPL_IF -->
+ <!-- TMPL_IF name="OpacUrl" -->
+ <li><strong>OPAC View:</strong>
+ <a href="http://<!-- TMPL_VAR name="OpacUrl" -->/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->" target="_blank">Open in new window</a>
+ </li>
+ <!-- /TMPL_IF -->
</ul>
</div>
--
1.5.6.5
More information about the Koha-patches
mailing list