]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/opac/parts/result/lowhits.tt2
LP2045292 Color contrast for AngularJS patron bills
[working/Evergreen.git] / Open-ILS / src / templates / opac / parts / result / lowhits.tt2
1 <div>
2     <div id="zero_search_hits">
3         <div class="facet_sidebar_hidden" id="facet_sidebar">
4           <h3 class="sr-only">[% l('Search Results filters') %]</h3>
5         </div>
6         <div class="zero_search_hits_saved">
7             [% INCLUDE "opac/parts/staff_saved_searches.tt2" %]
8         </div>
9         <div class="zero_search_hits_main">
10             <p>[% qhtml = CGI.param('query') | html;
11                   IF ctx.bookbag;
12                        wbbag = ctx.bookbag.name | html;
13                        fmt_bookbag = '<span class="lowhits-bookbag-name">' _ wbbag _ '</span>';
14                        IF is_advanced OR is_special;
15                           l('Sorry, no entries were found for your search within [_1].', fmt_bookbag);
16                        ELSE;
17                           l('Sorry, no entries were found for [_1] within [_2].', '<q>' _ qhtml _ '</q>', fmt_bookbag);
18                        END;
19                    ELSE;
20                      IF is_advanced OR is_special;
21                           l('Sorry, no entries were found for your search.');
22                        ELSE;
23                           IF !qhtml;
24                              l('Please enter a search term in the Search box.');
25                           ELSE;
26                              l('Sorry, no entries were found for [_1].', '<q>' _ qhtml _ '</q>');
27                           END;
28                        END;
29                    END %]
30             </p>
31             [% IF ctx.search_summary.suggestions.one_class_multi_term %]
32             <div class="result_block_visible refine_search" id="did_you_mean">
33                 <em><strong>[% s_list = ctx.search_summary.suggestions.one_class_multi_term; l('Did you mean: ') %]</strong></em><ul class="suggestion refine_search">
34                 [% FOREACH s IN s_list.suggestions %]
35                     <li class="suggestion refine_search">
36                       <a href="[% mkurl(ctx.opac_root _ '/results', {qtype=>s_list.class, query=>s.suggestion}) %]">[% s.prefix_key || s.suggestion | html %]</a>
37                     </li>
38                 [% END %]</ul>
39             </div>
40             <br/>
41             [% END %]
42         </div>
43         <div id="lowhits_help">
44             [% INCLUDE "opac/parts/result/lowhits_purchase.tt2" %]
45             <p>
46                 <strong>[% l('Keyword Search Tips') %]</strong><br />
47                 [% i18n_advsearch = l('Advanced Search');
48                    l('Try changing to [_1].', '<strong>' _ i18n_advsearch _ '</strong>') %]
49             </p>
50             <p>
51                 <strong>[% l('Adjacency') %]</strong><br />
52                 [% l('Multiple words are not searched together as a phrase. They will ' _
53                      'be found in various parts of the record. To search for a phrase, enclose your ' _
54                      'search terms in quotation marks.') %]<br />
55                 [% i18n_searchphrase = l('garcia marquez');
56                    l('(example: [_1])', '<strong>&quot;' _ i18n_searchphrase _ '&quot;</strong>') %]
57             </p>
58             <p>
59                 <strong>[% l('Truncation') %]</strong><br />
60                 [% l('Words may be right-hand truncated using an asterisk. Use a single asterisk * ' _
61                      'to truncate any number of characters.') %]<br />
62                 [% i18n_searchtrunc = l('environment* agency');
63                    l('(example: [_1])', '<strong>' _ i18n_searchtrunc _ '</strong>') %]
64             </p>
65             <p>
66                 <strong>[% l('Anchored Searching') %]</strong><br />
67                 [% l('You may use ^ and $ to indicate "phrase begins with" and ' _
68                      '"phrase ends with," respectively, within a search phrase ' _
69                      'enclosed in quotation marks.') %]<br />
70                 [% i18n_searchbegins = l('harry');
71                    i18n_searchends = l('stone');
72                    l('(examples: [_1] for phrases that begin with the term [_2]. ' _
73                      '[_3] for phrases that end in [_4].)',
74                      '<strong>&quot;^' _ i18n_searchbegins _ '&quot;</strong>', '<em>' _ i18n_searchbegins _ '</em>',
75                      '<strong>&quot;' _ i18n_searchends _ '$&quot;</strong>', '<em>' _ i18n_searchends _ '</em>') %]
76             </p>
77         </div>
78     </div>
79 </div>