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

(-)a/installer/data/mysql/nb-NO/1-Obligatorisk/system_preferences.sql (+1 lines)
Lines 25-29 UPDATE systempreferences SET value = 'nb-NO' WHERE variable = 'language'; Link Here
25
UPDATE systempreferences SET value = 'nb-NO' WHERE variable = 'opaclanguages';
25
UPDATE systempreferences SET value = 'nb-NO' WHERE variable = 'opaclanguages';
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 = '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';
28
29
29
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';
30
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';
(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 386-388 INSERT INTO systempreferences (variable,value,explanation,type) VALUES('OPACdidy Link Here
386
INSERT INTO systempreferences (variable,value,explanation,type) VALUES('INTRAdidyoumean',NULL,'Did you mean? configuration for the Intranet. Do not change, as this is controlled by /cgi-bin/koha/admin/didyoumean.pl.','Free');
386
INSERT INTO systempreferences (variable,value,explanation,type) VALUES('INTRAdidyoumean',NULL,'Did you mean? configuration for the Intranet. Do not change, as this is controlled by /cgi-bin/koha/admin/didyoumean.pl.','Free');
387
INSERT INTO systempreferences (variable, value, options, explanation, type) VALUES ('BlockReturnOfWithdrawnItems', '1', '0', 'If enabled, items that are marked as withdrawn cannot be returned.', 'YesNo');
387
INSERT INTO systempreferences (variable, value, options, explanation, type) VALUES ('BlockReturnOfWithdrawnItems', '1', '0', 'If enabled, items that are marked as withdrawn cannot be returned.', 'YesNo');
388
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('HoldsToPullStartDate','2','Set the default start date for the Holds to pull list to this many days ago',NULL,'Integer');
388
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('HoldsToPullStartDate','2','Set the default start date for the Holds to pull list to this many days ago',NULL,'Integer');
389
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('alphabet','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','Alphabet than can be expanded into browse links, e.g. on Home > Patrons',NULL,'free');
(-)a/installer/data/mysql/updatedatabase.pl (+7 lines)
Lines 6011-6016 if (C4::Context->preference("Version") < TransformToNum($DBversion)) { Link Here
6011
    SetVersion ($DBversion);
6011
    SetVersion ($DBversion);
6012
}
6012
}
6013
6013
6014
$DBversion = "3.09.00.XXX";
6015
if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
6016
    $dbh->do("INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('alphabet','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','Alphabet that can be expanded into browse links, e.g. on Home > Patrons',NULL,'free')");
6017
    print "Upgrade to $DBversion done (Bug 2832 - Add alphabet syspref)\n";
6018
    SetVersion($DBversion);
6019
}
6020
6014
=head1 FUNCTIONS
6021
=head1 FUNCTIONS
6015
6022
6016
=head2 TableExists($table)
6023
=head2 TableExists($table)
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/i18n_l10n.pref (+5 lines)
Lines 31-33 I18N/L10N: Link Here
31
        - "Enable the following languages on the OPAC:"
31
        - "Enable the following languages on the OPAC:"
32
        - pref: opaclanguages
32
        - pref: opaclanguages
33
          type: opac-languages
33
          type: opac-languages
34
    -
35
        - "Use the alphabet"
36
        - pref: alphabet
37
          class: long
38
        - for lists of browsable letters. This should be a space separated list of uppercase letters.
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt (-2 / +2 lines)
Lines 24-31 Link Here
24
24
25
						<div class="browse">
25
						<div class="browse">
26
							Browse by last name:
26
							Browse by last name:
27
							[% FOREACH letter IN letters %]
27
							[% FOREACH letter IN alphabet.split(' ') %]
28
								<a href="/cgi-bin/koha/members/member.pl?quicksearch=1&amp;surname=[% letter.letter %]">[% letter.letter %]</a>
28
								<a href="/cgi-bin/koha/members/member.pl?quicksearch=1&amp;surname=[% letter %]">[% letter %]</a>
29
							[% END %]
29
							[% END %]
30
						</div>
30
						</div>
31
31
(-)a/members/members-home.pl (-3 / +1 lines)
Lines 80-86 $template->param( Link Here
80
        "AddPatronLists_".C4::Context->preference("AddPatronLists")=> "1",
80
        "AddPatronLists_".C4::Context->preference("AddPatronLists")=> "1",
81
        no_add => $no_add,
81
        no_add => $no_add,
82
            );
82
            );
83
my @letters = map { {letter => $_} } ( 'A' .. 'Z');
83
$template->param( 'alphabet' => C4::Context->preference('alphabet') );
84
$template->param( letters => \@letters );
85
84
86
output_html_with_http_headers $query, $cookie, $template->output;
85
output_html_with_http_headers $query, $cookie, $template->output;
87
- 

Return to bug 2832