1 |
[% INCLUDE header.tt %] |
[% INCLUDE header.tt %] |
2 |
|
|
3 |
[% url = base _ 'search/suggest/' %] |
[% url_suggest = base _ site_url _ 'search/suggest/' %] |
4 |
|
|
5 |
|
<!-- site: [% site %] base: [% base %] site_url: [% site_url %] --> |
6 |
|
|
7 |
<!-- |
<!-- |
8 |
[% c.prototype.form_remote_tag( |
[% c.prototype.form_remote_tag( |
9 |
url => base _ 'search/results', |
url => base _ site_url _ 'search/results', |
10 |
update => 'results', |
update => 'results', |
11 |
loading => 'show_searching();', |
loading => 'show_searching();', |
12 |
loaded => 'hide_searching();', |
loaded => 'hide_searching();', |
16 |
} |
} |
17 |
) %] |
) %] |
18 |
--> |
--> |
19 |
<form action="[% base _ 'search/results' %]" method="get" id="results_form" name="results_form"> |
<form action="[% base _ site_url _ 'search/results' %]" method="get" id="results_form" name="results_form"> |
20 |
|
|
21 |
<table id="search_table" border="0"> |
<table id="search_table" border="0"> |
22 |
|
|
31 |
|
|
32 |
<div class="auto_complete" id="sve_input_auto_complete"></div> |
<div class="auto_complete" id="sve_input_auto_complete"></div> |
33 |
[% c.prototype.auto_complete_field( 'sve_input', { |
[% c.prototype.auto_complete_field( 'sve_input', { |
34 |
url => url _ '?search=all&show=TitleProper', |
url => url_suggest _ '?search=all&show=TitleProper', |
35 |
indicator => 'sve_input_loading', |
indicator => 'sve_input_loading', |
36 |
frequency => 0.8, |
frequency => 0.8, |
37 |
} ) %] |
} ) %] |
51 |
|
|
52 |
<div class="auto_complete" id="naslov_input_auto_complete"></div> |
<div class="auto_complete" id="naslov_input_auto_complete"></div> |
53 |
[% c.prototype.auto_complete_field( 'naslov_input', { |
[% c.prototype.auto_complete_field( 'naslov_input', { |
54 |
url => url _ '?search=TitleProper&show=TitleProper', |
url => url_suggest _ '?search=TitleProper&show=TitleProper', |
55 |
indicator => 'naslov_input_loading', |
indicator => 'naslov_input_loading', |
56 |
frequency => 0.8, |
frequency => 0.8, |
57 |
} ) %] |
} ) %] |
71 |
</span> |
</span> |
72 |
<div class="auto_complete" id="autor_input_auto_complete"></div> |
<div class="auto_complete" id="autor_input_auto_complete"></div> |
73 |
[% c.prototype.auto_complete_field( 'autor_input', { |
[% c.prototype.auto_complete_field( 'autor_input', { |
74 |
url => url _ '?search=Names&show=Names', |
url => url_suggest _ '?search=Names&show=Names', |
75 |
indicator => 'autor_input_loading', |
indicator => 'autor_input_loading', |
76 |
frequency => 0.8, |
frequency => 0.8, |
77 |
} ) %] |
} ) %] |
89 |
<input name="_reset" type="hidden" id="_reset" value="sve_input,naslov_input,autor_input"/> |
<input name="_reset" type="hidden" id="_reset" value="sve_input,naslov_input,autor_input"/> |
90 |
|
|
91 |
<div class="databases"> |
<div class="databases"> |
92 |
<a href="#" onclick="return toggleLinkAndElement( this, 'database_list', 'Sakrij knjižnice!');">Pokaži knjižnice!</a> |
<a id="toggle_database_list" href="#" onclick="return toggleLinkAndElement( this, 'database_list', 'Sakrij knjižnice!');">Pokaži knjižnice!</a> |
93 |
<ul id="database_list" style="display: none;"> |
<ul id="database_list" style="display: none;"> |
94 |
[% FOREACH db = c.comp('Model::Databases').list({ require_input => 1 }).sort('name') %] |
[% INCLUDE databases.tt %] |
|
<li><input type="checkbox" name="_database" value="[% db.prefix %]" onclick="return checkbox_click();"><a href="#" onclick="return checkbox_single('_database','[% db.prefix %]');">[% db.name %]</a></li> |
|
|
[% END %] |
|
95 |
</ul> |
</ul> |
96 |
</div> |
</div> |
97 |
|
|
114 |
</form> |
</form> |
115 |
|
|
116 |
<div id="results"> |
<div id="results"> |
117 |
[% IF results ; results ; ELSE %] |
[% IF results ; results %] |
118 |
|
<script type="text/javascript"> |
119 |
|
results_ready( 1 ); |
120 |
|
</script> |
121 |
|
[% ELSE %] |
122 |
<span class="notice">No results yet.</span> |
<span class="notice">No results yet.</span> |
123 |
[% END %] |
[% END %] |
124 |
</div> |
</div> |