* Added missed SpineLabelAutoPrint to updatedatabase;
  this preference controls whether labels generated
  by the new quick spine label tool are printed automatically
* put SpineLabelAutoPrint and SpineLabelFormat in the
  Cataloging section of the syspref editor
* set height and width for the SpineLabelFormat textarea
  in the syspref editor
---
 admin/systempreferences.pl                         |    2 ++
 installer/data/mysql/en/mandatory/sysprefs.sql     |    2 +-
 .../1-Obligatoire/unimarc_standard_systemprefs.sql |    2 +-
 installer/data/mysql/updatedatabase.pl             |    5 +++--
 4 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/admin/systempreferences.pl b/admin/systempreferences.pl
index 4a84b13..15bf608 100755
--- a/admin/systempreferences.pl
+++ b/admin/systempreferences.pl
@@ -121,6 +121,8 @@ $tabsysprefs{DefaultClassificationSource} = "Cataloging";
 $tabsysprefs{RoutingSerials}              = "Cataloging";
 $tabsysprefs{'item-level_itypes'}         = "Cataloging";
 $tabsysprefs{OpacSuppression}             = "Cataloging";
+$tabsysprefs{SpineLabelFormat}            = "Cataloging";
+$tabsysprefs{SpineLabelAutoPrint}         = "Cataloging";
 
 # Circulation
 $tabsysprefs{maxoutstanding}                 = "Circulation";
diff --git a/installer/data/mysql/en/mandatory/sysprefs.sql 
b/installer/data/mysql/en/mandatory/sysprefs.sql
index 3b78ae9..e10058f 100644
--- a/installer/data/mysql/en/mandatory/sysprefs.sql
+++ b/installer/data/mysql/en/mandatory/sysprefs.sql
@@ -245,5 +245,5 @@ INSERT INTO systempreferences 
(variable,value,explanation,options,type)VALUES('v
 INSERT INTO systempreferences 
(variable,value,explanation,options,type)VALUES('viewLabeledMARC','0','Allow 
display of labeled MARC view of bibiographic records','','YesNo');
 INSERT INTO systempreferences 
(variable,value,explanation,options,type)VALUES('viewMARC','1','Allow display 
of MARC view of bibiographic records','','YesNo');
 INSERT INTO systempreferences 
(variable,value,explanation,options,type)VALUES('FilterBeforeOverdueReport','0','Do
 not run overdue report until filter selected','','YesNo');
-INSERT INTO systempreferences 
(variable,value,options,explanation,type)VALUES('SpineLabelFormat', 
'<itemcallnumber><copynumber>', '', 'This preference defines the format for the 
quick spine label printer. Just list the fields you would like to see in the 
order you would like to see them, surrounded by <>, for example 
<itemcallnumber>.', 'Textarea');
+INSERT INTO systempreferences 
(variable,value,options,explanation,type)VALUES('SpineLabelFormat', 
'<itemcallnumber><copynumber>', '30|10', 'This preference defines the format 
for the quick spine label printer. Just list the fields you would like to see 
in the order you would like to see them, surrounded by <>, for example 
<itemcallnumber>.', 'Textarea');
 INSERT INTO systempreferences 
(variable,value,options,explanation,type)VALUES('SpineLabelAutoPrint', '0', '', 
'If this setting is turned on, a print dialog will automatically pop up for the 
quick spine label printer.', 'YesNo');
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 0f2cb57..5fa55c0 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
@@ -247,5 +247,5 @@ INSERT INTO systempreferences 
(variable,value,explanation,options,type)VALUES('v
 INSERT INTO systempreferences 
(variable,value,explanation,options,type)VALUES('viewLabeledMARC','0','Autoriser
 l''affichage MARC labellis des notices bibliographiques','','YesNo');
 INSERT INTO systempreferences 
(variable,value,explanation,options,type)VALUES('viewMARC','1','Autoriser 
l''affichage de la vue MARC des notices bibliographiques','','YesNo');
 INSERT INTO systempreferences 
(variable,value,explanation,options,type)VALUES('FilterBeforeOverdueReport','0','Ne
 pas lancer le rapport sur les retards tant qu''il n''y a pas de 
filtre','','YesNo');
-INSERT INTO systempreferences 
(variable,value,options,explanation,type)VALUES('SpineLabelFormat', 
'<itemcallnumber><copynumber>', '', 'This preference defines the format for the 
quick spine label printer. Just list the fields you would like to see in the 
order you would like to see them, surrounded by <>, for example 
<itemcallnumber>.', 'Textarea');
+INSERT INTO systempreferences 
(variable,value,options,explanation,type)VALUES('SpineLabelFormat', 
'<itemcallnumber><copynumber>', '30|10', 'This preference defines the format 
for the quick spine label printer. Just list the fields you would like to see 
in the order you would like to see them, surrounded by <>, for example 
<itemcallnumber>.', 'Textarea');
 INSERT INTO systempreferences 
(variable,value,options,explanation,type)VALUES('SpineLabelAutoPrint', '0', '', 
'If this setting is turned on, a print dialog will automatically pop up for the 
quick spine label printer.', 'YesNo');
diff --git a/installer/data/mysql/updatedatabase.pl 
b/installer/data/mysql/updatedatabase.pl
index 3d253ce..4954962 100755
--- a/installer/data/mysql/updatedatabase.pl
+++ b/installer/data/mysql/updatedatabase.pl
@@ -2482,9 +2482,10 @@ if (C4::Context->preference("Version") < 
TransformToNum($DBversion)) {
 
 $DBversion = '3.01.00.039';
 if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
-    $dbh->do("INSERT INTO systempreferences 
(variable,value,options,explanation,type)VALUES('SpineLabelFormat', 
'<itemcallnumber><copynumber>', '', 'This preference defines the format for the 
quick spine label printer. Just list the fields you would like to see in the 
order you would like to see them, surrounded by <>, for example 
<itemcallnumber>.', 'Textarea')");
+    $dbh->do("INSERT INTO systempreferences 
(variable,value,options,explanation,type)VALUES('SpineLabelFormat', 
'<itemcallnumber><copynumber>', '30|10', 'This preference defines the format 
for the quick spine label printer. Just list the fields you would like to see 
in the order you would like to see them, surrounded by <>, for example 
<itemcallnumber>.', 'Textarea')");
+    $dbh->do("INSERT INTO systempreferences 
(variable,value,options,explanation,type)VALUES('SpineLabelAutoPrint', '0', '', 
'If this setting is turned on, a print dialog will automatically pop up for the 
quick spine label printer.', 'YesNo')");
     SetVersion ($DBversion);
-    print "Upgrade to $DBversion done (added SpineLabelFormat syspref)\n";
+    print "Upgrade to $DBversion done (added SpineLabelFormat and 
SpineLabelAutoPrint sysprefs)\n";
 }
 
 =item DropAllForeignKeys($table)
-- 
1.5.6.5

_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches

Reply via email to