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

(-)a/installer/data/mysql/atomicupdate/bug_14567_add_es_catalog_browse_syspref.perl (-2 / +2 lines)
Lines 3-10 if( CheckVersion( $DBversion ) ) { Link Here
3
    $dbh->do(q{
3
    $dbh->do(q{
4
        INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type)
4
        INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type)
5
        VALUES
5
        VALUES
6
        ('BrowseInterface', '0',NULL, "Elasticsearch only: add a page allowing users to 'browse' all items in the collection",'YesNo')
6
        ('OpacBrowseInterface', '0',NULL, "Elasticsearch only: add a page allowing users to 'browse' all items in the collection",'YesNo')
7
    });
7
    });
8
    SetVersion( $DBversion );
8
    SetVersion( $DBversion );
9
    print "Upgrade to $DBversion done (Bug 14567: Add BrowseInterface syspref)\n";
9
    print "Upgrade to $DBversion done (Bug 14567: Add OpacBrowseInterface syspref)\n";
10
}
10
}
(-)a/installer/data/mysql/sysprefs.sql (-1 / +1 lines)
Lines 99-105 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
99
('BorrowersTitles','Mr|Mrs|Miss|Ms',NULL,'Define appropriate Titles for patrons','free'),
99
('BorrowersTitles','Mr|Mrs|Miss|Ms',NULL,'Define appropriate Titles for patrons','free'),
100
('BorrowerUnwantedField','',NULL,'Name the fields you don\'t need to store for a patron\'s account','free'),
100
('BorrowerUnwantedField','',NULL,'Name the fields you don\'t need to store for a patron\'s account','free'),
101
('BranchTransferLimitsType','ccode','itemtype|ccode','When using branch transfer limits, choose whether to limit by itemtype or collection code.','Choice'),
101
('BranchTransferLimitsType','ccode','itemtype|ccode','When using branch transfer limits, choose whether to limit by itemtype or collection code.','Choice'),
102
('BrowseInterface', '0',NULL, "Elasticsearch only: add a page allowing users to 'browse' all items in the collection",'YesNo'),
103
('BrowseResultSelection','0',NULL,'Enable/Disable browsing search results fromt the bibliographic record detail page in staff client','YesNo'),
102
('BrowseResultSelection','0',NULL,'Enable/Disable browsing search results fromt the bibliographic record detail page in staff client','YesNo'),
104
('CalculateFinesOnReturn','1','','Switch to control if overdue fines are calculated on return or not','YesNo'),
103
('CalculateFinesOnReturn','1','','Switch to control if overdue fines are calculated on return or not','YesNo'),
105
('CalendarFirstDayOfWeek','0','0|1|2|3|4|5|6','Select the first day of week to use in the calendar.','Choice'),
104
('CalendarFirstDayOfWeek','0','0|1|2|3|4|5|6','Select the first day of week to use in the calendar.','Choice'),
Lines 342-347 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
342
('OpacAuthorities','1',NULL,'If ON, enables the search authorities link on OPAC','YesNo'),
341
('OpacAuthorities','1',NULL,'If ON, enables the search authorities link on OPAC','YesNo'),
343
('OPACBaseURL','',NULL,'Specify the Base URL of the OPAC, e.g., http://opac.mylibrary.com, including the protocol (http:// or https://). Otherwise, the http:// will be added automatically by Koha upon saving.','Free'),
342
('OPACBaseURL','',NULL,'Specify the Base URL of the OPAC, e.g., http://opac.mylibrary.com, including the protocol (http:// or https://). Otherwise, the http:// will be added automatically by Koha upon saving.','Free'),
344
('opacbookbag','1','','If ON, enables display of Cart feature','YesNo'),
343
('opacbookbag','1','','If ON, enables display of Cart feature','YesNo'),
344
('OpacBrowseInterface', '0',NULL, "Elasticsearch only: add a page allowing users to 'browse' all items in the collection",'YesNo'),
345
('OpacBrowser','0',NULL,'If ON, enables subject authorities browser on OPAC (needs to set misc/cronjob/sbuild_browser_and_cloud.pl)','YesNo'),
345
('OpacBrowser','0',NULL,'If ON, enables subject authorities browser on OPAC (needs to set misc/cronjob/sbuild_browser_and_cloud.pl)','YesNo'),
346
('OpacBrowseResults','1',NULL,'Disable/enable browsing and paging search results from the OPAC detail page.','YesNo'),
346
('OpacBrowseResults','1',NULL,'Disable/enable browsing and paging search results from the OPAC detail page.','YesNo'),
347
('OpacCloud','0',NULL,'If ON, enables subject cloud on OPAC','YesNo'),
347
('OpacCloud','0',NULL,'If ON, enables subject cloud on OPAC','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (+8 lines)
Lines 517-522 OPAC: Link Here
517
            - pref: OPACISBD
517
            - pref: OPACISBD
518
              type: textarea
518
              type: textarea
519
              class: code
519
              class: code
520
        -
521
            - pref: OpacBrowseInterface
522
              default: 0
523
              choices:
524
                  yes: Enable
525
                  no: Disable
526
            - "(Elasticsearch only) Enable the interface allowing to browse all holdings."
527
    Search Form:
520
    Policy:
528
    Policy:
521
        -
529
        -
522
            - pref: SearchMyLibraryFirst
530
            - pref: SearchMyLibraryFirst
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref (-8 lines)
Lines 86-99 Searching: Link Here
86
                  no: Disable
86
                  no: Disable
87
            - "browsing search results from the bibliographic record detail page in staff client."
87
            - "browsing search results from the bibliographic record detail page in staff client."
88
        -
88
        -
89
            - pref: BrowseInterface
90
              default: 0
91
              choices:
92
                  yes: Enable
93
                  no: Disable
94
            - "(Elasticsearch only) Enable the interface allowing to browse all holdings."
95
    Search Form:
96
        -
97
            - Load the unlogged history to the next user.
89
            - Load the unlogged history to the next user.
98
            - pref : LoadSearchHistoryToTheFirstLoggedUser
90
            - pref : LoadSearchHistoryToTheFirstLoggedUser
99
              default: 0
91
              default: 0
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc (-1 / +1 lines)
Lines 277-283 Link Here
277
                                    [% IF Koha.Preference( 'TagsEnabled' ) == 1 %]<li><a href="/cgi-bin/koha/opac-tags.pl">Tag cloud</a></li>[% END %]
277
                                    [% IF Koha.Preference( 'TagsEnabled' ) == 1 %]<li><a href="/cgi-bin/koha/opac-tags.pl">Tag cloud</a></li>[% END %]
278
                                    [% IF Koha.Preference( 'OpacCloud' ) == 1 %]<li><a href="/cgi-bin/koha/opac-tags_subject.pl">Subject cloud</a></li>[% END %]
278
                                    [% IF Koha.Preference( 'OpacCloud' ) == 1 %]<li><a href="/cgi-bin/koha/opac-tags_subject.pl">Subject cloud</a></li>[% END %]
279
                                    [% IF Koha.Preference( 'OpacTopissue' ) == 1 %]<li><a href="/cgi-bin/koha/opac-topissues.pl">Most popular</a></li>[% END %]
279
                                    [% IF Koha.Preference( 'OpacTopissue' ) == 1 %]<li><a href="/cgi-bin/koha/opac-topissues.pl">Most popular</a></li>[% END %]
280
                                    [% IF Koha.Preference('SearchEngine') == 'Elasticsearch' && Koha.Preference( 'BrowseInterface' ) == 1 %]<li><a href="/cgi-bin/koha/opac-browse.pl">Browse interface</a></li>[% END %]
280
                                    [% IF Koha.Preference('SearchEngine') == 'Elasticsearch' && Koha.Preference( 'OpacBrowseInterface' ) == 1 %]<li><a href="/cgi-bin/koha/opac-browse.pl">Browse interface</a></li>[% END %]
281
                                    [% IF Koha.Preference( 'suggestion' ) == 1 %]
281
                                    [% IF Koha.Preference( 'suggestion' ) == 1 %]
282
                                        [% IF Koha.Preference( 'AnonSuggestions' ) == 1 %]
282
                                        [% IF Koha.Preference( 'AnonSuggestions' ) == 1 %]
283
                                            <li><a href="/cgi-bin/koha/opac-suggestions.pl">Purchase suggestions</a></li>
283
                                            <li><a href="/cgi-bin/koha/opac-suggestions.pl">Purchase suggestions</a></li>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-browse.tt (-2 / +1 lines)
Lines 18-24 Link Here
18
18
19
    <div class="container-fluid">
19
    <div class="container-fluid">
20
        <div class="row-fluid">
20
        <div class="row-fluid">
21
    [% IF Koha.Preference('SearchEngine') == 'Elasticsearch' && Koha.Preference('BrowseInterface') %]
21
    [% IF Koha.Preference('SearchEngine') == 'Elasticsearch' && Koha.Preference('OpacBrowseInterface') %]
22
        [% IF ( OpacNav || OpacNavBottom ) %]
22
        [% IF ( OpacNav || OpacNavBottom ) %]
23
23
24
            <div class="span2">
24
            <div class="span2">
25
- 

Return to bug 14567