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

(-)a/C4/Auth.pm (-2 / +2 lines)
Lines 344-350 sub get_template_and_user { Link Here
344
            AmazonCoverImages           => C4::Context->preference("AmazonCoverImages"),
344
            AmazonCoverImages           => C4::Context->preference("AmazonCoverImages"),
345
            AutoLocation                => C4::Context->preference("AutoLocation"),
345
            AutoLocation                => C4::Context->preference("AutoLocation"),
346
            "BiblioDefaultView".C4::Context->preference("IntranetBiblioDefaultView") => 1,
346
            "BiblioDefaultView".C4::Context->preference("IntranetBiblioDefaultView") => 1,
347
            CalendarFirstDayOfWeek      => (C4::Context->preference("CalendarFirstDayOfWeek") eq "Sunday")?0:1,
347
            CalendarFirstDayOfWeek      => C4::Context->preference("CalendarFirstDayOfWeek"),
348
            CircAutocompl               => C4::Context->preference("CircAutocompl"),
348
            CircAutocompl               => C4::Context->preference("CircAutocompl"),
349
            FRBRizeEditions             => C4::Context->preference("FRBRizeEditions"),
349
            FRBRizeEditions             => C4::Context->preference("FRBRizeEditions"),
350
            IndependentBranches         => C4::Context->preference("IndependentBranches"),
350
            IndependentBranches         => C4::Context->preference("IndependentBranches"),
Lines 410-416 sub get_template_and_user { Link Here
410
            AuthorisedValueImages     => C4::Context->preference("AuthorisedValueImages"),
410
            AuthorisedValueImages     => C4::Context->preference("AuthorisedValueImages"),
411
            BranchesLoop              => GetBranchesLoop($opac_name),
411
            BranchesLoop              => GetBranchesLoop($opac_name),
412
            BranchCategoriesLoop      => GetBranchCategories( 'searchdomain', 1, $opac_name ),
412
            BranchCategoriesLoop      => GetBranchCategories( 'searchdomain', 1, $opac_name ),
413
            CalendarFirstDayOfWeek    => (C4::Context->preference("CalendarFirstDayOfWeek") eq "Sunday")?0:1,
413
            CalendarFirstDayOfWeek    => C4::Context->preference("CalendarFirstDayOfWeek"),
414
            LibraryName               => "" . C4::Context->preference("LibraryName"),
414
            LibraryName               => "" . C4::Context->preference("LibraryName"),
415
            LibraryNameTitle          => "" . $LibraryNameTitle,
415
            LibraryNameTitle          => "" . $LibraryNameTitle,
416
            LoginBranchname           => C4::Context->userenv?C4::Context->userenv->{"branchname"}:"",
416
            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">RoutlingListNote</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">RoutlingListNote</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 74-80 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
74
('BorrowerUnwantedField','',NULL,'Name the fields you don\'t need to store for a patron\'s account','free'),
74
('BorrowerUnwantedField','',NULL,'Name the fields you don\'t need to store for a patron\'s account','free'),
75
('BranchTransferLimitsType','ccode','itemtype|ccode','When using branch transfer limits, choose whether to limit by itemtype or collection code.','Choice'),
75
('BranchTransferLimitsType','ccode','itemtype|ccode','When using branch transfer limits, choose whether to limit by itemtype or collection code.','Choice'),
76
('CalculateFinesOnReturn','1','','Switch to control if overdue fines are calculated on return or not','YesNo'),
76
('CalculateFinesOnReturn','1','','Switch to control if overdue fines are calculated on return or not','YesNo'),
77
('CalendarFirstDayOfWeek','Sunday','Sunday|Monday','Select the first day of week to use in the calendar.','Choice'),
77
('CalendarFirstDayOfWeek','0','0|1|2|3|4|5|6','Select the first day of week to use in the calendar.','Choice'),
78
('canreservefromotherbranches','1','','With Independent branches on, can a user from one library place a hold on an item from another library','YesNo'),
78
('canreservefromotherbranches','1','','With Independent branches on, can a user from one library place a hold on an item from another library','YesNo'),
79
('casAuthentication','0','','Enable or disable CAS authentication','YesNo'),
79
('casAuthentication','0','','Enable or disable CAS authentication','YesNo'),
80
('casLogout','0','','Does a logout from Koha should also log the user out of CAS?','YesNo'),
80
('casLogout','0','','Does a logout from Koha should also log the user out of CAS?','YesNo'),
(-)a/installer/data/mysql/updatedatabase.pl (+16 lines)
Lines 8551-8556 if (CheckVersion($DBversion)) { Link Here
8551
    SetVersion($DBversion);
8551
    SetVersion($DBversion);
8552
}
8552
}
8553
8553
8554
$DBversion = "3.17.00.XXX";
8555
if ( CheckVersion($DBversion) ) {
8556
    $dbh->do(q{
8557
        UPDATE systempreferences SET value='0' WHERE variable='CalendarFirstDayOfWeek' AND value='Sunday';
8558
    });
8559
    $dbh->do(q{
8560
        UPDATE systempreferences SET value='1' WHERE variable='CalendarFirstDayOfWeek' AND value='Monday';
8561
    });
8562
    $dbh->do(q{
8563
        UPDATE systempreferences SET options='0|1|2|3|4|5|6' WHERE variable='CalendarFirstDayOfWeek';
8564
    });
8565
8566
    print "Upgrade to $DBversion done (Bug 10859 - Extend functionality of CalendarFirstDayOfWeek to be any day)\n";
8567
    SetVersion($DBversion);
8568
}
8569
8554
=head1 FUNCTIONS
8570
=head1 FUNCTIONS
8555
8571
8556
=head2 TableExists($table)
8572
=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