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

(-)a/installer/data/mysql/en/mandatory/sysprefs.sql (+1 lines)
Lines 73-78 INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES Link Here
73
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('opacheader','','Add HTML to be included as a custom header in the OPAC','70|10','Textarea');
73
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('opacheader','','Add HTML to be included as a custom header in the OPAC','70|10','Textarea');
74
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('opaclayoutstylesheet','opac.css','Enter the name of the layout CSS stylesheet to use in the OPAC','','free');
74
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('opaclayoutstylesheet','opac.css','Enter the name of the layout CSS stylesheet to use in the OPAC','','free');
75
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OpacMaintenance',0,'If ON, enables maintenance warning in OPAC','','YesNo');
75
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OpacMaintenance',0,'If ON, enables maintenance warning in OPAC','','YesNo');
76
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OPACNoResultsFound','','Display this HTML when no results are found for a search in the OPAC','70|10','Textarea');
76
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OpacMainUserBlock','Welcome to Koha...\r\n<hr>','A user-defined block of HTML  in the main content area of the opac main page','70|10','Textarea');
77
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OpacMainUserBlock','Welcome to Koha...\r\n<hr>','A user-defined block of HTML  in the main content area of the opac main page','70|10','Textarea');
77
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OpacNav','Important links here.','Use HTML tags to add navigational links to the left-hand navigational bar in OPAC','70|10','Textarea');
78
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OpacNav','Important links here.','Use HTML tags to add navigational links to the left-hand navigational bar in OPAC','70|10','Textarea');
78
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');
79
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');
(-)a/installer/data/mysql/updatedatabase.pl (+11 lines)
Lines 3876-3881 VALUES Link Here
3876
    SetVersion ($DBversion);
3876
    SetVersion ($DBversion);
3877
};
3877
};
3878
3878
3879
3880
$DBversion = '3.03.00.XXX';
3881
if (C4::Context->preference('Version') < TransformToNum($DBversion)){
3882
    $dbh->do("INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('OPACNoResultsFound','','Display this HTML when no results are found for a search in the OPAC','70|10','Textarea')");
3883
    print "Upgrade to $DBversion done adding syspref OPACNoResultsFound to control what displays when no results are found for a search in the OPAC.";
3884
    SetVersion ($DBversion);
3885
}
3886
3887
=item DropAllForeignKeys($table)
3888
3889
3879
=head1 FUNCTIONS
3890
=head1 FUNCTIONS
3880
3891
3881
=head2 DropAllForeignKeys($table)
3892
=head2 DropAllForeignKeys($table)
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (+5 lines)
Lines 147-152 OPAC: Link Here
147
                  yes: Add
147
                  yes: Add
148
                  no: "Don't add"
148
                  no: "Don't add"
149
            - a library select pulldown menu on the OPAC masthead.
149
            - a library select pulldown menu on the OPAC masthead.
150
        -
151
            - 'Display this HTML when no results are found for a search in the OPAC:'
152
            - pref: OPACNoResultsFound
153
              type: textarea
154
              class: code
150
    Features:
155
    Features:
151
        -
156
        -
152
            - pref: opacuserlogin
157
            - pref: opacuserlogin
(-)a/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc (-1 / +7 lines)
Lines 173-179 Link Here
173
<!-- TMPL_IF NAME="searchdesc" --><p><!-- TMPL_IF name="total" --><strong>&ldquo;<!-- TMPL_VAR NAME="query_desc" ESCAPE="HTML"--> <!-- TMPL_VAR NAME="limit_desc" ESCAPE="HTML"-->&rdquo; </strong>returned <!-- TMPL_VAR NAME="total" ESCAPE="HTML"--> results. <!-- TMPL_IF NAME="related" --> (related searches: <!-- TMPL_LOOP NAME="related" --><!-- TMPL_VAR NAME="related_search" --><!-- /TMPL_LOOP -->). <!-- /TMPL_IF -->
173
<!-- TMPL_IF NAME="searchdesc" --><p><!-- TMPL_IF name="total" --><strong>&ldquo;<!-- TMPL_VAR NAME="query_desc" ESCAPE="HTML"--> <!-- TMPL_VAR NAME="limit_desc" ESCAPE="HTML"-->&rdquo; </strong>returned <!-- TMPL_VAR NAME="total" ESCAPE="HTML"--> results. <!-- TMPL_IF NAME="related" --> (related searches: <!-- TMPL_LOOP NAME="related" --><!-- TMPL_VAR NAME="related_search" --><!-- /TMPL_LOOP -->). <!-- /TMPL_IF -->
174
<a href="<!-- TMPL_VAR NAME="OPACBaseURL" -->/cgi-bin/koha/opac-search.pl?<!-- TMPL_VAR name="query_cgi" ESCAPE="HTML" --><!-- TMPL_VAR NAME="limit_cgi"  ESCAPE="HTML" --><!-- TMPL_IF NAME="sort_by" -->&amp;sort_by=<!-- TMPL_VAR NAME="sort_by" ESCAPE="HTML" --><!-- /TMPL_IF -->&amp;format=rss2"><img src="/opac-tmpl/prog/images/feed-icon-16x16.png" alt="Subscribe to this search" title="Subscribe to this search" border="0" /></a>
174
<a href="<!-- TMPL_VAR NAME="OPACBaseURL" -->/cgi-bin/koha/opac-search.pl?<!-- TMPL_VAR name="query_cgi" ESCAPE="HTML" --><!-- TMPL_VAR NAME="limit_cgi"  ESCAPE="HTML" --><!-- TMPL_IF NAME="sort_by" -->&amp;sort_by=<!-- TMPL_VAR NAME="sort_by" ESCAPE="HTML" --><!-- /TMPL_IF -->&amp;format=rss2"><img src="/opac-tmpl/prog/images/feed-icon-16x16.png" alt="Subscribe to this search" title="Subscribe to this search" border="0" /></a>
175
<!-- TMPL_ELSE -->
175
<!-- TMPL_ELSE -->
176
<strong>No Result found!</strong>
176
<strong>No Results Found!</strong>
177
<p>
177
<p>
178
    <!-- TMPL_IF NAME="searchdesc" -->
