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

(-)a/admin/preferences.pl (-1 / +1 lines)
Lines 106-112 sub _get_chunk { Link Here
106
            keys %{ $options{'choices'} }
106
            keys %{ $options{'choices'} }
107
        ];
107
        ];
108
    } elsif ( $options{'multiple'} ) {
108
    } elsif ( $options{'multiple'} ) {
109
        my @values = split /\|/, $value;
109
        my @values = split /,/, $value;
110
        $chunk->{type}    = 'multiple';
110
        $chunk->{type}    = 'multiple';
111
        $chunk->{CHOICES} = [
111
        $chunk->{CHOICES} = [
112
            sort { $a->{'text'} cmp $b->{'text'} }
112
            sort { $a->{'text'} cmp $b->{'text'} }
(-)a/installer/data/mysql/sysprefs.sql (-2 / +2 lines)
Lines 229-236 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
229
('OCLCAffiliateID','','','Use with FRBRizeEditions and XISBN. You can sign up for an AffiliateID here: http://www.worldcat.org/wcpa/do/AffiliateUserServices?method=initSelfRegister','free'),
229
('OCLCAffiliateID','','','Use with FRBRizeEditions and XISBN. You can sign up for an AffiliateID here: http://www.worldcat.org/wcpa/do/AffiliateUserServices?method=initSelfRegister','free'),
230
('OPACAcquisitionDetails','0','','Show the acquisition details at the OPAC','YesNo'),
230
('OPACAcquisitionDetails','0','','Show the acquisition details at the OPAC','YesNo'),
231
('OpacAddMastheadLibraryPulldown','0','','Adds a pulldown menu to select the library to search on the opac masthead.','YesNo'),
231
('OpacAddMastheadLibraryPulldown','0','','Adds a pulldown menu to select the library to search on the opac masthead.','YesNo'),
232
('OpacAdvSearchMoreOptions','pubdate|itemtype|language|subtype|sorting|location','Show search options for the expanded view (More options)','pubdate|itemtype|language|subtype|sorting|location','multiple'),
232
('OpacAdvSearchMoreOptions','pubdate,itemtype,language,subtype,sorting,location','Show search options for the expanded view (More options)','pubdate|itemtype|language|subtype|sorting|location','multiple'),
233
('OpacAdvSearchOptions','pubdate|itemtype|language|sorting|location','Show search options','pubdate|itemtype|language|subtype|sorting|location','multiple'),
233
('OpacAdvSearchOptions','pubdate,itemtype,language,sorting,location','Show search options','pubdate|itemtype|language|subtype|sorting|location','multiple'),
234
('OPACAllowHoldDateInFuture','0','','If set, along with the AllowHoldDateInFuture system preference, OPAC users can set the date of a hold to be in the future.','YesNo'),
234
('OPACAllowHoldDateInFuture','0','','If set, along with the AllowHoldDateInFuture system preference, OPAC users can set the date of a hold to be in the future.','YesNo'),
235
('OpacAllowPublicListCreation','1',NULL,'If set, allows opac users to create public lists','YesNo'),
235
('OpacAllowPublicListCreation','1',NULL,'If set, allows opac users to create public lists','YesNo'),
236
('OpacAllowSharingPrivateLists','0',NULL,'If set, allows opac users to share private lists with other patrons','YesNo'),
236
('OpacAllowSharingPrivateLists','0',NULL,'If set, allows opac users to share private lists with other patrons','YesNo'),
(-)a/installer/data/mysql/updatedatabase.pl (+14 lines)
Lines 9505-9510 CREATE TABLE borrower_sync ( Link Here
9505
    SetVersion($DBversion);
9505
    SetVersion($DBversion);
9506
}
9506
}
9507
9507
9508
$DBversion = "3.17.00.XXX";
9509
if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
9510
    $dbh->do(q{
9511
        UPDATE systempreferences SET value = 'pubdate,itemtype,language,sorting,location' WHERE variable='OpacAdvSearchOptions'
9512
    });
9513
9514
    $dbh->do(q{
9515
        UPDATE systempreferences SET value = 'pubdate,itemtype,language,subtype,sorting,location' WHERE variable='OpacAdvSearchMoreOptions'
9516
    });
9517
9518
    print "Upgrade to $DBversion done (Bug 9043 - Update the values for OpacAdvSearchOptions and OpacAdvSearchOptions)\n";
9519
    SetVersion($DBversion);
9520
}
9521
9508
=head1 FUNCTIONS
9522
=head1 FUNCTIONS
9509
9523
9510
=head2 TableExists($table)
9524
=head2 TableExists($table)
(-)a/opac/opac-search.pl (-2 / +2 lines)
Lines 307-314 if ( $template_type && $template_type eq 'advsearch' ) { Link Here
307
307
308
    }
308
    }
309
309
310
    my @advsearch_limits = split /\|/, C4::Context->preference('OpacAdvSearchOptions');
310
    my @advsearch_limits = split /,/, C4::Context->preference('OpacAdvSearchOptions');
311
    my @advsearch_more_limits = split /\|/,
311
    my @advsearch_more_limits = split /,/,
312
      C4::Context->preference('OpacAdvSearchMoreOptions');
312
      C4::Context->preference('OpacAdvSearchMoreOptions');
313
    $template->param(
313
    $template->param(
314
        uc( C4::Context->preference("marcflavour") ) => 1,    # we already did this for UNIMARC
314
        uc( C4::Context->preference("marcflavour") ) => 1,    # we already did this for UNIMARC
(-)a/svc/config/systempreferences (-2 / +1 lines)
Lines 95-101 sub set_preferences { Link Here
95
95
96
            next if ( !defined( $pref ) );
96
            next if ( !defined( $pref ) );
97
97
98
            my $value = join( '|', $query->param( $param ) );
98
            my $value = join( ',', $query->param( $param ) );
99
99
100
            C4::Context->set_preference( $pref, $value );
100
            C4::Context->set_preference( $pref, $value );
101
            logaction( 'SYSTEMPREFERENCE', 'MODIFY', undef, $pref . " | " . $value );
101
            logaction( 'SYSTEMPREFERENCE', 'MODIFY', undef, $pref . " | " . $value );
102
- 

Return to bug 9043