From 20649b7dc07719124e7dee4f75d148af20ee92a2 Mon Sep 17 00:00:00 2001 From: Paul POULAIN Date: Wed, 26 Dec 2007 12:55:34 -0600 Subject: [PATCH] Adding OPACItemsResultsDisplay syspref & bumping to version 036 Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- C4/Context.pm | 2 +- installer/data/mysql/en/mandatory/sysprefs.sql | 1 + .../fr/1-Obligatoire/unimarc_standard_systemprefs.sql | 3 ++- installer/data/mysql/updatedatabase.pl | 7 +++++++ koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl | 4 ++++ kohaversion.pl | 2 +- 6 files changed, 16 insertions(+), 3 deletions(-) diff --git a/C4/Context.pm b/C4/Context.pm index 6591e6246b..49b7435faf 100644 --- a/C4/Context.pm +++ b/C4/Context.pm @@ -61,7 +61,7 @@ use C4::Boolean; use vars qw($VERSION $AUTOLOAD $context @context_stack); -$VERSION = '3.00.00.035'; +$VERSION = '3.00.00.036'; =head1 NAME diff --git a/installer/data/mysql/en/mandatory/sysprefs.sql b/installer/data/mysql/en/mandatory/sysprefs.sql index 38b9ff991b..e39507fe39 100644 --- a/installer/data/mysql/en/mandatory/sysprefs.sql +++ b/installer/data/mysql/en/mandatory/sysprefs.sql @@ -161,3 +161,4 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('hideBiblioNumber',0,'If ON, hides the biblionumber in the detail page on the OPAC',NULL,'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OPACUserCSS',0,'Add CSS to be included in the OPAC',NULL,'free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('emailPurchaseSuggestions',0,'If ON, patron suggestions are emailed rather than managed in Acquisitions',NULL,'YesNo'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OPACItemsResultsDisplay',"statuses",'statuses : show only the status of items in result list. itemdisplay : show full location of items (branch+location+callnumber) as in staff interface',"statuses|itemdetails",'Choice'); diff --git a/installer/data/mysql/fr/1-Obligatoire/unimarc_standard_systemprefs.sql b/installer/data/mysql/fr/1-Obligatoire/unimarc_standard_systemprefs.sql index d1b9499876..12a60f9805 100644 --- a/installer/data/mysql/fr/1-Obligatoire/unimarc_standard_systemprefs.sql +++ b/installer/data/mysql/fr/1-Obligatoire/unimarc_standard_systemprefs.sql @@ -163,4 +163,5 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OPACURLOpenInNewWindow',0,'If ON, URLs in the OPAC open in a new window',NULL,'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('hideBiblioNumber',0,'If ON, hides the biblionumber in the detail page on the OPAC',NULL,'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OPACUserCSS',0,'Add CSS to be included in the OPAC',NULL,'free'); -INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('emailPurchaseSuggestions',0,'If ON, patron suggestions are emailed rather than managed in Acquisitions',NULL,'YesNo'); \ No newline at end of file +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('emailPurchaseSuggestions',0,'If ON, patron suggestions are emailed rather than managed in Acquisitions',NULL,'YesNo'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OPACItemsResultsDisplay',"statuses",'statuses : N''affiche que le statut des exemplaires dans la liste de résultat. . itemdetails : affiche la localisation complète des exemplaires (site+localisation+cote) comme dans l''interface professionnelle ',"statuses|itemdetails",'Choice'); diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 477ce4d0bc..361bac2c2c 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -775,6 +775,13 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { SetVersion ($DBversion); } +$DBversion = "3.00.00.036"; +if (C4::Context->preference("Version") < TransformToNum($DBversion)) { + $dbh->do("INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OPACItemsResultsDisplay',"statuses",'statuses : show only the status of items in result list. itemdisplay : show full location of items (branch+location+callnumber) as in staff interface','statuses|itemdetails','Choice');"); + print "Upgrade to $DBversion done (OPACItemsResultsDisplay systempreference added)\n"; + SetVersion ($DBversion); +} + =item DropAllForeignKeys($table) Drop all foreign keys of the table $table diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl index e050edda81..5fbd8b4b50 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl @@ -147,6 +147,10 @@ href="/cgi-bin/koha/opac-rss.pl?q= + + + [">] + (), diff --git a/kohaversion.pl b/kohaversion.pl index 3a74cd6a70..ff947061ce 100644 --- a/kohaversion.pl +++ b/kohaversion.pl @@ -10,7 +10,7 @@ use strict; sub kohaversion { - our $VERSION = "3.00.00.035"; + our $VERSION = "3.00.00.036"; # version needs to be set this way # so that it can be picked up by Makefile.PL # during install -- 2.39.2