From fa58f1b5b948292d507756b222c3879bb6e66b8c Mon Sep 17 00:00:00 2001 From: Maxime Pelletier Date: Thu, 29 Sep 2011 16:40:47 -0400 Subject: [PATCH 1/2] Bug 6945: Add a link to show a MARC preview in the normal view of the detail Signed-off-by: Nicole C. Engard Signed-off-by: Paul Poulain Signed-off-by: Jared Camins-Esakov --- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 5 +++++ 1 file changed, 5 insertions(+) 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 ef2b5b980f..d721e6b776 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -1,4 +1,5 @@ [% INCLUDE 'doc-head-open.inc' %] +[% INCLUDE 'greybox.inc' %] Koha › Catalog › [% IF ( unknownbiblionumber ) %] Unknown record @@ -174,6 +175,10 @@ function verify_images() { <a href="http://[% OpacUrl %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]" target="_blank">Open in new window</a> </li> [% END %] + <li> + <strong>MARC Preview:</strong> + <a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% biblionumber %]" title="MARC" rel="gb_page_center[600,500]">Show</a> + </li> </ul> </div> From 880e3b805b0e2a27052a2900b915eefa2edd03f7 Mon Sep 17 00:00:00 2001 From: Owen Leonard <oleonard@myacpl.org> Date: Wed, 22 Aug 2012 16:01:03 -0400 Subject: [PATCH 2/2] Bug 6945 [FOLLOW-UP] Add a link to show a MARC preview in the normal view Adding the same MARC preview link to the section of the template which is displayed when XSLT is on. This revision also adds a unique id to the surrounding element in the normal and XSLT versions. Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> --- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 d721e6b776..236b7fdcdb 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -116,6 +116,7 @@ function verify_images() { [% END %] </span> [% END %] + <span id="catalogue_detail_marc_preview" class="results_summary"><span class="label">MARC Preview:</span> <a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% biblionumber %]" title="MARC" rel="gb_page_center[600,500]">Show</a></span> [% IF ( holdcount ) %]<span class="results_summary"><span class="label">Holds:</span> <span class="holdcount"><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber %]">[% holdcount %]</a></span></span>[% ELSE %][% END %] [% IF ( AmazonCoverImages ) %]</div><div class="yui-u" id="bookcoverimg"> @@ -175,7 +176,7 @@ function verify_images() { <a href="http://[% OpacUrl %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]" target="_blank">Open in new window</a> </li> [% END %] - <li> + <li id="catalogue_detail_marc_preview"> <strong>MARC Preview:</strong> <a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% biblionumber %]" title="MARC" rel="gb_page_center[600,500]">Show</a> </li>