}, lang, bidi;
</script>
<script type="text/javascript" src="[% ctx.media_prefix %]/js/dojo/dojo/dojo.js?[% ctx.eg_cache_hash %]"></script>
-<script type="text/javascript" src="[% ctx.media_prefix %]/js/dojo/opensrf/opensrf.js?[% ctx.eg_cache_hash %]"></script>
-[%# See whether we can get away with killing this line - LFW %]<script type="text/javascript" src="[% ctx.media_prefix %]/js/dojo/opensrf/opensrf_xhr.js?[% ctx.eg_cache_hash %]"></script>
<script type="text/javascript" src="[% ctx.media_prefix %]/js/dojo/dojo/openils_dojo.js?[% ctx.eg_cache_hash %]"></script>
+[%- # So the following works in Mozilla and Chrome, but not in IE8.
+ # Seems like it /should/ work anywhere, though, and obviate the
+ # next three script tags: %]
+<!-- <script type="text/javascript" src="[% ctx.media_prefix %]/js/dojo/DojoSRF.js?[% ctx.eg_cache_hash %]"></script> -->
+
+<script type="text/javascript" src="[% ctx.media_prefix %]/js/dojo/opensrf/opensrf.js?[% ctx.eg_cache_hash %]"></script>
+<script type="text/javascript" src="[% ctx.media_prefix %]/js/dojo/opensrf/opensrf_xhr.js?[% ctx.eg_cache_hash %]"></script>
+<script type="text/javascript" src="[% ctx.media_prefix %]/js/dojo/opensrf/JSON_v1.js?[% ctx.eg_cache_hash %]"></script>
+
[% IF use_autosuggest.enabled == "t"; %]
<script type="text/javascript">
dojo.require("openils.widget.AutoSuggest");
l(' for ');
%]
<span class='search_box_wrapper'>
- <input
+ <input type="text" id="search_box" name="query"
+ value="[% is_advanced ? ctx.processed_search_query : CGI.param('query') | html %]"
[%- IF use_autosuggest.enabled == "t" %]
dojoType="openils.widget.AutoSuggest" type_selector="'qtype'"
submitter="this.textbox.form.submit();"
- [%- IF use_autosuggest.value.search('opac_visible') %]
+ [%- IF use_autosuggest.value.search('opac_visible') %]
store_args='{"org_unit_getter": function() { return [% ctx.search_ou %]; }}'
- [%- END -%]
- [%- END -%] type="text" id="search_box" name="query"
- value="[% is_advanced ? ctx.processed_search_query : CGI.param('query') | html %]"
- x-webkit-speech />
+ [%- END # opac_visible -%]
+ [%- ELSE -%]
+ x-webkit-speech
+ [%- END # autosuggest enabled %] />
</span>
[%- INCLUDE "opac/parts/qtype_selector.tt2" id="qtype";
l(' in '); PROCESS build_org_selector name='loc' value=ctx.search_ou;
var query = {};
query[pkey] = {"!=": null};
- (new OpenSRF.ClientSession("open-ils.fielder")).request({
+ OpenSRF.CachedClientSession("open-ils.fielder").request({
"method": "open-ils.fielder." + key + ".atomic",
"params": [{"query": query, "fields": field_list}],
"async": true,
class_list, function(key) {
self._setup_config_metabib_cache(
key, field_lists[key], function() {
- if (dojo.every(class_list, is_done)) {
+ if (dojo.every(class_list, is_done))
self.cm_cache.is_done = true;
- }
}
- )
+ );
}
);
},