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

(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 85-90 INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES Link Here
85
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OpacPasswordChange',1,'If ON, enables patron-initiated password change in OPAC (disable it when using LDAP auth)',NULL,'YesNo');
85
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OpacPasswordChange',1,'If ON, enables patron-initiated password change in OPAC (disable it when using LDAP auth)',NULL,'YesNo');
86
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OpacPrivacy', '0', 'if ON, allows patrons to define their privacy rules (reading history)',NULL,'YesNo');
86
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OpacPrivacy', '0', 'if ON, allows patrons to define their privacy rules (reading history)',NULL,'YesNo');
87
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('opacreadinghistory',1,'If ON, enables display of Patron Circulation History in OPAC','','YesNo');
87
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('opacreadinghistory',1,'If ON, enables display of Patron Circulation History in OPAC','','YesNo');
88
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OPACResultsSidebar','','Define HTML to be included on the search results page, underneath the facets sidebar','70|10','Textarea');
88
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('opacsmallimage','','Enter a complete URL to an image to replace the default Koha logo','','free');
89
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('opacsmallimage','','Enter a complete URL to an image to replace the default Koha logo','','free');
89
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('opacstylesheet','','Enter a complete URL to use an alternate layout stylesheet in OPAC','','free');
90
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('opacstylesheet','','Enter a complete URL to use an alternate layout stylesheet in OPAC','','free');
90
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('opacthemes','prog','Define the current theme for the OPAC interface.','','Themes');
91
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('opacthemes','prog','Define the current theme for the OPAC interface.','','Themes');
(-)a/installer/data/mysql/updatedatabase.pl (+7 lines)
Lines 4439-4444 if (C4::Context->preference("Version") < TransformToNum($DBversion)) { Link Here
4439
    SetVersion($DBversion);
4439
    SetVersion($DBversion);
4440
}
4440
}
4441
4441
4442
$DBversion = "3.05.00.XXX";
4443
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
4444
    $dbh->do("INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OPACResultsSidebar','','Define HTML to be included on the search results page, underneath the facets sidebar','70|10','Textarea')");
4445
    print "Upgrade to $DBversion done (add OPACResultsSidebar syspref (enh 6165))\n";
4446
    SetVersion($DBversion);
4447
}
4448
4442
4449
4443
=head1 FUNCTIONS
4450
=head1 FUNCTIONS
4444
4451
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (+5 lines)
Lines 165-170 OPAC: Link Here
165
              type: textarea
165
              type: textarea
166
              class: code
166
              class: code
167
        -
167
        -
168
            - "Include the following HTML under the facets in OPAC search results:"
169
            - pref: OPACResultsSidebar
170
              type: textarea
171
              class: code
172
        -
168
            - pref: OpacAddMastheadLibraryPulldown
173
            - pref: OpacAddMastheadLibraryPulldown
169
              choices: 
174
              choices: 
170
                  yes: Add
175
                  yes: Add
(-)a/koha-tmpl/opac-tmpl/prog/en/includes/opac-facets.inc (+5 lines)
Lines 25-29 Link Here
25
[% END %]
25
[% END %]
26
</ul>
26
</ul>
27
</div>
27
</div>
28
[% IF ( OPACResultsSidebar ) %]
29
<div id="opacresultssidebar">
30
[% OPACResultsSidebar %]
31
</div>
32
[% END %]
28
[% END %]
33
[% END %]
29
[% END %]
34
[% END %]
(-)a/opac/opac-search.pl (-1 / +1 lines)
Lines 405-410 if (C4::Context->preference('OpacSuppression')) { Link Here
405
}
405
}
406
406
407
$template->param ( LIMIT_INPUTS => \@limit_inputs );
407
$template->param ( LIMIT_INPUTS => \@limit_inputs );
408
$template->param ( OPACResultsSidebar => C4::Context->preference('OPACResultsSidebar'));
408
409
409
## II. DO THE SEARCH AND GET THE RESULTS
410
## II. DO THE SEARCH AND GET THE RESULTS
410
my $total = 0; # the total results for the whole set
411
my $total = 0; # the total results for the whole set
411
- 

Return to bug 6165