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

(-)a/catalogue/search.pl (-1 / +1 lines)
Lines 720-726 It also accounts for the "item-level_itypes" system preference. Link Here
720
sub prepare_adv_search_types {
720
sub prepare_adv_search_types {
721
    my ($types) = @_;
721
    my ($types) = @_;
722
722
723
    my @advanced_search_types = split( /\,/, $types );
723
    my @advanced_search_types = split( /,/, $types );
724
724
725
    # the index parameter is different for item-level itemtypes
725
    # the index parameter is different for item-level itemtypes
726
    my $itype_or_itemtype =
726
    my $itype_or_itemtype =
(-)a/installer/data/mysql/atomicupdate/bug-29878.pl (-2 / +3 lines)
Lines 8-15 return { Link Here
8
        my $dbh = $args->{dbh};
8
        my $dbh = $args->{dbh};
9
9
10
        $dbh->do(q{
10
        $dbh->do(q{
11
            UPDATE systempreferences SET value = REPLACE(value, '|', ',')
11
            UPDATE systempreferences
12
            SET value = REPLACE(value, '|', ','), options = 'itemtypes,ccode,loc', type = 'multiple'
12
            WHERE variable IN ('AdvancedSearchTypes')
13
            WHERE variable IN ('AdvancedSearchTypes')
13
        });
14
        });
14
    },
15
    },
15
}
16
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (-1 / +1 lines)
Lines 15-21 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
15
('AddressFormat','us','us|de|fr','Choose format to display postal addresses', 'Choice'),
15
('AddressFormat','us','us|de|fr','Choose format to display postal addresses', 'Choice'),
16
('advancedMARCeditor','0','','If ON, the MARC editor won\'t display field/subfield descriptions','YesNo'),
16
('advancedMARCeditor','0','','If ON, the MARC editor won\'t display field/subfield descriptions','YesNo'),
17
('AdvancedSearchLanguages','','','ISO 639-2 codes of languages you wish to see appear as an Advanced search option.  Example: eng|fre|ita','Textarea'),
17
('AdvancedSearchLanguages','','','ISO 639-2 codes of languages you wish to see appear as an Advanced search option.  Example: eng|fre|ita','Textarea'),
18
('AdvancedSearchTypes','itemtypes','itemtypes|ccode','Select which set of fields comprise the Type limit in the advanced search','Choice'),
18
('AdvancedSearchTypes','itemtypes','itemtypes,ccode,loc','Select which set of fields comprise the Type limit in the advanced search','multiple'),
19
('AgeRestrictionMarker','',NULL,'Markers for age restriction indication, e.g. FSK|PEGI|Age|','free'),
19
('AgeRestrictionMarker','',NULL,'Markers for age restriction indication, e.g. FSK|PEGI|Age|','free'),
20
('AgeRestrictionOverride','0',NULL,'Allow staff to check out an item with age restriction.','YesNo'),
20
('AgeRestrictionOverride','0',NULL,'Allow staff to check out an item with age restriction.','YesNo'),
21
('AggressiveMatchOnISBN','0', NULL,'If enabled, attempt to match aggressively by trying all variations of the ISBNs in the imported record as a phrase in the ISBN fields of already cataloged records when matching on ISBN with the record import tool','YesNo'),
21
('AggressiveMatchOnISBN','0', NULL,'If enabled, attempt to match aggressively by trying all variations of the ISBNs in the imported record as a phrase in the ISBN fields of already cataloged records when matching on ISBN with the record import tool','YesNo'),
(-)a/opac/opac-search.pl (-2 / +1 lines)
Lines 240-246 my $itype_or_itemtype = (C4::Context->preference("item-level_itypes"))?'itype':' Link Here
240
my @advancedsearchesloop;
240
my @advancedsearchesloop;
241
my $cnt;
241
my $cnt;
242
my $advanced_search_types = C4::Context->preference("AdvancedSearchTypes") || "itemtypes";
242
my $advanced_search_types = C4::Context->preference("AdvancedSearchTypes") || "itemtypes";
243
my @advanced_search_types = split(/\,/, $advanced_search_types);
243
my @advanced_search_types = split(/,/, $advanced_search_types);
244
244
245
my $hidingrules = C4::Context->yaml_preference('OpacHiddenItems') // {};
245
my $hidingrules = C4::Context->yaml_preference('OpacHiddenItems') // {};
246
246
247
- 

Return to bug 29878