]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/opac/parts/result/lowhits.tt2
lp1271198 Strip browse and facet parameters from links
[working/Evergreen.git] / Open-ILS / src / templates / opac / parts / result / lowhits.tt2
1 <div>
2     <div id="zero_search_hits">
3         <div class="zero_search_hits_saved">
4             [% INCLUDE "opac/parts/staff_saved_searches.tt2" %]
5         </div>
6         <div class="zero_search_hits_main">
7             <p>[% qhtml = CGI.param('query') | html;
8                   IF ctx.bookbag;
9                        wbbag = ctx.bookbag.name | html;
10                        fmt_bookbag = '<span class="lowhits-bookbag-name">' _ wbbag _ '</span>';
11                        IF is_advanced OR is_special;
12                           l('Sorry, no entries were found for your search within [_1].', fmt_bookbag);
13                        ELSE;
14                           l('Sorry, no entries were found for [_1] within [_2].', '<q>' _ qhtml _ '</q>', fmt_bookbag);
15                        END;
16                    ELSE;
17                      IF is_advanced OR is_special;
18                           l('Sorry, no entries were found for your search.');
19                        ELSE;
20                           IF !qhtml;
21                              l('Please enter a search term in the Search box.');
22                           ELSE;
23                              l('Sorry, no entries were found for [_1].', '<q>' _ qhtml _ '</q>');
24                           END;
25                        END;
26                    END %]
27             </p>
28         </div>
29         <div id="lowhits_help">
30             [% INCLUDE "opac/parts/result/lowhits_purchase.tt2" %]
31             <p>
32                 <strong>[% l('Keyword Search Tips') %]</strong><br />
33                 [% i18n_advsearch = l('Advanced Search');
34                    l('Try changing to [_1].', '<strong>' _ i18n_advsearch _ '</strong>') %]
35             </p>
36             <p>
37                 <strong>[% l('Adjacency') %]</strong><br />
38                 [% l('Multiple words are not searched together as a phrase. They will ' _
39                      'be found in various parts of the record. To search for a phrase, enclose your ' _
40                      'search terms in quotation marks.') %]<br />
41                 [% i18n_searchphrase = l('garcia marquez');
42                    l('(example: [_1])', '<strong>&quot;' _ i18n_searchphrase _ '&quot;</strong>') %]
43             </p>
44             <p>
45                 <strong>[% l('Truncation') %]</strong><br />
46                 [% l('Words may be right-hand truncated using an asterisk. Use a single asterisk * ' _
47                      'to truncate any number of characters.') %]<br />
48                 [% i18n_searchtrunc = l('environment* agency');
49                    l('(example: [_1])', '<strong>' _ i18n_searchtrunc _ '</strong>') %]
50             </p>
51             <p>
52                 <strong>[% l('Anchored Searching') %]</strong><br />
53                 [% l('You may use ^ and $ to indicate "phrase begins with" and ' _
54                      '"phrase ends with," respectively, within a search phrase ' _
55                      'enclosed in quotation marks.') %]<br />
56                 [% i18n_searchbegins = l('harry');
57                    i18n_searchends = l('stone');
58                    l('(examples: [_1] for phrases that begin with the term [_2]. ' _
59                      '[_3] for phrases that end in [_4].)',
60                      '<strong>&quot;^' _ i18n_searchbegins _ '&quot;</strong>', '<em>' _ i18n_searchbegins _ '</em>',
61                      '<strong>&quot;' _ i18n_searchends _ '$&quot;</strong>', '<em>' _ i18n_searchends _ '</em>') %]
62             </p>
63         </div>
64     </div>
65 </div>