From 6542fc4216c6379d81645da418a457f8f7922120 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Demians?= Date: Sat, 28 Mar 2009 08:23:42 +0100 Subject: [PATCH] Add Babeltheque OPAC enhanced content www.babeltheque.com is a LibraryThings for Libraries equivalent. This patch enables this service on OPAC. * Replace previous patch in order to apply onto last master HEAD and solve conflicts induced by last pushed pateches: 1bb9f76e66fd962930007964a2f918665dc3a956 * Modify kohaversion.pl * It uses v3.01.00.016 slot. Signed-off-by: Galen Charlton --- admin/systempreferences.pl | 3 +++ installer/data/mysql/en/mandatory/sysprefs.sql | 1 + .../1-Obligatoire/unimarc_standard_systemprefs.sql | 1 + installer/data/mysql/updatedatabase.pl | 8 ++++++++ koha-tmpl/opac-tmpl/prog/en/includes/opac-bottom.inc | 5 +++++ koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl | 11 +++++++++++ kohaversion.pl | 2 +- opac/opac-detail.pl | 6 ++++++ 8 files changed, 36 insertions(+), 1 deletion(-) diff --git a/admin/systempreferences.pl b/admin/systempreferences.pl index a33cc169ea..b8ce9f2f33 100755 --- a/admin/systempreferences.pl +++ b/admin/systempreferences.pl @@ -227,6 +227,9 @@ $tabsysprefs{AmazonAssocTag} = "EnhancedContent"; $tabsysprefs{AmazonSimilarItems} = "EnhancedContent"; $tabsysprefs{OPACAmazonSimilarItems} = "EnhancedContent"; +# Babelthèque +$tabsysprefs{Babeltheque} = "EnhancedContent"; + # Baker & Taylor $tabsysprefs{BakerTaylorBookstoreURL} = 'EnhancedContent'; $tabsysprefs{BakerTaylorEnabled} = 'EnhancedContent'; diff --git a/installer/data/mysql/en/mandatory/sysprefs.sql b/installer/data/mysql/en/mandatory/sysprefs.sql index ef70ba651e..715c07ed8c 100644 --- a/installer/data/mysql/en/mandatory/sysprefs.sql +++ b/installer/data/mysql/en/mandatory/sysprefs.sql @@ -8,6 +8,7 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AWSAccessKeyID','','See: http://aws.amazon.com','','free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AmazonAssocTag','','See: http://aws.amazon.com','','free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AnonSuggestions',0,'Set to anonymous borrowernumber to enable Anonymous suggestions',NULL,'free'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('Babeltheque',0,'Turn ON Babeltheque content - See babeltheque.com to subscribe to this service','','YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('authoritysep','--','Used to separate a list of authorities in a display. Usually --',10,'free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('autoBarcode','OFF','Used to autogenerate a barcode: incremental will be of the form 1, 2, 3; annual of the form 2007-0001, 2007-0002; hbyymmincr of the form HB08010001 where HB=Home Branch','incremental|annual|hbyymmincr|OFF','Choice'); diff --git a/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql b/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql index 877b493eee..17d5f5af41 100644 --- a/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql +++ b/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql @@ -9,6 +9,7 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AmazonDevKey', '', 'Voir : aws-portal.amazon.com/gp/aws/developer/registration/index.html', '', ''); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AmazonAssocTag', '', 'Voir : associates.amazon.com/gp/flex/associates/apply-login.html', '', ''); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AnonSuggestions', '0', 'Attribuée au n° de l''emprunteur anonyme pour activer les suggestions anonymes. 0, pas de suggestions anonymes.', '', 'free'); +VALUES('Babeltheque',0,'Active les contenus Babelthèque - Voir babeltheque.com pour s''abonner','','YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AuthDisplayHierarchy', '0', 'Affiche la hiérarchie des autorités. A activer uniquement si vous avez un thésaurus hiérarchique. Sera généralement à 0', '', ''); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('authoritysep', '--', 'Le séparateur utilisé dans les autorités. Habituellement --', '10', 'free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('autoBarcode', 'OFF', 'Utilisé pour générer automatiquement les codes barre: incremental sera de la forme 1, 2, 3; annual de la forme 2007-0001, 2007-0002, hbyymmincr de la forme HB09010001 où HB=la branche d'appartenance', 'incremental|annual|hbyymmincr|OFF', 'Choice'); diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 7e161b5cb1..13b469cfd5 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -2272,6 +2272,14 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { SetVersion ($DBversion); } +$DBversion = "3.01.00.016"; +if (C4::Context->preference("Version") < TransformToNum($DBversion)) { + $dbh->do("INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('Babeltheque',0,'Turn ON Babeltheque content - See babeltheque.com to subscribe to this service','','YesNo')"); + print "Upgrade to $DBversion done (Added Babeltheque syspref)\n"; + SetVersion ($DBversion); +} + + =item DropAllForeignKeys($table) Drop all foreign keys of the table $table 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 e4551c083c..c3a6380ebe 100644 --- a/koha-tmpl/opac-tmpl/prog/en/includes/opac-bottom.inc +++ b/koha-tmpl/opac-tmpl/prog/en/includes/opac-bottom.inc @@ -43,5 +43,10 @@ + + + + + diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl index 7ca4739266..14747e96ec 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl @@ -260,6 +260,8 @@
  • #amazonreviews">Amazon Reviews
  • +
  • #babeltheque">Babelthèque
  • +
    @@ -563,6 +565,15 @@
    + +
    +
    +
    +
    +
    +
    + +

    Other Editions of this Work

    diff --git a/kohaversion.pl b/kohaversion.pl index a0c64378ce..fc73c47b48 100644 --- a/kohaversion.pl +++ b/kohaversion.pl @@ -10,7 +10,7 @@ use strict; sub kohaversion { - our $VERSION = '3.01.00.015'; + our $VERSION = '3.01.00.016'; # version needs to be set this way # so that it can be picked up by Makefile.PL # during install diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index fba01d9d85..d72e2cd15e 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -343,6 +343,12 @@ if ( C4::Context->preference("SyndeticsEnabled") $template->param( SYNDETICS_ANOTES => $syndetics_anotes ); }; warn $@ if $@; + +# Babelthèque +if ( C4::Context->preference("Babeltheque") ) { + $template->param( + Babeltheque => 1, + ); } # Shelf Browser Stuff -- 2.39.5