178
    <!-- TMPL_IF NAME="searchdesc" -->
179
    No results match your search for <span style="font-weight: bold;">&ldquo;<!-- TMPL_VAR NAME="query_desc" ESCAPE="HTML" --> <!-- TMPL_VAR NAME="limit_desc" ESCAPE="HTML"-->&rdquo;</span> in <!-- TMPL_VAR NAME="LibraryName" --> Catalog. <a href="<!-- TMPL_VAR NAME="OPACBaseURL" -->/cgi-bin/koha/opac-search.pl?<!-- TMPL_VAR name="query_cgi" ESCAPE="HTML" --><!-- TMPL_VAR NAME="limit_cgi" ESCAPE="HTML" -->&amp;format=rss2"><img src="/opac-tmpl/prog/images/feed-icon-16x16.png" alt="Subscribe to this search" title="Subscribe to this search" border="0" /></a>
179
    No results match your search for <span style="font-weight: bold;">&ldquo;<!-- TMPL_VAR NAME="query_desc" ESCAPE="HTML" --> <!-- TMPL_VAR NAME="limit_desc" ESCAPE="HTML"-->&rdquo;</span> in <!-- TMPL_VAR NAME="LibraryName" --> Catalog. <a href="<!-- TMPL_VAR NAME="OPACBaseURL" -->/cgi-bin/koha/opac-search.pl?<!-- TMPL_VAR name="query_cgi" ESCAPE="HTML" --><!-- TMPL_VAR NAME="limit_cgi" ESCAPE="HTML" -->&amp;format=rss2"><img src="/opac-tmpl/prog/images/feed-icon-16x16.png" alt="Subscribe to this search" title="Subscribe to this search" border="0" /></a>
Lines 181-185 Link Here
181
    You did not specify any search criteria.
181
    You did not specify any search criteria.
182
    <!-- /TMPL_IF -->
182
    <!-- /TMPL_IF -->
183
</p>
183
</p>
184
<!-- TMPL_IF name="OPACNoResultsFound" -->
185
<div id="noresultsfound">
186
<!-- TMPL_VAR NAME="OPACNoResultsFound" -->
187
</div>
188
<!-- /TMPL_IF -->
189
184
</div>
190
</div>
185
<!-- /TMPL_IF --></p><!-- /TMPL_IF --></div>
191
<!-- /TMPL_IF --></p><!-- /TMPL_IF --></div>
(-)a/opac/opac-search.pl (-1 / +1 lines)
Lines 97-102 elsif (C4::Context->preference("marcflavour") eq "MARC21" ) { Link Here
97
    $template->param('usmarc' => 1);
97
    $template->param('usmarc' => 1);
98
}
98
}
99
$template->param( 'AllowOnShelfHolds' => C4::Context->preference('AllowOnShelfHolds') );
99
$template->param( 'AllowOnShelfHolds' => C4::Context->preference('AllowOnShelfHolds') );
100
$template->param( 'OPACNoResultsFound' => C4::Context->preference('OPACNoResultsFound') );
100
101
101
if (C4::Context->preference('BakerTaylorEnabled')) {
102
if (C4::Context->preference('BakerTaylorEnabled')) {
102
	$template->param(
103
	$template->param(
103
- 

Return to bug 1997