From: Paul Poulain <[email protected]>

This patch adds CoinS support to biblio displays in staff interface.
librarians can now use zotero on the staff interface
---
 catalogue/ISBDdetail.pl                            |    3 ++-
 catalogue/MARCdetail.pl                            |    2 ++
 catalogue/detail.pl                                |    1 +
 .../prog/en/modules/catalogue/ISBDdetail.tt        |    5 ++++-
 .../prog/en/modules/catalogue/MARCdetail.tt        |    4 ++++
 .../prog/en/modules/catalogue/detail.tt            |    5 +++++
 6 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/catalogue/ISBDdetail.pl b/catalogue/ISBDdetail.pl
index 58a8d90..8daa13e 100755
--- a/catalogue/ISBDdetail.pl
+++ b/catalogue/ISBDdetail.pl
@@ -106,7 +106,8 @@ $template->param (
     biblionumber        => $biblionumber,
     isbdview            => 1,
     z3950_search_params => 
C4::Search::z3950_search_args(GetBiblioData($biblionumber)),
-    C4::Search::enabled_staff_search_views
+    C4::Search::enabled_staff_search_views,
+    ocoins => GetCOinSBiblio($biblionumber),
 );
 
 output_html_with_http_headers $query, $cookie, $template->output;
diff --git a/catalogue/MARCdetail.pl b/catalogue/MARCdetail.pl
index 0a2974b..52fbc6a 100755
--- a/catalogue/MARCdetail.pl
+++ b/catalogue/MARCdetail.pl
@@ -82,6 +82,8 @@ my ( $template, $loggedinuser, $cookie ) = 
get_template_and_user(
     }
 );
 
+$template->param( ocoins => GetCOinSBiblio($biblionumber) );
+
 my $record = GetMarcBiblio($biblionumber);
 
 if ( not defined $record ) {
diff --git a/catalogue/detail.pl b/catalogue/detail.pl
index 8738737..d43038d 100755
--- a/catalogue/detail.pl
+++ b/catalogue/detail.pl
@@ -83,6 +83,7 @@ if (C4::Context->preference("XSLTDetailsDisplay") ) {
 }
 
 $template->param( 'SpineLabelShowPrintOnBibDetails' => 
C4::Context->preference("SpineLabelShowPrintOnBibDetails") );
+$template->param( ocoins => GetCOinSBiblio($biblionumber) );
 
 # some useful variables for enhanced content;
 # in each case, we're grabbing the first value we find in
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/ISBDdetail.tt 
b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/ISBDdetail.tt
index b08f360..8b8fc97 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/ISBDdetail.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/ISBDdetail.tt
@@ -30,7 +30,10 @@
       <div id="yui-main">
        <div class="yui-b">
        [% INCLUDE 'cat-toolbar.inc' %]
-
+    [% IF ( ocoins ) %]
+    <!-- COinS / OpenURL -->
+    <span class="Z3988" title="[% ocoins %]"></span>
+    [% END %]     
          <div id="catalogue_ISBDdetail">
                  [% ISBD %]
          </div>
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt 
b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt
index 3fac577..0202462 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt
@@ -57,6 +57,10 @@ function Changefwk(FwkList) {
                             [% IF ( frameworkcodeloo.selected ) %]<option 
value="[% frameworkcodeloo.value %]" selected="selected">[% 
frameworkcodeloo.frameworktext %]</option>[% ELSE %]<option value="[% 
frameworkcodeloo.value %]">[% frameworkcodeloo.frameworktext %]</option>[% END 
%]
                             [% END %]
             </select> </b></p>
+[% IF ( ocoins ) %]
+<!-- COinS / OpenURL -->
+<span class="Z3988" title="[% ocoins %]"></span>
+[% END %]     
 
 <div id="bibliotabs" class="toptabs numbered">
        <ul>
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 e723781..81686ad 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt
@@ -68,6 +68,11 @@ function verify_images() {
     <div class="yui-b">
 
 [% INCLUDE 'cat-toolbar.inc' %]
+    [% IF ( ocoins ) %]
+        <!-- COinS / OpenURL -->
+        <span class="Z3988" title="[% ocoins %]"></span>
+    [% END %]     
+
     [% IF ( AmazonEnabled ) %]
         [% IF ( XSLTDetailsDisplay ) %]
             <div class="yui-gc">
-- 
1.7.4.1

_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to