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

(-)a/installer/data/mysql/atomicupdate/bug-15728-add-showcomponentrecordsfacet-syspref.pl (+22 lines)
Line 0 Link Here
1
use Modern::Perl;
2
use Koha::Installer::Output qw(say_warning say_failure say_success say_info);
3
4
return {
5
    bug_number  => "15728",
6
    description => "Add an option to hide component records from search results.",
7
    up          => sub {
8
        my ($args) = @_;
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
10
11
        $dbh->do(
12
            q{
13
            INSERT IGNORE INTO systempreferences
14
                (`variable`, `value`, `options`, `explanation`, `type` )
15
            VALUES
16
                ('ShowComponentRecordsFacet', 'nowhere', 'nowhere|staff|opac|both', 'Where should we display component records facet', 'Choice')
17
        }
18
        );
19
20
        say $out "Added new system preference 'ShowComponentRecordsFacet'";
21
    },
22
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 719-724 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
719
('ShelfBrowserUsesLocation','1','1','Use the item location when finding items for the shelf browser.','YesNo'),
719
('ShelfBrowserUsesLocation','1','1','Use the item location when finding items for the shelf browser.','YesNo'),
720
('ShowAllCheckins', '0', '', 'Show all checkins', 'YesNo'),
720
('ShowAllCheckins', '0', '', 'Show all checkins', 'YesNo'),
721
('ShowComponentRecords', 'nowhere', 'nowhere|staff|opac|both','In which record detail pages to show list of the component records, as linked via 773','Choice'),
721
('ShowComponentRecords', 'nowhere', 'nowhere|staff|opac|both','In which record detail pages to show list of the component records, as linked via 773','Choice'),
722
('ShowComponentRecordsFacet', 'nowhere', 'nowhere|staff|opac|both','Where should we display component records facet','Choice'),
722
('ShowHeadingUse', '0', NULL, 'Show whether authority record contains an established heading that conforms to descriptive cataloguing rules, and can therefore be used as a main/added entry, or subject, or series title', 'YesNo'),
723
('ShowHeadingUse', '0', NULL, 'Show whether authority record contains an established heading that conforms to descriptive cataloguing rules, and can therefore be used as a main/added entry, or subject, or series title', 'YesNo'),
723
('showLastPatron','0','','If ON, enables the last patron feature in the intranet','YesNo'),
724
('showLastPatron','0','','If ON, enables the last patron feature in the intranet','YesNo'),
724
('showLastPatronCount', '10', '', 'How many patrons should showLastPatron remember', 'Integer'),
725
('showLastPatronCount', '10', '', 'How many patrons should showLastPatron remember', 'Integer'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref (-2 / +8 lines)
Lines 324-330 Cataloging: Link Here
324
                  staff: "staff interface"
324
                  staff: "staff interface"
325
                  opac: "OPAC"
325
                  opac: "OPAC"
326
                  both: "both staff interface and OPAC"
326
                  both: "both staff interface and OPAC"
327
            - "record detail pages."
327
            - "record detail pages and display facet in"
328
            - pref: ShowComponentRecordsFacet
329
              choices:
330
                  nowhere: "nowhere"
331
                  staff: "staff interface"
332
                  opac: "OPAC"
333
                  both: "both staff interface and OPAC"
334
            - "search results."
328
            - "A maximum of"
335
            - "A maximum of"
329
            - pref: MaxComponentRecords
336
            - pref: MaxComponentRecords
330
            - "records will be displayed."
337
            - "records will be displayed."
331
- 

Return to bug 15728