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 (+10 lines)
Line 0 Link Here
1
$DBversion = 'XXX';
2
if( CheckVersion( $DBversion ) ) {
3
    $dbh->do(q{
4
        INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) 
5
        VALUES 
6
        ('BrowseInterface', '0',NULL, "Elasticsearch only: add a page allowing users to 'browse' all items in the collection",'YesNo')
7
    });
8
    SetVersion( $DBversion );
9
    print "Upgrade to $DBversion done (Bug 14567: Add BrowseInterface syspref)\n";
10
}
(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 99-104 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'),
102
('BrowseResultSelection','0',NULL,'Enable/Disable browsing search results fromt the bibliographic record detail page in staff client','YesNo'),
103
('BrowseResultSelection','0',NULL,'Enable/Disable browsing search results fromt the bibliographic record detail page in staff client','YesNo'),
103
('CalculateFinesOnReturn','1','','Switch to control if overdue fines are calculated on return or not','YesNo'),
104
('CalculateFinesOnReturn','1','','Switch to control if overdue fines are calculated on return or not','YesNo'),
104
('CalendarFirstDayOfWeek','0','0|1|2|3|4|5|6','Select the first day of week to use in the calendar.','Choice'),
105
('CalendarFirstDayOfWeek','0','0|1|2|3|4|5|6','Select the first day of week to use in the calendar.','Choice'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref (+7 lines)
Lines 85-90 Searching: Link Here
85
                  yes: Enable
85
                  yes: Enable
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
        -
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."
88
    Search Form:
95
    Search Form:
89
        -
96
        -
90
            - Load the unlogged history to the next user.
97
            - Load the unlogged history to the next user.
(-)a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss (-2 / +2 lines)
Lines 3364-3370 $star-selected: #EDB867; Link Here
3364
    }
3364
    }
3365
    #browse-searchresults, #browse-selectionsearch {
3365
    #browse-searchresults, #browse-selectionsearch {
3366
        border: 1px solid #E3E3E3;
3366
        border: 1px solid #E3E3E3;
3367
        .border-radius-all(4px);
3367
        border-radius: 4px;
3368
        padding: 0;
3368
        padding: 0;
3369
        overflow-y: auto;
3369
        overflow-y: auto;
3370
        max-height: 31em;
3370
        max-height: 31em;
Lines 3424-3430 $star-selected: #EDB867; Link Here
3424
        border: 1px solid #E8E8E8;
3424
        border: 1px solid #E8E8E8;
3425
        text-align: left;
3425
        text-align: left;
3426
        padding: 0.5em;
3426
        padding: 0.5em;
3427
        .border-radius-all(3px);
3427
        border-radius: 3px;
3428
    }
3428
    }
3429
    .loading {
3429
    .loading {
3430
        text-align: center;
3430
        text-align: center;
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc (+1 lines)
Lines 277-282 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( 'suggestion' ) == 1 %]
281
                                    [% IF Koha.Preference( 'suggestion' ) == 1 %]
281
                                        [% IF Koha.Preference( 'AnonSuggestions' ) == 1 %]
282
                                        [% IF Koha.Preference( 'AnonSuggestions' ) == 1 %]
282
                                            <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 (-1 / +5 lines)
Lines 8-14 Link Here
8
[% INCLUDE 'bodytag.inc' bodyid='opac-browser' %]
8
[% INCLUDE 'bodytag.inc' bodyid='opac-browser' %]
9
[% INCLUDE 'masthead.inc' %]
9
[% INCLUDE 'masthead.inc' %]
10
10
11
12
<div class="main">
11
<div class="main">
13
    <ul class="breadcrumb">
12
    <ul class="breadcrumb">
14
        <li><a href="/cgi-bin/koha/opac-main.pl">Home</a>
13
        <li><a href="/cgi-bin/koha/opac-main.pl">Home</a>
Lines 19-24 Link Here
19
18
20
    <div class="container-fluid">
19
    <div class="container-fluid">
21
        <div class="row-fluid">
20
        <div class="row-fluid">
21
    [% IF Koha.Preference('SearchEngine') == 'Elasticsearch' && Koha.Preference('BrowseInterface') %]
22
        [% IF ( OpacNav || OpacNavBottom ) %]
22
        [% IF ( OpacNav || OpacNavBottom ) %]
23
23
24
            <div class="span2">
24
            <div class="span2">
Lines 81-88 Link Here
81
                    </div><!-- / .results-wrapper -->
81
                    </div><!-- / .results-wrapper -->
82
                </div><!-- / .userbrowser -->
82
                </div><!-- / .userbrowser -->
83
            </div><!-- / .span10 -->
83
            </div><!-- / .span10 -->
84
    [% ELSE %]
85
        <h3>This feature is not enabled</h3>
86
    [% END %]
84
        </div><!-- / .row-fluid -->
87
        </div><!-- / .row-fluid -->
85
    </div><!-- / .container-fluid -->
88
    </div><!-- / .container-fluid -->
89
<div
86
</div><!-- / .main -->
90
</div><!-- / .main -->
87
[% INCLUDE 'opac-bottom.inc' %]
91
[% INCLUDE 'opac-bottom.inc' %]
88
[% BLOCK jsinclude %]
92
[% BLOCK jsinclude %]
(-)a/opac/opac-browse.pl (-2 / +1 lines)
Lines 20-26 Link Here
20
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21
21
22
use Modern::Perl;
22
use Modern::Perl;
23
use CGI;
23
use CGI qw ( -utf8 );
24
24
25
use C4::Auth;
25
use C4::Auth;
26
use C4::Context;
26
use C4::Context;
27
- 

Return to bug 14567