View | Details | Raw Unified | Return to bug 12137
Collapse All | Expand All

(-)a/C4/Auth.pm (-2 / +2 lines)
Lines 376-382 sub get_template_and_user { Link Here
376
            AmazonCoverImages           => C4::Context->preference("AmazonCoverImages"),
376
            AmazonCoverImages           => C4::Context->preference("AmazonCoverImages"),
377
            AutoLocation                => C4::Context->preference("AutoLocation"),
377
            AutoLocation                => C4::Context->preference("AutoLocation"),
378
            "BiblioDefaultView".C4::Context->preference("IntranetBiblioDefaultView") => 1,
378
            "BiblioDefaultView".C4::Context->preference("IntranetBiblioDefaultView") => 1,
379
            CalendarFirstDayOfWeek      => (C4::Context->preference("CalendarFirstDayOfWeek") eq "Sunday")?0:1,
379
            CalendarFirstDayOfWeek      => C4::Context->preference("CalendarFirstDayOfWeek"),
380
            CircAutocompl               => C4::Context->preference("CircAutocompl"),
380
            CircAutocompl               => C4::Context->preference("CircAutocompl"),
381
            FRBRizeEditions             => C4::Context->preference("FRBRizeEditions"),
381
            FRBRizeEditions             => C4::Context->preference("FRBRizeEditions"),
382
            IndependentBranches         => C4::Context->preference("IndependentBranches"),
382
            IndependentBranches         => C4::Context->preference("IndependentBranches"),
Lines 447-453 sub get_template_and_user { Link Here
447
            AuthorisedValueImages     => C4::Context->preference("AuthorisedValueImages"),
447
            AuthorisedValueImages     => C4::Context->preference("AuthorisedValueImages"),
448
            BranchesLoop              => GetBranchesLoop($opac_name),
448
            BranchesLoop              => GetBranchesLoop($opac_name),
449
            BranchCategoriesLoop      => GetBranchCategories( 'searchdomain', 1, $opac_name ),
449
            BranchCategoriesLoop      => GetBranchCategories( 'searchdomain', 1, $opac_name ),
450
            CalendarFirstDayOfWeek    => (C4::Context->preference("CalendarFirstDayOfWeek") eq "Sunday")?0:1,
450
            CalendarFirstDayOfWeek    => C4::Context->preference("CalendarFirstDayOfWeek"),
451
            LibraryName               => "" . C4::Context->preference("LibraryName"),
451
            LibraryName               => "" . C4::Context->preference("LibraryName"),
452
            LibraryNameTitle          => "" . $LibraryNameTitle,
452
            LibraryNameTitle          => "" . $LibraryNameTitle,
453
            LoginBranchname           => C4::Context->userenv?C4::Context->userenv->{"branchname"}:"",
453
            LoginBranchname           => C4::Context->userenv?C4::Context->userenv->{"branchname"}:"",
(-)a/installer/data/mysql/de-DE/mandatory/system_preferences.sql (-1 / +2 lines)
Lines 30-36 UPDATE systempreferences SET value = Link Here
30
    <li><a href="http://www.scholar.google.com/scholar?q={TITLE}" target="_blank">Google Scholar</a></li>
30
    <li><a href="http://www.scholar.google.com/scholar?q={TITLE}" target="_blank">Google Scholar</a></li>
31
    <li><a href="http://www.bookfinder.com/search/?author={AUTHOR}&amp;title={TITLE}&amp;st=xl&amp;ac=qr" target="_blank">Online-Buchhandel (Bookfinder.com)</a></li>' 
31
    <li><a href="http://www.bookfinder.com/search/?author={AUTHOR}&amp;title={TITLE}&amp;st=xl&amp;ac=qr" target="_blank">Online-Buchhandel (Bookfinder.com)</a></li>' 
32
    WHERE variable = 'OPACSearchForTitleIn';
32
    WHERE variable = 'OPACSearchForTitleIn';
33
UPDATE systempreferences SET value = 'Monday' WHERE variable = 'CalendarFirstDayOfWeek';
33
-- Sunday = 0, Monday = 1, etc.
34
UPDATE systempreferences SET value = '1' WHERE variable = 'CalendarFirstDayOfWeek';
34
UPDATE systempreferences SET value = '0.07|0.19|0.00' WHERE variable = 'gist';
35
UPDATE systempreferences SET value = '0.07|0.19|0.00' WHERE variable = 'gist';
35
UPDATE systempreferences SET value = 'Dieser Text wird über den Systemparameter <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=RoutingListNote#jumped">RoutingListNote</a> konfiguriert.' where variable = 'RoutingListNote';
36
UPDATE systempreferences SET value = 'Dieser Text wird über den Systemparameter <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=RoutingListNote#jumped">RoutingListNote</a> konfiguriert.' where variable = 'RoutingListNote';
36
UPDATE systempreferences SET value = 'barcode stocknumber' WHERE variable = 'uniqueitemfields';
37
UPDATE systempreferences SET value = 'barcode stocknumber' WHERE variable = 'uniqueitemfields';
(-)a/installer/data/mysql/nb-NO/1-Obligatorisk/system_preferences.sql (-1 / +2 lines)
Lines 26-31 UPDATE systempreferences SET value = 'nb-NO' WHERE variable = 'opaclanguages'; Link Here
26
UPDATE systempreferences SET value = '<p>Velkommen til Koha...</p><hr />' WHERE variable = 'OpacMainUserBlock';
26
UPDATE systempreferences SET value = '<p>Velkommen til Koha...</p><hr />' WHERE variable = 'OpacMainUserBlock';
27
UPDATE systempreferences SET value = '<p>Viktige lenker kan plasseres her</p>' WHERE variable = 'OpacNav';
27
UPDATE systempreferences SET value = '<p>Viktige lenker kan plasseres her</p>' WHERE variable = 'OpacNav';
28
UPDATE systempreferences SET value = '<li><a href="http://worldcat.org/search?q={TITLE}" target="_blank">Andre bibliotek (WorldCat)</a></li><li><a href="http://www.scholar.google.com/scholar?q={TITLE}" target="_blank">Andre databaser (Google Scholar)</a></li><li><a href="http://www.bookfinder.com/search/?author={AUTHOR}&amp;title={TITLE}&amp;st=xl&amp;ac=qr" target="_blank">Nettbutikker (Bookfinder.com)</a></li>' WHERE variable = 'OPACSearchForTitleIn';
28
UPDATE systempreferences SET value = '<li><a href="http://worldcat.org/search?q={TITLE}" target="_blank">Andre bibliotek (WorldCat)</a></li><li><a href="http://www.scholar.google.com/scholar?q={TITLE}" target="_blank">Andre databaser (Google Scholar)</a></li><li><a href="http://www.bookfinder.com/search/?author={AUTHOR}&amp;title={TITLE}&amp;st=xl&amp;ac=qr" target="_blank">Nettbutikker (Bookfinder.com)</a></li>' WHERE variable = 'OPACSearchForTitleIn';
29
UPDATE systempreferences SET value = 'Monday' WHERE variable = 'CalendarFirstDayOfWeek';
29
-- Sunday = 0, Monday = 1, etc.
30
UPDATE systempreferences SET value = '1' WHERE variable = 'CalendarFirstDayOfWeek';
30
UPDATE systempreferences SET value = 'A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Æ Ø Å' WHERE variable = 'alphabet';
31
UPDATE systempreferences SET value = 'A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Æ Ø Å' WHERE variable = 'alphabet';
31
UPDATE systempreferences SET value = 'nor' WHERE variable = 'DefaultLanguageField008';
32
UPDATE systempreferences SET value = 'nor' WHERE variable = 'DefaultLanguageField008';
(-)a/installer/data/mysql/sysprefs.sql (-1 / +1 lines)
Lines 76-82 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
76
('BorrowerUnwantedField','',NULL,'Name the fields you don\'t need to store for a patron\'s account','free'),
76
('BorrowerUnwantedField','',NULL,'Name the fields you don\'t need to store for a patron\'s account','free'),
77
('BranchTransferLimitsType','ccode','itemtype|ccode','When using branch transfer limits, choose whether to limit by itemtype or collection code.','Choice'),
77
('BranchTransferLimitsType','ccode','itemtype|ccode','When using branch transfer limits, choose whether to limit by itemtype or collection code.','Choice'),
78
('CalculateFinesOnReturn','1','','Switch to control if overdue fines are calculated on return or not','YesNo'),
78
('CalculateFinesOnReturn','1','','Switch to control if overdue fines are calculated on return or not','YesNo'),
79
('CalendarFirstDayOfWeek','Sunday','Sunday|Monday','Select the first day of week to use in the calendar.','Choice'),
79
('CalendarFirstDayOfWeek','0','0|1|2|3|4|5|6','Select the first day of week to use in the calendar.','Choice'),
80
('canreservefromotherbranches','1','','With Independent branches on, can a user from one library place a hold on an item from another library','YesNo'),
80
('canreservefromotherbranches','1','','With Independent branches on, can a user from one library place a hold on an item from another library','YesNo'),
81
('casAuthentication','0','','Enable or disable CAS authentication','YesNo'),
81
('casAuthentication','0','','Enable or disable CAS authentication','YesNo'),
82
('casLogout','0','','Does a logout from Koha should also log the user out of CAS?','YesNo'),
82
('casLogout','0','','Does a logout from Koha should also log the user out of CAS?','YesNo'),
(-)a/installer/data/mysql/updatedatabase.pl (+17 lines)
Lines 9525-9530 if ( CheckVersion($DBversion) ) { Link Here
9525
    SetVersion($DBversion);
9525
    SetVersion($DBversion);
9526
}
9526
}
9527
9527
9528
$DBversion = "3.17.00.XXX";
9529
if ( CheckVersion($DBversion) ) {
9530
    $dbh->do(q{
9531
        UPDATE systempreferences SET value='0' WHERE variable='CalendarFirstDayOfWeek' AND value='Sunday';
9532
    });
9533
    $dbh->do(q{
9534
        UPDATE systempreferences SET value='1' WHERE variable='CalendarFirstDayOfWeek' AND value='Monday';
9535
    });
9536
    $dbh->do(q{
9537
        UPDATE systempreferences SET options='0|1|2|3|4|5|6' WHERE variable='CalendarFirstDayOfWeek';
9538
    });
9539
9540
    print "Upgrade to $DBversion done (Bug 10859 - Extend functionality of CalendarFirstDayOfWeek to be any day)\n";
9541
    SetVersion($DBversion);
9542
}
9543
9544
9528
=head1 FUNCTIONS
9545
=head1 FUNCTIONS
9529
9546
9530
=head2 TableExists($table)
9547
=head2 TableExists($table)
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/i18n_l10n.pref (-4 / +8 lines)
Lines 19-28 I18N/L10N: Link Here
19
    -
19
    -
20
        - Use
20
        - Use
21
        - pref: CalendarFirstDayOfWeek
21
        - pref: CalendarFirstDayOfWeek
22
          default: Sunday
22
          default: 0
23
          choices:
23
          choices:
24
              Sunday: Sunday
24
              0: Sunday
25
              Monday: Monday
25
              1: Monday
26
              2: Tuesday
27
              3: Wednesday
28
              4: Thursday
29
              5: Friday
30
              6: Saturday
26
        - as the first day of week in the calendar.
31
        - as the first day of week in the calendar.
27
    -
32
    -
28
        - "Enable the following languages on the staff interface:"
33
        - "Enable the following languages on the staff interface:"
29
- 

Return to bug 12137