Bugzilla – Attachment 7985 Details for
Bug 7470
Babeltheque improvement and social networks links (like, +1,...)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7470 Babeltheque integration
0001-Bug-7470-Babeltheque-integration.patch (text/plain), 46.62 KB, created by
Jonathan Druart
on 2012-03-02 13:40:41 UTC
(
hide
)
Description:
Bug 7470 Babeltheque integration
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2012-03-02 13:40:41 UTC
Size:
46.62 KB
patch
obsolete
>From 81bb627a31d40b27bda3c12c18aa6a2e280e1a78 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Fri, 2 Mar 2012 13:59:44 +0100 >Subject: [PATCH 1/1] Bug 7470: Babeltheque integration > >3 features: >- adds social network information in search results >- adds babeltheque data in opac-detail >- adds social network links in opac-detail too (google+, twitter, mail > and co.) >--- > C4/SocialData.pm | 129 +++++++++++++++++ > installer/data/mysql/kohastructure.sql | 16 ++ > installer/data/mysql/sysprefs.sql | 4 + > installer/data/mysql/updatedatabase.pl | 26 ++++ > .../admin/preferences/enhanced_content.pref | 6 + > .../en/modules/admin/preferences/searching.pref | 7 + > koha-tmpl/opac-tmpl/prog/en/css/opac.css | 152 +++++++++++++++++++- > .../opac-tmpl/prog/en/includes/opac-bottom.inc | 4 - > koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt | 59 ++++++-- > .../opac-tmpl/prog/en/modules/opac-results.tt | 20 +++ > koha-tmpl/opac-tmpl/prog/images/Star0.gif | Bin 0 -> 1360 bytes > koha-tmpl/opac-tmpl/prog/images/Star1.gif | Bin 0 -> 1395 bytes > koha-tmpl/opac-tmpl/prog/images/Star2.gif | Bin 0 -> 1410 bytes > koha-tmpl/opac-tmpl/prog/images/Star3.gif | Bin 0 -> 1391 bytes > koha-tmpl/opac-tmpl/prog/images/Star4.gif | Bin 0 -> 1380 bytes > koha-tmpl/opac-tmpl/prog/images/Star5.gif | Bin 0 -> 1284 bytes > koha-tmpl/opac-tmpl/prog/images/bonus.png | Bin 0 -> 1768 bytes > .../opac-tmpl/prog/images/socnet/delicious16.gif | Bin 0 -> 89 bytes > .../opac-tmpl/prog/images/socnet/facebook16.png | Bin 0 -> 727 bytes > .../opac-tmpl/prog/images/socnet/linkedin16.png | Bin 0 -> 751 bytes > .../opac-tmpl/prog/images/socnet/mailto16.png | Bin 0 -> 792 bytes > .../opac-tmpl/prog/images/socnet/twitter16.png | Bin 0 -> 780 bytes > .../cronjobs/social_data/get_report_social_data.pl | 16 ++ > misc/cronjobs/social_data/update_social_data.pl | 16 ++ > opac/opac-detail.pl | 7 + > opac/opac-search.pl | 19 +++- > 26 files changed, 463 insertions(+), 18 deletions(-) > create mode 100644 C4/SocialData.pm > create mode 100644 koha-tmpl/opac-tmpl/prog/images/Star0.gif > create mode 100644 koha-tmpl/opac-tmpl/prog/images/Star1.gif > create mode 100644 koha-tmpl/opac-tmpl/prog/images/Star2.gif > create mode 100644 koha-tmpl/opac-tmpl/prog/images/Star3.gif > create mode 100644 koha-tmpl/opac-tmpl/prog/images/Star4.gif > create mode 100644 koha-tmpl/opac-tmpl/prog/images/Star5.gif > create mode 100644 koha-tmpl/opac-tmpl/prog/images/bonus.png > create mode 100644 koha-tmpl/opac-tmpl/prog/images/socnet/delicious16.gif > create mode 100644 koha-tmpl/opac-tmpl/prog/images/socnet/facebook16.png > create mode 100644 koha-tmpl/opac-tmpl/prog/images/socnet/linkedin16.png > create mode 100644 koha-tmpl/opac-tmpl/prog/images/socnet/mailto16.png > create mode 100644 koha-tmpl/opac-tmpl/prog/images/socnet/twitter16.png > create mode 100644 misc/cronjobs/social_data/get_report_social_data.pl > create mode 100644 misc/cronjobs/social_data/update_social_data.pl > >diff --git a/C4/SocialData.pm b/C4/SocialData.pm >new file mode 100644 >index 0000000..e8bca90 >--- /dev/null >+++ b/C4/SocialData.pm >@@ -0,0 +1,129 @@ >+package C4::SocialData; >+ >+# This file is part of Koha. >+# >+# Koha is free software; you can redistribute it and/or modify it under the >+# terms of the GNU General Public License as published by the Free Software >+# Foundation; either version 2 of the License, or (at your option) any later >+# version. >+# >+# Koha is distributed in the hope that it will be useful, but WITHOUT ANY >+# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR >+# A PARTICULAR PURPOSE. See the GNU General Public License for more details. >+# >+# You should have received a copy of the GNU General Public License along with >+# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place, >+# Suite 330, Boston, MA 02111-1307 USA >+ >+use Modern::Perl; >+use C4::Context; >+use Business::ISBN; >+use C4::Koha; >+ >+=head2 get_data >+ >+Get social data from a biblio >+ >+params: >+ $isbn = isbn of the biblio (it must be the same in your database, isbn given to babelio) >+ >+returns: >+ this function returns an hashref with keys >+ >+ isbn = isbn >+ num_critics = number of critics >+ num_critics_pro = number of profesionnal critics >+ num_quotations = number of quotations >+ num_videos = number of videos >+ score_avg = average score >+ num_scores = number of score >+=cut >+sub get_data { >+ my ( $isbn ) = @_; >+ my $dbh = C4::Context->dbh; >+ my $sth = $dbh->prepare( qq{SELECT * FROM social_data WHERE isbn = ? LIMIT 1} ); >+ $sth->execute( $isbn ); >+ my $results = $sth->fetchrow_hashref; >+ >+ return $results; >+} >+ >+=head 2 >+ >+Update Social data >+ >+params: >+ $url = url containing csv file with data >+ >+data separator : ; (semicolon) >+data order : isbn ; active ; critics number , critics pro number ; quotations number ; videos number ; average score ; scores number >+ >+=cut >+sub update_data { >+ my ( $output_filepath ) = @_; >+ >+ my $dbh = C4::Context->dbh; >+ my $sth = $dbh->prepare( qq{INSERT INTO social_data ( >+ `isbn`, `num_critics`, `num_critics_pro`, `num_quotations`, `num_videos`, `score_avg`, `num_scores` >+ ) VALUES ( ?, ?, ?, ?, ?, ?, ? ) >+ ON DUPLICATE KEY UPDATE `num_critics`=?, `num_critics_pro`=?, `num_quotations`=?, `num_videos`=?, `score_avg`=?, `num_scores`=? >+ } ); >+ >+ open( FILE, $output_filepath ) or die "File $output_filepath can not be read"; >+ my $sep = qq{;}; >+ my $i = 0; >+ my $unknown = 0; >+ while ( my $line = <FILE> ) { >+ my ( $isbn, $active, $num_critics, $num_critics_pro, $num_quotations, $num_videos, $score_avg, $num_scores ) = split $sep, $line; >+ next if not $active; >+ eval { >+ $sth->execute( $isbn, $num_critics, $num_critics_pro, $num_quotations, $num_videos, $score_avg, $num_scores, >+ $num_critics, $num_critics_pro, $num_quotations, $num_videos, $score_avg, $num_scores >+ ); >+ }; >+ if ( $@ ) { >+ warn "Can't insert $isbn ($@)"; >+ } else { >+ $i++; >+ } >+ } >+ say "$i data insered or updated"; >+} >+ >+=head 2 >+ >+Get social data report >+ >+=cut >+sub get_report { >+ my $dbh = C4::Context->dbh; >+ >+ my $sth = $dbh->prepare( qq{ >+ SELECT biblionumber, isbn FROM biblioitems >+ } ); >+ $sth->execute; >+ my %results; >+ while ( my ( $biblionumber, $isbn ) = $sth->fetchrow() ) { >+ push @{ $results{no_isbn} }, { biblionumber => $biblionumber } and next if not $isbn; >+ my $original_isbn = $isbn; >+ $isbn =~ s/^\s*(\S*)\s*$/$1/; >+ $isbn = GetNormalizedISBN( $isbn, undef, undef ); >+ $isbn = Business::ISBN->new( $isbn ); >+ next if not $isbn; >+ eval{ >+ $isbn = $isbn->as_isbn13->as_string; >+ }; >+ next if $@; >+ $isbn =~ s/-//g; >+ my $social_datas = C4::SocialData::get_data( $isbn ); >+ if ( $social_datas ) { >+ push @{ $results{with} }, { biblionumber => $biblionumber, isbn => $isbn, original => $original_isbn }; >+ } else { >+ push @{ $results{without} }, { biblionumber => $biblionumber, isbn => $isbn, original => $original_isbn }; >+ } >+ } >+ return \%results; >+} >+ >+1; >+ >diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql >index 67149c9d..773473d 100644 >--- a/installer/data/mysql/kohastructure.sql >+++ b/installer/data/mysql/kohastructure.sql >@@ -2687,6 +2687,22 @@ CREATE TABLE `bibliocoverimage` ( > CONSTRAINT `bibliocoverimage_fk1` FOREIGN KEY (`biblionumber`) REFERENCES `biblio` (`biblionumber`) ON DELETE CASCADE ON UPDATE CASCADE > ) ENGINE=InnoDB DEFAULT CHARSET=utf8; > >+-- >+-- Table structure for table `social_data` >+-- >+ >+DROP TABLE IF EXISTS `social_data`; >+CREATE TABLE IF NOT EXISTS `social_data` ( >+ `isbn` VARCHAR(30), >+ `num_critics` INT, >+ `num_critics_pro` INT, >+ `num_quotations` INT, >+ `num_videos` INT, >+ `score_avg` DECIMAL(5,2), >+ `num_scores` INT, >+ PRIMARY KEY (`isbn`) >+) ENGINE=InnoDB DEFAULT CHARSET=utf8; >+ > /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; > /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; > /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; >diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql >index 20c880c..5075321 100644 >--- a/installer/data/mysql/sysprefs.sql >+++ b/installer/data/mysql/sysprefs.sql >@@ -337,3 +337,7 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES > INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('BorrowerRenewalPeriodBase', 'now', 'Set whether the borrower renewal date should be counted from the dateexpiry or from the current date ','dateexpiry|now','Choice'); > INSERT INTO `systempreferences` (variable,value,options,explanation,type) VALUES ('AllowItemsOnHoldCheckout',0,'Do not generate RESERVE_WAITING and RESERVED warning when checking out items reserved to someone else. This allows self checkouts for those items.','','YesNo'); > INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacExportOptions','bibtex|dc|marcxml|marc8|utf8|marcstd|mods|ris','Define export options available on OPAC detail page.','','free'); >+INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('Babeltheque_url_js','','Url for Babeltheque javascript (e.g. http://www.babeltheque.com/bw_XX.js)','','Free'); >+INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('Babeltheque_url_update', '', 'Url for Babeltheque update (E.G. http://www.babeltheque.com/.../file.csv.bz2)', '', 'Free'); >+INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('SocialNetworks','1','Enable/Disable social networks links in opac detail pages','','YesNo'); >+ >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index d6b3fe8..395a2dd 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -4719,6 +4719,32 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { > SetVersion ($DBversion); > } > >+$DBversion = "3.07.00.XXX"; >+if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { >+ $dbh->do( qq{INSERT IGNORE INTO `systempreferences` (variable,value,explanation,options,type) VALUES('Babeltheque_url_js','','Url for Babeltheque javascript (e.g. http://www.babeltheque.com/bw_XX.js','','Free')} ); >+ $dbh->do( qq{CREATE TABLE IF NOT EXISTS `social_data` >+ ( `isbn` VARCHAR(30), >+ `num_critics` INT, >+ `num_critics_pro` INT, >+ `num_quotations` INT, >+ `num_videos` INT, >+ `score_avg` DECIMAL(5,2), >+ `num_scores` INT, >+ PRIMARY KEY (`isbn`) >+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8 >+ } ); >+ $dbh->do( qq{INSERT IGNORE INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('Babeltheque_url_update', '', 'Url for Babeltheque update (E.G. http://www.babeltheque.com/.../file.csv.bz2)', '', 'Free')} ); >+ print "Upgrade to $DBversion done (added syspref and table for babeltheque (Babeltheque_url_js, babeltheque))\n"; >+ SetVersion($DBversion); >+} >+ >+$DBversion = "3.07.00.XXX"; >+if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { >+ $dbh->do( qq{INSERT IGNORE INTO `systempreferences` (variable,value,explanation,options,type) VALUES('SocialNetworks','1','Enable/Disable social networks links in opac detail','','YesNo')} ); >+ print "Upgrade to $DBversion done (added syspref Social_networks)\n"; >+ SetVersion($DBversion); >+} >+ > =head1 FUNCTIONS > > =head2 DropAllForeignKeys($table) >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/enhanced_content.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/enhanced_content.pref >index f5828ae..bb3bc2d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/enhanced_content.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/enhanced_content.pref >@@ -103,6 +103,12 @@ Enhanced Content: > yes: Do > no: "Don't" > - include information (such as reviews and citations) from Babelthèque in item detail pages on the OPAC. >+ - >+ - pref: Babeltheque_url_js >+ - Defined the url for the Babeltheque javascript file (eg. http://www.babeltheque.com/bw_XX.js) >+ - >+ - pref: Babeltheque_url_update >+ - Defined the url for the Babeltheque update periodically (eq. http://www.babeltheque.com/.../file.csv.bz2). > Baker and Taylor: > - > - pref: BakerTaylorEnabled >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref >index 12075ec..6934e63 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref >@@ -69,6 +69,13 @@ Searching: > yes: Include > no: "Don't include" > - subdivisions for searches generated by clicking on subject tracings. >+ - >+ - pref: SocialNetworks >+ default: 0 >+ choices: >+ yes: Enable >+ no: Disable >+ - Enable/Disable social network links in opac detail pages > Search Form: > - > - Show checkboxes to search by >diff --git a/koha-tmpl/opac-tmpl/prog/en/css/opac.css b/koha-tmpl/opac-tmpl/prog/en/css/opac.css >index f2b1467..7ee950c 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/css/opac.css >+++ b/koha-tmpl/opac-tmpl/prog/en/css/opac.css >@@ -2309,4 +2309,154 @@ a.localimage img { > border : 1px solid #8EB3E7; > margin : 0 .5em; > padding : .3em; >-} >\ No newline at end of file >+} >+ >+/* ## BABELTHEQUE ## */ >+/* Uncomment if babeltheque configuration no contains these lines */ >+/* >+#BW_etiquettes { >+ clear :left; >+ border: 1px solid #E8E8E8; >+ margin-top: 10px; >+ width: 49%; >+ float: left; >+ visibility: hidden; >+ visibility: visible\9; >+} >+#BW_etiquettes:not(:empty) { >+ visibility: visible; >+} >+ >+#BW_etiquettes h2 { >+ clear:left; >+ background-color: #E8E8E8; >+ margin: 5px 10px; >+ padding: 0 5px; >+} >+ >+#BW_ulEti {max-width:100%;} >+ >+#BW_ulEti ul { >+ margin:0; >+ padding:0 15px; >+ list-style-type: none; >+} >+ >+#BW_ulEti a { >+ text-decoration: none; >+} >+ >+#BW_ulEti a.tag_s0 {font-weight: 120;font-size:0.8em;} >+#BW_ulEti a.tag_s1 {font-weight: 150;font-size:0.9em;} >+#BW_ulEti a.tag_s2 {font-weight: 180;font-size:1.0em;} >+#BW_ulEti a.tag_s3 {font-weight: 200;font-size:1.2em;} >+#BW_ulEti a.tag_s4 {font-weight: 220;font-size:1.4em;} >+#BW_ulEti a.tag_s5 {font-weight: 230;font-size:1.5em;} >+#BW_ulEti a.tag_s6 {font-weight: 320;font-size:1.6em;} >+#BW_ulEti a.tag_s7 {font-weight: 350;font-size:1.7em;} >+#BW_ulEti a.tag_s8 {font-weight: 400;font-size:1.8em;} >+#BW_ulEti { padding: 0px; line-height: 2em; text-align: center;} >+#BW_ulEti a { padding: 2px; } >+#BW_ulEti { margin: 0px; } >+ >+#BW_ulEti ol { >+ float:left; >+ display: inline; >+ margin: 0 10px; >+} >+ >+#BW_suggestions { >+ border: 1px solid #E8E8E8; >+ margin-top: 10px; >+ float: right; >+ width: 49%; >+ visibility: hidden; >+ visibility: visible\9; >+} >+#BW_suggestions:not(:empty) { >+ visibility: visible; >+} >+#BW_suggestions h2 { >+ background-color: #E8E8E8; >+ margin: 5px 10px; >+ padding: 0 5px; >+} >+#BW_suggestions .BW_livres_tag_page { >+ padding: 0 15px; >+} >+#BW_suggestions .BW_livres_tag_page:before { >+ content : '> '; >+} >+#BW_droite .BW_livres_tag:before { >+ content : '> '; >+} >+ >+#BW_videos { >+ clear : both; >+ border: 1px solid #E8E8E8; >+ padding-bottom: 140px; >+ margin-top: 10px; >+ max-width: 100%; >+ visibility: hidden; >+ visibility: visible\9; >+} >+ >+#BW_videos:not(:empty) { >+ visibility: visible; >+} >+ >+#BW_videos h2 { >+ background-color: #E8E8E8; >+ margin: 5px 10px; >+ padding: 0 5px; >+} >+#BW_videos .BW_bloc_vid { >+ clear: both; >+ padding: 0 15px; >+} >+.BW_vignette_vid { >+ border: 1px solid #DFD9CE; >+ float: left; >+ height: 141px; >+ margin: 5px; >+ min-height: 141px; >+ padding: 5px; >+ white-space: nowrap; >+} >+ >+#BW_notes {clear :left;} >+#BW_notes h2 {font-size:85%;} >+ >+#BW_citations {} >+#BW_citations h2 {font-size:85%;} >+ >+#BW_critiques {} >+#BW_critiques h2 {font-size:85%;} >+ >+#BW_critiques_pro {} >+#BW_critiques_pro h2 {font-size:85%;} >+ >+#BW_citations,#BW_critiques,#BW_critiques_pro { >+ background: -moz-linear-gradient(center top , #3399FF, #3333FF) repeat scroll 0 0 transparent; >+ background: -webkit-gradient(linear, center top, center bottom, from(#3399FF), to(#3333FF)); >+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#3399FF', endColorstr='#3333FF'); >+ border: 1px solid #B7B7B7; >+ border-radius: 5px 5px 5px 5px; >+ color: #FFFFCC; >+ display: inline-block; >+ float: left; >+ font-weight: bold; >+ margin: 15px 20px 15px 0; >+ min-width: 150px; >+ padding: 0 15px 8px; >+ position: relative; >+ text-align: center; >+ text-shadow: 1px 1px 1px #777777; >+ white-space: nowrap; >+} >+ >+#BW_citations a,#BW_critiques a,#BW_critiques_pro a { >+ color: #FFFFCC; >+} >+ >+*/ >diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/opac-bottom.inc b/koha-tmpl/opac-tmpl/prog/en/includes/opac-bottom.inc >index a264af3..33d3c06 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/includes/opac-bottom.inc >+++ b/koha-tmpl/opac-tmpl/prog/en/includes/opac-bottom.inc >@@ -53,9 +53,5 @@ > </div> > [% END %] > >-[% IF ( Babeltheque ) %] >-<script type="text/javascript" src="http://www.babeltheque.com/bw_30.js"></script> >-[% END %] >- > </body> > </html> >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 25480c8..4e56a5d 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt >+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt >@@ -1,6 +1,11 @@ > [% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha Online[% END %] Catalog › Details for: [% title |html %][% FOREACH subtitl IN subtitle %], [% subtitl.subfield |html %][% END %] > [% INCLUDE 'doc-head-close.inc' %] > <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script> >+ >+<script type="text/javascript" src="https://apis.google.com/js/plusone.js"> >+ {lang: '[% lang %]'} >+</script> >+ > <script type="text/JavaScript" language="JavaScript"> > //<![CDATA[ > [% IF ( busc ) %] >@@ -486,6 +491,15 @@ YAHOO.util.Event.onContentReady("furtherm", function () { > [% END %] > [% END %] > >+ [% IF ( Babeltheque ) %] >+ <input type="hidden" name="BW_id_isbn" id="BW_id_isbn" value="[% normalized_isbn %]"/> >+ >+ <div id="BW_notes"></div> >+ <div id="BW_critiques"></div> >+ <div id="BW_critiques_pro"></div> >+ <div id="BW_citations"></div> >+ [% END %] >+ > </div> > > <div id="bibliodescriptions" class="toptabs"> >@@ -540,7 +554,6 @@ YAHOO.util.Event.onContentReady("furtherm", function () { > [% IF ( OPACFRBRizeEditions ) %][% IF ( XISBNS ) %]<li><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]#editions">Editions</a></li>[% END %][% END %] > > [% IF ( OPACAmazonEnabled ) %][% IF ( OPACAmazonReviews ) %]<li><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]#amazonreviews">Amazon Reviews</a></li>[% END %][% END %] >- [% IF ( Babeltheque ) %]<li><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]#babeltheque">Babelthèque</a></li>[% END %] > > [% IF ( serialcollection ) %] > [% IF ( defaulttab == 'serialcollection' ) %]<li class="ui-tabs-selected"> >@@ -907,15 +920,6 @@ YAHOO.util.Event.onContentReady("furtherm", function () { > </div> > [% END %] > >-[% IF ( Babeltheque ) %] >-<div id="babeltheque"> >- <div id="BW_notes"></div> >- <div id="BW_critiques"></div> >- <div id="BW_citations"></div> >- <div id="BW_etiquettes"></div> >-</div> >-[% END %] >- > [% IF ( OPACFRBRizeEditions ) %][% IF ( XISBNS ) %] > <div id="editions"> > >@@ -1009,6 +1013,16 @@ YAHOO.util.Event.onContentReady("furtherm", function () { > </div> > [% END %][% END %] > </div> >+ >+[% IF ( Babeltheque ) %] >+ <div> >+ <div id="BW_etiquettes"></div> >+ <div id="BW_suggestions"></div> >+ </div> >+ <div class="clearfix"></div> >+ <div id="BW_videos"></div> >+[% END %] >+ > </div> > > >@@ -1037,7 +1051,6 @@ YAHOO.util.Event.onContentReady("furtherm", function () { > [% END %] > > [% INCLUDE 'opac-detail-sidebar.inc' %] >- > [% IF ( NovelistSelectProfile ) %] [% IF ( NovelistSelectView == 'right') %] > <div id="NovelistSelect"> > <h4>Novelist Select</h4> >@@ -1045,6 +1058,25 @@ YAHOO.util.Event.onContentReady("furtherm", function () { > </div> > [% END %] [% END %] > >+[% IF ( Babeltheque ) %] >+ <div class="babeltheque_adds"> >+ <div id="BW_critiques_aj"></div> >+ <div id="BW_citations_aj"></div> >+ </div> >+[% END %] >+ >+[% IF ( SocialNetworks ) %] >+ <div class="social_networks"> >+ <span>Share</span> >+ <a href="http://www.facebook.com/sharer.php?u=[% current_url |url %]&t=[% title |url %]" title="Share on Facebook"><img alt="Share on Facebook" src="/opac-tmpl/prog/images/socnet/facebook16.png" /></a> >+ <a href="http://twitter.com/share" title="Share on Twitter"><img alt="Share on Twitter" src="/opac-tmpl/prog/images/socnet/twitter16.png" /></a> >+ <a href="http://www.linkedin.com/shareArticle?mini=true&url=[% current_url |url %]&title=[% title |url %]" title="Share on LinkedIn"><img alt="Share on LinkedIn" src="/opac-tmpl/prog/images/socnet/linkedin16.png" /></a> >+ <a href="http://www.delicious.com/save?url=[% current_url |url %]&title=[% title |url %]" title="Share on Delicious"><img alt="Share on Delicious" src="/opac-tmpl/prog/images/socnet/delicious16.gif" /></a> >+ <g:plusone size="small"></g:plusone> >+ <a href="mailto:ADRESSE?subject=TO READ : [% title %]>&body=[% title %]> [% current_url |url %]" title="Share by email"><img alt="Share by email" src="/opac-tmpl/prog/images/socnet/mailto16.png" /></a> >+ </div> >+[% END %] >+ > </div> > </div> > </div> >@@ -1068,4 +1100,9 @@ YAHOO.util.Event.onContentReady("furtherm", function () { > [% IF ( NovelistSelectProfile ) %] > <script type="text/javascript" src="http://imageserver.ebscohost.com/novelistselect/ns2init.js"></script> > [% END %] >+ >+[% IF ( Babeltheque ) %] >+ <script type="text/javascript" src="[% Babeltheque_url_js %]"></script> >+[% END %] >+ > [% INCLUDE 'opac-bottom.inc' %] >diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt >index 22c9272..a541d95 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt >+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt >@@ -389,6 +389,9 @@ $(document).ready(function(){ > [% IF ( SEARCH_RESULT.imageurl ) %] > <img src="[% SEARCH_RESULT.imageurl %]" title="[% SEARCH_RESULT.description %]" alt="[% SEARCH_RESULT.description %]" /> > [% END %] >+ [% IF ( SEARCH_RESULT.score_avg ) %] >+ <img src="[% themelang %]/../images/bonus.png" title="bonus" style="max-height: 35px;"/> >+ [% END %] > </td> > [% END %] > [% END %] >@@ -477,6 +480,23 @@ $(document).ready(function(){ > </span> > > [% END %] >+ [% IF ( SEARCH_RESULT.score_avg ) %] >+ <span class="result_summary"> >+ <img src="[% themelang %]/../images/Star[% SEARCH_RESULT.score_int %].gif" title="" style="max-height: 15px;"/> <span style="font-size: 85%;">[% SEARCH_RESULT.score_avg %] / 5 (on [% SEARCH_RESULT.num_scores %] rates)</span> >+ [% IF ( SEARCH_RESULT.num_critics ) %] >+ <span class="social_data">[% SEARCH_RESULT.num_critics %] Internet user critics</span> >+ [% END %] >+ [% IF ( SEARCH_RESULT.num_critics_pro ) %] >+ <span class="social_data">[% SEARCH_RESULT.num_critics_pro %] Professional critics</span> >+ [% END %] >+ [% IF ( SEARCH_RESULT.num_videos ) %] >+ <span class="social_data">[% SEARCH_RESULT.num_videos %] Video extracts</span> >+ [% END %] >+ [% IF ( SEARCH_RESULT.num_quotations ) %] >+ <span class="social_data">[% SEARCH_RESULT.num_quotations %] Quotations</span> >+ [% END %] >+ </span> >+ [% END %] > [% IF ( LibraryThingForLibrariesID ) %]<div class="ltfl_reviews"></div>[% END %] > [% IF ( opacuserlogin ) %][% IF ( TagsEnabled ) %] > [% IF ( TagsShowOnList ) %] >diff --git a/koha-tmpl/opac-tmpl/prog/images/Star0.gif b/koha-tmpl/opac-tmpl/prog/images/Star0.gif >new file mode 100644 >index 0000000000000000000000000000000000000000..44ffdf488560eebbf1f8a5db485fabe581db9625 >GIT binary patch >literal 1360 >zcmW+#dr*{B6u&wqk14g)nX*VzN^ONQZ;1<v3Wdm&qN$aMgR)!!6D$>5lbw+Tc?E;3 >zLD#52O_$V^9*)WkqwO@QbD?!KQy%MEWCe@R)@7yB@9zEY%sJ=xI^Q>UUcz+KN;4b9 >zyo`~4ibxU(B2L6~r4%ViN|55Dm~Ki%Qj!!TI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V6DEvEKM >zt6SbmeavLuel4uNa!H&a^96fw$DX}A-(F;?{CwfmF7x8MM|L!uI@Z}*s+Sd-gj}7K >zSvfPyo;hJx(5aX9)vPs|J9n)=@xE)u<qdtqV*8JU&yTVihB#^qo+)+2l{M{IP**e| >zI(cvT($LIW+oJxAxW6Aya>e@IGbTHX_AJk=y4Fb}W_@dnEburQ@{OL^-x+Ua%^A2; >lntV8<$5uJ3Y0Qv_xJJW<h&R==yWKy!5+)ytA2f)?{0}p#!-fC= > >literal 0 >HcmV?d00001 > >diff --git a/koha-tmpl/opac-tmpl/prog/images/Star1.gif b/koha-tmpl/opac-tmpl/prog/images/Star1.gif >new file mode 100644 >index 0000000000000000000000000000000000000000..203863874dcba824ea7b948e0ef00c750cefce19 >GIT binary patch >literal 1395 >zcmW+#dr*{B6u*citjX$%PLY!4Bo5PL<1G|vVb<}1Ha;3lY6caOxr&(OqfB<N;icjx >zuIQMz40I_(WsO8p2{Q-NY_6*bga)Xv$ZHLTz(HK`^t*fiJ9EzYz0UW|n?H9(WMUEv >zX8nwjeu_vE2_jC!bfpw2NlK97q?m3>MN*O!Bsoc@XN4jmNeB|01k<Zr5tqaTaZa28 >ziI^fLi3wty7z$tm8dzAyG}Ao#Nu`8RTq&k$QAw$!P?9Ujv<ftZR6;1hm0(&FX1P>c >zD9#mU(1=yVq+&ubt{7OM8ek9&m5_xVh=C1gU}2eQL%PNjQgSJo_6J&2LP)`-VA?KJ >zpvi^gTyh5Y5QSOEgk)SY*h3zWiEYFI{}2I(Pz^AMhDwY=2Z(_UXkam&oNlAW<3cbU >zB>aIE73YF8<O;h`fu>+wFyx4&5dd^y96`e^qC_5$iEYFIO)w0HPz^AM#wKJz2Z(_U >zXr@o3r_n}@$8a$O34fqP#hLy%bgsU8>!$C7I%eNh^sFyvow_eOz3PiYAHnBPBl$$@ >zoA`8SU>`I-2V4o^!IO{bB+&_?bfRpcT|~J=c|->WpW>4FM1@4fL{6epL}!R9iK?Cs >zY<oJ8G3ebs_#|i0o9pf0`=mG9`zZHu*S7x7)IN90K--4iyB~Y5zTNFw&{G}fIsdBX >z;+%$~VJ)X4>JEk8*f|QH{=|WyelW^jhX$tq2^Ij;f#YIJ4`0d*7#$w}N9mEO9U~_# >zI260rQJK>_dBy&7qa0?dsWE+c<TOWYo~gUhe_%;y<i_zYyR7q#j&~16th|!6#`sF~ >zfuKv@N5xHRzv&o}ZOSeV?wDom?`*2RdL!|jb?vU*_0k@?%o#sw#r2BX&bm{Em|4G{ >z-54IT%^UQmHO!P!{#o1QGuE)Ft1PKK_tVR4aotg=k6&;(ZC&f{UPv2LJ-*@Gn@Jb_ >z>;A5<{LgJpd%wxFIj(D5MRiN%=c5x&#z$-zQnUMww2<YUwa%5pW2e`@wYIiodDQ{4 >z{q(2xzil#34LGx6wROPJRv2=2LI-pIdaSkFX)V9~{7<Xt-rcnNEzM;=r*vOwjQY~^ >zpl08eJ^2Z}du|=IMYji?_+ouSa^}Jrk9M~fOlRvSO-K)Tw8Qn4U(kmM8-`6jcR$O& >zr)uoxTOCW6XSO9(<!7`y3++)8bBh<|gcZFw!4`OAO0(_G!D4&#<CgwqF^0dmD{`!1 >zWRMtky?2$psixY!*UvEj2TSyjJ1urYPhp<<@SLm0J%QIUM?~EFdf$kQ=9-$?ZxVB_ >zEtH0>fkg+CzRj_Jmwe@;2j+F}Jr@%5Y)bIr<kp>|7e%;B<;{Y&p)=PU*%+Et?8piU >zAA2}s?mxvAZ-akb^k83^vA}R))uI_5wRG{!#;i@r7DryiOUI9IUovy;v7<#5;TGpD >zgU9LruRF!^tWS=N`q7kSG*=pCm*n|(WR}djY}&f+6wOX~ST<(j<r2%2Df@3*K6vf) >aCzi%twk7B96rJd*cv$W^`HP<)i~1ik=F+49 > >literal 0 >HcmV?d00001 > >diff --git a/koha-tmpl/opac-tmpl/prog/images/Star2.gif b/koha-tmpl/opac-tmpl/prog/images/Star2.gif >new file mode 100644 >index 0000000000000000000000000000000000000000..2b60940ffc660d254c308ebf1df7e94c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9B >zZdOBU<-X97p`PE&H%oVYcP**s*Q~AkJBRqTjF;EW<QEtIoZ5cx*)9q(g*Mo`9{f}` >zHLyNm)Y0`<)$ZWEMd@y~J3BX5g*ocdI&%VjzjC@6Hl~f6nUcT0JEb~0<6eRz`s<<h >zY}2#f{&Y@Jj`t3q-fZKuaYs{opGTfuI`hP(?t?=~zTfBF&%SUZqQAzFc$m+Q*=!0H >z=DvuL+vd;GUJrJ7AB)J1eRSMd;p4UFT@la_a%@IZYr!WU$30#e8(}<m+VgR8Ti9?{ >z@|yS+xr>C{YAp~EaftyRntDx!{8&TQtia+lOZu^r<h!-EiW4pCyu&X(Ust#!$G^~a >z-m@(7f$8Di$iQ>PRja)&o*uLICl;*Fc=ChCV{=>hn5|>YlCi<YZ4ssCH(d@YuMEm= >zHT|=#IzQC9$1$<Yy}R(~;-|x7<rOsp8-A>6@H#ng&{=n=z1m}W`Pz)!i7DQpw>(ew >uoPM<@v!c>H=Rw7CpF8IE7~^&Gq$QrUnUm^lcX!(BUs=nmmb<yJ(EkB}4Az1G > >literal 0 >HcmV?d00001 > >diff --git a/koha-tmpl/opac-tmpl/prog/images/Star3.gif b/koha-tmpl/opac-tmpl/prog/images/Star3.gif >new file mode 100644 >index 0000000000000000000000000000000000000000..3ff6739cd12809662b6a09abdd29d70b839197d8 >GIT binary patch >literal 1391 >zcmW+#ZBUg(6kY=nEF32cK|n?2V=(!%2`F4ZP=O}I8Fk2sB0v@ikWxs+A_p8&Qogcu >z^MaBJgh4Q3e5ehEnlXC;gGp|R4%|R7#0wWfFx{TL`|r#-=lMGC8y2zAZ%y0|vVcqx >zBGnU8aw(aVR7#>MA*A3^Fe#`ML^ZjPoJ-Cmr;-yj%Y<ZHGA0?7jHp#AB;}GaNvWg+ >zNRkLixFk#xDhUc;0~%OZ#xzkp>Tw~M5L5`FXi;%4I1`)-PLv8X85fKRMg=2E6lN(G >zlnF`&CD4dfLAW4H5Gn{*p&DQi4V93E9*BVrXkcNPC_}2oW1LgYi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_=h=IH?eCqNtq<)CoX%*E3Y=M*UsR#Znp<5pr}(erz|(ovMSc&0-|_44 >z>)m<Lw!-q7*UFlo2i6v8O6_|JgXYe<+h2FX%71gvEqBXUt?{VgLU8Bn3!XICM`nB< >feBFKPypU&}6HnIlvy{>1M->-FTkL0B694}JB*n>K > >literal 0 >HcmV?d00001 > >diff --git a/koha-tmpl/opac-tmpl/prog/images/Star4.gif b/koha-tmpl/opac-tmpl/prog/images/Star4.gif >new file mode 100644 >index 0000000000000000000000000000000000000000..473cb32087da78d40ebd8968a542b0bc50b76c55 >GIT binary patch >literal 1380 >zcmW+#dr*{B6u;;yU^Oz@IOQ-9g-8-ibsKQoz!7PYkjJPLBacyos}4kg;ZpWcUW$!^ >zNyH@u9Yeqwlu|-eQrbYl%fnD?f<%Eua9bX+kdbox-M#;vIp_Rd=lg;~^eeSn63DaU >zA3~&hLP{<rlafkFR3(HITnZ)ym4c`y7m{<yndDS*qGp+pj7!EOqmmJ|N`<6cQYI;t >zlmJN*Aqkg+NkSz-0c=163(J@$ibp*z1QUV^K@=@2&IM<JQ^AQ+fhOaEF~O){M2W&I >z<$^Lnsh|WJu__1`gb6|g0V`Ak45FbDvd{xDumKG$EE8o&)p(3^$~jT~K#Pho&M0R@ >z*@X%;DdUuKO5h%%Fv|(!gmMCV$OAI5jX2;RBH$3J0S3`fiBaePF|Yv*ETWQAZPa*_ >zF`|NmKhUD0lu?3QVHYaUWP~z;9Fa5vfG&(9Xt+g`$OAI5jX0nQhT#yZ0S3|7ge>R) >zF|Ywm)QQwI+NkjeE`}iC545N#Q6GoO)pl>yw4G4JY`cn@wFRwGw`HeRZE>h0*c>V( >zn`m_tn+^qRgU088D<M31vQbq_d1dx-&g|oYM<eM|cejjotsC!tck=g5V=X=tZN4Kd >z{*zsLOIygO(Q~9pJ0U_QI-<;%mJMEhW8k9B+!Qo)b<J37#7M1c-x;rgbM#@o?{LE^ >z%P*llr#yygb>;?r-|5#)XSBoT0`44j?fh!7*z*)VeYbx#b}&j_fd-=f3E}|Lj?Qaq >zjyGmGEM5_Nz2<~*pVLe499{cE|F5Zw8^Z=YQk|RkyXd~ij!qdgelW+q$jji<-&(Zr >zT0^!&ipg((Z_Sp0N8`PIADLg6(X6m;>nzs0Ex2CfU2fcIy1F;XQ0TU?YGaxH*rxRR >zb=8(ut!Vl9L16xSEqS5A5%HHZ9B%5PZghLcX1QD|kL#JX#AV+5xm6Qf=dCkXo=)q^ >zT@>S+96B$#tGPO+G4<}%^qzG-N9%WvJ-mNud56ntQKH>F-@D}e$lgjngZZ)6I{cfa >zA+adzyD7^R`IDB-WW>CGY>sBTS4MkJa%yQ?RhIoi*Oa05+xoKjCvP?mb<}N;b+aX# >z>;LL(3vnImK0Zzg4n}mJdgkx6tjJ3_lcJ&2Fk~9O=9)hHjs5XG=Ee=1W9>%2y_ae4 >zc&9Mcdb=Vv(Cl=|#qj94?UA{I$tz3u&D-m_HQjwtP=2oCuF6i|rl{z?&mC)zglA6n >z8ao1g`zucdnyuI44(U9shYD_)Jo5t++A6}*-g0w~&<<yJh3mSW6n7Rz#q-3&>(}pC >zRy4jnFETpr>rWyM%r$9vc(bFEY4ybABkekCZ`Q(q|Ewn?j~RyQx0QYQM_xtgXEWT% >zKX*av@?!hLInHT2mu`GeGCgk0_n+}R&{;m6aB)XP&eqc}SCqQAcj%ISG`3e(EnS`9 >zmiXtZ9uLY+EV-4x>cXcNlFn+TCX)g`tX~ruV0<yCEOBnRF|2&a+c!MUIzGSK>HGPw >WB{>D$+-0`Z-OKe#Id5l2bpHd;>%uJn > >literal 0 >HcmV?d00001 > >diff --git a/koha-tmpl/opac-tmpl/prog/images/Star5.gif b/koha-tmpl/opac-tmpl/prog/images/Star5.gif >new file mode 100644 >index 0000000000000000000000000000000000000000..0a61173924a33b422e21e9d649b9f50b36321465 >GIT binary patch >literal 1284 >zcmW+#eN2^A7(XnUkaYoX)3$;I<h^-iOgZw^MG$CL(TO!nC2*w3`6B}=`H0dsG(l!v >zFe^Bb2t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lIi+QP0sgDYrcZPPB|MK6Vg2!tYPH%7=bMB71KhyYH >z!4kudRRwncb5(IqTeKICdT%yX$IX0tz#8c|pH^aC5zseM<Zs<|H`aLg<$z-SH(K>^ >z)0OVKpRMZb_BU(wfnL#zqm3mo=K1?+rSZ${fu(WFxOY@kaB=NPgC&38$*0<Fy6Cw- >z;=N)XYw=^TZ+&22S-zLGrkAA_MxKpLzgRq8@nl#2*@~pxq|%t|W%sO=?z7yOci3>x >dSba#BtyLDYQLU!bVzSqMx#OMhH@LYG^Z&S!h!y|< > >literal 0 >HcmV?d00001 > >diff --git a/koha-tmpl/opac-tmpl/prog/images/bonus.png b/koha-tmpl/opac-tmpl/prog/images/bonus.png >new file mode 100644 >index 0000000000000000000000000000000000000000..663a31d6601ceadf7565160923eaa6690de8ed42 >GIT binary patch >literal 1768 >zcmeAS@N?(olHy`uVBq!ia0vp^N+8U^1|+TAxeoy;$r9IylHmNblJdl&R0hYC{G?O` >z&)mfH)S%SFl*+=BsWuD@%xRe+5hW46K32*3xq68pHF_1f1wh>l3^w)^1&PVosU-?Y >zsp*+{wo31J?^jaDOtDo8H}y5}EpSfF$n>ZxN)4{^3rViZPPR-@vbR&PsjvbXkegbP >zs8ErclUHn2VXFi-*9yo63F|8<fR&VF+bTgE72zA8;GAESs$i;Tpqp%9W~g9hqGxDg >zU}<8hqhMrUXrOOsq;FuZYiM9)YHnp<r~m~@K--E^(yW49+@N*=dA3R!B_#z``ugSN >z<$C4Ddih1^`i7R4mih)p`bI{&Koz>hm3bwJ6}oxF$}kgLQj3#|G7CyF^YauyCMG83 >zmzLNn0bL65LT-VtFWlg~VrW1CgG|37u|VHY&p<yn7vwLn>f(~1RD?6IsxA(xEJ)Q4 >zN-fSWElLK)N18HBGcfG%TLe-Fbd8mNQ6?}_5_4SglS^|`^GZBjY?XjAdMTMHR)&U7 >zF2;@)&L)N~My>{ih8C_a#+F9ru11c=ZU&|<#xOIm>2<U)u`n}nbapW^F*G!EHE?t@ >zG`BFb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JS*@XfV*05nQuFN317hS+|_m$32w~8kVg*#daWP&fL8{W^QWQ >zF~&P;rl+?>m@RU+AT#r?*7Ubpzr##kZM4<SShcPBx<WyLw~b%O&D};Ei^F~G5>{R_ >z{1dM*sejJ$<?FrkRvebRy_4^u#p+dcsyZwT7Y)l7oT`&P;MZe+noVQQSE~fG*1oAe >z;-)p8mtXIl6?=)LQS|4XO-zw8?OQf~_BA_MH|_K+dnO)+mL*HJ->seV6IAzjy85}S >Ib4q9e0NACF1poj5 > >literal 0 >HcmV?d00001 > >diff --git a/koha-tmpl/opac-tmpl/prog/images/socnet/delicious16.gif b/koha-tmpl/opac-tmpl/prog/images/socnet/delicious16.gif >new file mode 100644 >index 0000000000000000000000000000000000000000..11682e826fc90c534475d4259d6c2ad1e3fb7794 >GIT binary patch >literal 89 >zcmZ?wbhEHb6krfwn8*ME|NsBLd-pDoR{Y5V7SI8aAbAERt)BeFt2@rzY4ldJ$~kbe >j=x?Qj!?Yz0%T{Er(u&@tS#yes_lEh}$F}*}3=Gx)?P(tN > >literal 0 >HcmV?d00001 > >diff --git a/koha-tmpl/opac-tmpl/prog/images/socnet/facebook16.png b/koha-tmpl/opac-tmpl/prog/images/socnet/facebook16.png >new file mode 100644 >index 0000000000000000000000000000000000000000..1176590b3ee947b67fa2f7c6d7fc7b9754a69972 >GIT binary patch >literal 727 >zcmV;|0x127P)<h;3K|Lk000e1NJLTq000mG000mO1^@s6AM^iV0000WV@Og>003>6 >z003>600000003>600000003>600000003>6NBc_+0007VNkl<ZIE{Ui$!k<W5Qo2h >z%e+Y@j+&TpMclWDpeQIP2rfhfJqTX(=FOXU@umm$PY^t);7t)h5zi_jxS<C@5scBO >zBnFe2<jvc=%0rTI8L^-*UH$v2>sQ?dpl|oN1>3jxT?+!gU##VSVH_7R@_uM|{Mh}= >zCti4PAn5Pke0}B8#ru*ZLiM-9e~D*OL8-K6es|a1(Sv7pdK<PaSye8Vc77kNW5u?q >z44?{mA?P&S^BgK&m4!WXtNXk{o0Y~yX3D-IDs5L*z;g_n`xddNR>fd=^6C>m>Jf1| >zQS}OAbux^wK?nK|Kvq}|?OD&^y?w2{*Kfb^VW>eonc_iC7^W1~Z3n1gMOe4I2EfzT >zpLy_XfWa?ynsGrU1zsM(*hIoCarwhR6pSJ8-IgzJ-jDF;`5-0VB}tXEDL6h5MFsUn >zOc<p^aYhtpgv|_9IDcwCE0*>EaP;6Nu3S9A+-e8)MuGrdK3y-jLS87wfH4LU#rIrP >z6*E0RgCR)^e$-=drgTngz6vTJ7HpxYz(h0U<k>sC8yE%P`t6q-KYf$Yu_lgjegRCY >z#-AYqVU%I*R5nhFsn%rXg@6Y>g#{x5e_<3rwB@ZTSWyZqI4FXHx41UjS-r02*qna? >zRFxp`0GQWZVeP6KCEumo(a9J8lj9}hAIG+??`?E;b@xVb+}4H_VNSIZfMrX1*s*09 >z9pw^%2lob|ukP^hK%-QuxIOcFH=>2HS&~WqYZZBtWm%MsjErZ4LnB!jhPl`zdj9m` >zts7S_T$=eh6=2t_ISUqoZSylq1ZyqjvWxHgCJMtzn}v^o;h+1ROLuju17`pL002ov >JPDHLkV1hJ+L6-mk > >literal 0 >HcmV?d00001 > >diff --git a/koha-tmpl/opac-tmpl/prog/images/socnet/linkedin16.png b/koha-tmpl/opac-tmpl/prog/images/socnet/linkedin16.png >new file mode 100644 >index 0000000000000000000000000000000000000000..2a195c2b7682bf66b118b08bc019bbb297c550ac >GIT binary patch >literal 751 >zcmV<L0ucR)P)<h;3K|Lk000e1NJLTq000mG000mO1^@s6AM^iV0000WV@Og>003>6 >z003>600000003>600000003>600000003>6NBc_+0007tNkl<ZIE{Ui&1;-h7{!0j >zeeYzxVq@B9O<Ed)QlT{}q6;Al3x-<3zrcmtB8a=L{Rdo&i{i?a2tsvJ5TR%VE8;>+ >zn_!`i`LJ|m^1d_ke&6SDF_Tusdf>q2;oP(O9RcXR`N31CUtRyC<^3C`fqzQ?JA6Aw >zZEWq|-G96H@x>nnE;Khkym;lz>dI!w(g(r+lb@U8_k(2b`qghX{QS9-&vaXUV{m^+ >zP$j5Q1!c}VoXCGSSW2hcS)PBqyXiwd=_aF8bgoGql;aB>US2!F_uD%RCpnMmAQ<&H >zKH{a$Z8S~^O(QQ$F1)bHyRWaaGl<#V?bGlPBA{wGC&;YPikc!T@BpJEr*1>gz?B<Y >z{Bb|#yW2ZN4m1RUD$9%W^!f=^tvC_PMHFR?hl+zZrdFjaE6zW^%6sQu;_kfz-g#}E >zwI>!RYUS+7C9d7-@&4tjBzZ|0pw2QJK$Ydh@rZOZq1A{uar7}TWue{V>EnxB{`x1r >zxN)0vXHN0#$|A`irWj8^by|QLR+VU$QB_k8vb>-UfnGo1)31Ku^XtC?5Q$+$foVXs >z!jl3TFcnZkW+YTqg_>e!AOSbKn<}OXGvFLB4QZI#bVi>|2{e1~X`0iAIaQ={_N`Z1 >zr(e8=&_V-8mlinn<RV+Wdn_M2LKHc+?(ET-Z?m>?j61u1vQdgOn&i8;E_rL0B7#_` >zL16Ibkp5mDi5$NT6ATdVNaHcT3=$-AAOhlW&Wp>oZ}!b}D9!eCGLayS2%LbA5FbtF >z<PPtE_aIOY_InXUlF*2p?=C%uL||HAl>f9nG*X$`r0CuJEdBY*j}A%i0vj~C%YR$$ >hqa;-M7{a%}{$IHtX7n4~n=$|Z002ovPDHLkV1g_(Te<)M > >literal 0 >HcmV?d00001 > >diff --git a/koha-tmpl/opac-tmpl/prog/images/socnet/mailto16.png b/koha-tmpl/opac-tmpl/prog/images/socnet/mailto16.png >new file mode 100644 >index 0000000000000000000000000000000000000000..d8e4a5ad20489ece6a0d152dadb117c7b013bbcd >GIT binary patch >literal 792 >zcmV+z1LypSP)<h;3K|Lk000e1NJLTq000&M000mO1^@s6677#B00001b5ch_0Itp) >z=>Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2ipt{ >z4jVOgtWhHX00NjvL_t(I%dM2VN^5NphM!ppIU|B3xD@OxG$|C3fK5b1LA(GPEyTi0 >z@E)wR6YR9HH%%mvU}qXpgxDykXw-;Cv$77jGP~IPvh%yy=Yg-B=X>X!myyTE$A_Mt >zo}{YsFG@ssetv!o77B%AI-S;`p&@Cv+kXW$41@FYb3HjZNy^jHlkV*7FflPfCX>N+ >zT}0%!fT~I;6rx(KQZAQST3SLZ%TmX2SYKZ!m&-9WHpcHNHw=U0<6{bi0&8n)M59rp >z(P*gax~M9<ySt=PDW<2VaUAET%2ky}Bto%Rq*kl3xVVUj5DtftdcCgyK|Ign;NXC( >zt1DJlS9yJX{UNxktBb9zE&BWWnVp>_6bgNOCbe2kTdh{dR?Fowr>CbZEG*#r{&%5) >zK!ClyJ<{nklarHto2pnWhFn}+Xsgxg7~3!mip3%i4-e#WIe-t}4Z}c0D3wa2QYogU >zraGXi`W1Y3cBai{^OK(<!qL$Yg+hUqm6Z?WhGDS1z0J(b4B2d!|L0#-NhA^&j^p5Y >z-lu2VHod*QY;0^$tyU2cM1*R!%I4-KrfFi^_IG<7$3YGc57n})4jXLSCJ+da%jJm2 >z<J{fdvA@3$!2J9?rfJe@wJ4QJ_`Xjh66sJLkH?XGKCiZIe<-Tg>-6>Yk<Dg_#bUJE >zZA66k_jdq-!62%Nh+x|`l}d%{>uZw9B&v$45{*U)Hk(a6&qG9LG#U&H3@|!6itqbB >zjhl!tGBSdya(Q`4cXv0citqab-`?JET^Gx;Fin$8Cd0SZ{7MZE5A*W!!p+SMi9~{M >zI85;N_7=;s7#|;JaBz_O`};pSK<RXva5zk*Qu*rf^769I&CPvUz@MH>&-2LV^Lzo0 >WgKAw8mt9H#0000<MNUMnLSTZyO>f@- > >literal 0 >HcmV?d00001 > >diff --git a/koha-tmpl/opac-tmpl/prog/images/socnet/twitter16.png b/koha-tmpl/opac-tmpl/prog/images/socnet/twitter16.png >new file mode 100644 >index 0000000000000000000000000000000000000000..ccb1b618963c52a441bd2b059fae90346ffd97ab >GIT binary patch >literal 780 >zcmV+n1M~ceP)<h;3K|Lk000e1NJLTq000mG000mO1^@s6AM^iV0000WV@Og>003>6 >z003>600000003>600000003>600000003>6NBc_+0007~Nkl<ZIE{6aPitId7{!0@ >zz3-hrnK3i5(l)U*wbd3w6hA-~E?UsfAPC~R-@#QE1zot%g{ah}x)PTzL^Rb{L7{>K >zv}00jLXys8a_`K%|DMOiO@&ZA@GPGnhr>Ar;O550*(>KSd{Pv}t1%@W$#7B%<arJv >zn>$CN*WbEy>5hHv`t|0@(z#EU`U}@4RRy_4RBM1Sk3j$$?e^uS%9n3{_4S%P_w=*R >z<!aU*j>jZPD6r5dXk;1t&XZIhgH*vY*KRN7uDoVPM+coM%uF*g#FSX>cDUG`XDWuJ >z){NVG504>+%+#&`#5oQ}!+D!h(sJgB<RnQvGxsE)-G{ql<;H4@m0pLjkIa&=T}{wq >zm{-L)j}0ME&OFg%hzO#}j)z?b>j%o|R*$TJ=jUOeG2;7wb}`0~t5C&&4H1TulCDuy >z6%`>090ho169gp*ywHOiD_tc0%_Js>0be_aOr0Z<k)b3JrU{(D)icnw5CmT8!Du>V >zzpRKNU@ajAEPxLYVTPz6qByCa-dr}EX&y%}f%oogGO8-_EF%{o#z+<eIPdX3Fr7I{ >zH{(JF$^bVvm0MfNM}H|BhXt=JpC`qL_a5&(AqW-%(FXv0jI0l~dE@2N{4!L&-Gy&< >zsWVtm-hZ)A0hHcT03w170a6SIb%^VOEuNZd^X}?p{+L;!f~d0CGW@x}$FQm}fH4^& >z0jna$WX6P0yHHiW`1LM747OPA_v-QhKl{M%dk2IVF+g54P&LNh|Lv!PD_7TsjVF3% >z-E{ij2DV3s42Gi<6}DMccfeXS2KEN`w)63W2V>K0W&Km9R#g-Y&S~(T7`#dG#Ays( >zybt1hb??X9pRa%X;Rla)(gD_ret$8q_w>I?IVMadCEkAr?EDKQX`=G4-NZKl0000< >KMNUMnLSTZKHeIX$ > >literal 0 >HcmV?d00001 > >diff --git a/misc/cronjobs/social_data/get_report_social_data.pl b/misc/cronjobs/social_data/get_report_social_data.pl >new file mode 100644 >index 0000000..7069e24 >--- /dev/null >+++ b/misc/cronjobs/social_data/get_report_social_data.pl >@@ -0,0 +1,16 @@ >+#!/bin/perl >+ >+use Modern::Perl; >+use C4::SocialData; >+ >+my $results = C4::SocialData::get_report; >+ >+say "==== Social Data report ===="; >+say "Matched : (" . scalar( @{ $results->{with} } ) . ")"; >+say "biblionumber = $_->{biblionumber},\toriginal = $_->{original},\tisbn = $_->{isbn}" for @{ $results->{with} }; >+ >+say "No Match : (" . scalar( @{ $results->{without} } ) . ")"; >+say "biblionumber = $_->{biblionumber},\toriginal = $_->{original},\tisbn = $_->{isbn}" for @{ $results->{without} }; >+ >+say "Without ISBN : (" . scalar( @{ $results->{no_isbn} } ) . ")"; >+say "biblionumber = $_->{biblionumber}" for @{ $results->{no_isbn} }; >diff --git a/misc/cronjobs/social_data/update_social_data.pl b/misc/cronjobs/social_data/update_social_data.pl >new file mode 100644 >index 0000000..53058a7 >--- /dev/null >+++ b/misc/cronjobs/social_data/update_social_data.pl >@@ -0,0 +1,16 @@ >+#!/usr/bin/perl >+ >+use Modern::Perl; >+use C4::Context; >+use C4::SocialData; >+ >+my $url = C4::Context->preference( "Babeltheque_url_update" ); >+my $output_dir = qq{/tmp}; >+my $output_filepath = qq{$output_dir/social_data.csv}; >+system( qq{/bin/rm -f $output_filepath} ); >+system( qq{/bin/rm -f $output_dir/social_data.csv.bz2} ); >+system( qq{/usr/bin/wget $url -O $output_dir/social_data.csv.bz2 } ) == 0 or die "Can't get bz2 file from url $url ($?)"; >+system( qq{/bin/bunzip2 $output_dir/social_data.csv.bz2 } ) == 0 or die "Can't extract bz2 file ($?)"; >+ >+ >+C4::SocialData::update_data $output_filepath; >diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl >index 27684d4..096c6f0 100755 >--- a/opac/opac-detail.pl >+++ b/opac/opac-detail.pl >@@ -836,9 +836,16 @@ $template->param(NovelistSelectView => C4::Context->preference('NovelistSelectVi > if ( C4::Context->preference("Babeltheque") ) { > $template->param( > Babeltheque => 1, >+ Babeltheque_url_js => C4::Context->preference("Babeltheque_url_js"), > ); > } > >+# Social Networks >+if ( C4::Context->preference( "SocialNetworks" ) ) { >+ $template->param( current_url => C4::Context->preference('OPACBaseURL') . "/cgi-bin/koha/opac-detail.pl?biblionumber=$biblionumber" ); >+ $template->param( SocialNetworks => 1 ); >+} >+ > # Shelf Browser Stuff > if (C4::Context->preference("OPACShelfBrowser")) { > # pick the first itemnumber unless one was selected by the user >diff --git a/opac/opac-search.pl b/opac/opac-search.pl >index 3e3995d..163f17b 100755 >--- a/opac/opac-search.pl >+++ b/opac/opac-search.pl >@@ -36,10 +36,11 @@ use C4::Biblio; # GetBiblioData > use C4::Koha; > use C4::Tags qw(get_tags); > use C4::Branch; # GetBranches >+use C4::SocialData; > use POSIX qw(ceil floor strftime); > use URI::Escape; > use Storable qw(thaw freeze); >- >+use Business::ISBN; > > my $DisplayMultiPlaceHold = C4::Context->preference("DisplayMultiPlaceHold"); > # create a new CGI object >@@ -525,9 +526,23 @@ for (my $i=0;$i<@servers;$i++) { > foreach (@newresults) { > my $record = GetMarcBiblio($_->{'biblionumber'}); > $_->{coins} = GetCOinSBiblio($record); >+ if ( C4::Context->preference( "Babeltheque" ) and $_->{normalized_isbn} ) { >+ my $isbn = Business::ISBN->new( $_->{normalized_isbn} ); >+ next if not $isbn; >+ $isbn = $isbn->as_isbn13->as_string; >+ $isbn =~ s/-//g; >+ my $social_datas = C4::SocialData::get_data( $isbn ); >+ next if not $social_datas; >+ for my $key ( keys %$social_datas ) { >+ $_->{$key} = $$social_datas{$key}; >+ if ( $key eq 'score_avg' ){ >+ $_->{score_int} = sprintf("%.0f", $$social_datas{score_avg} ); >+ } >+ } >+ } > } > } >- >+ > if ($results_hashref->{$server}->{"hits"}){ > $total = $total + $results_hashref->{$server}->{"hits"}; > } >-- >1.7.7.3 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 7470
:
7984
|
7985
|
7986
|
8257
|
8336
|
8476
|
8630
|
8707
|
8716
|
8955
|
9271
|
9643
|
9674
|
10904