45
| <![CDATA[<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-45739004-1', 'auto');
ga('send', 'pageview');
</script>]]>
|
58
| <![CDATA[<script type="text/javascript">
var jQ = jQuery.noConflict();
jQ(document).ready(function() {
jQ( "#spellCheckQuery").click(function(){
jQ("#query").val(jQ(this).attr('data-spell'));
jQ("#main-query-submit").click();
});
jQ( "#filterquery" )
.autocomplete({
source: function( request, response ) {
jQ.ajax({
url: "/json/discovery/autocomplete?query=&filter_field_1=subject&filter_type_1=equals&filter_value_1=curso",
dataType: "json",
cache: false,
data: {
auto_idx: jQ("#filtername").val(),
auto_query: request.term,
auto_sort: 'count',
auto_type: jQ("#filtertype").val(),
location: '1/967'
},
success: function( data ) {
response( jQ.map( data.autocomplete, function( item ) {
var tmp_val = item.authorityKey;
if (tmp_val == null || tmp_val == '')
{
tmp_val = item.displayedValue;
}
return {
label: item.displayedValue + " (" + item.count + ")",
value: tmp_val
};
}))
}
})
}
});
});
function validateFilters() {
return document.getElementById("filterquery").value.length > 0;
}
</script>]]>
|