1$.widget("custom.catcomplete", $.ui.autocomplete, { _create: function () { this._super(), this.widget().menu("option", "items", "> :not(.ui-autocomplete-category)") }, _renderMenu: function (e, t) { var o = this, r = ""; $.each(t, function (t, a) { var i; a.category != r && (e.append("<li class='ui-autocomplete-category'>" + a.category + "</li>"), r = a.category), i = o._renderItemData(e, a), a.category && i.attr("aria-label", a.category + " : " + a.label) }) }, _renderItem: function (e, t) { var o = this.term.split(" ").join("|"), r = new RegExp("(" + o + ")", "gi"), a = t.label.replace(r, "<strong>$1</strong>"); return null != t.type ? $("<li></li>").data("item.autocomplete", t).append("<a><img class='ui-autocomplete-catimg' src='/images/autocomplete/mk_" + t.type.replace(/\//gi, "_").replace("-", "_").replace("ü", "ue") + ".png' />" + a + "</a>").appendTo(e) : $("<li></li>").data("item.autocomplete", t).append("<a><img class='ui-autocomplete-catimg' src='/images/autocomplete/mk_metadaten.png' />" + a + "</a>").appendTo(e) } }), $(document).ready(function () { 2 $("#q").catcomplete({ 3 minLength: 1, source: function (e, t) { $.ajax({ url: "/scripts/proxy_solr.ashx?", dataType: "json", data: { q: e.term + "*" }, success: function (e) { t($.map(e.response.docs, function (e) { return { label: e.description ? e.title + " (" + e.description + ")" : e.textsuggest + (e.subtext ? " (" + e.subtext + ")" : ""), value: e.geo ? e.geo : e.title, desc: e.description, type: e.type ? e.type : "Webseite", category: e.type ? e.type : "Webseite", thumbnail_url: e.thumbnail_url, href: e.id } })) } }) }, focus: function (e, t) { return $("#q").val(t.item.label), !1 }, select: function (e, t) { 4 $("#q").val(t.item.label); try { 5 if ("Webseite" != t.item.type) { 6 var o = Terraformer.WKT.parse(t.item.value[0]); o.coordinates[0] && o.coordinates[1] && (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ? winopen_noparams("https://service.ooe.gv.at/at.gv.ooe.webgis/webgis-portal/default/map/Allgemein/DORIS-Standard?scale=2500¢er=" + o.coordinates[0] + "," + o.coordinates[1] + "&srs=31255&marker={x:" + o.coordinates[0] + ",y:" + o.coordinates[1] + "}") : winopen_ATLAS("https://service.ooe.gv.at/at.gv.ooe.webgis/webgis-portal/default/map/Allgemein/DORIS-Standard?scale=2500¢er=" + o.coordinates[0] + "," + o.coordinates[1] + "&srs=31255&marker={x:" + o.coordinates[0] + ",y:" + o.coordinates[1] + "}")) 7 } else document.location.href = t.item.href 8 } catch (e) { console.log(e) } return !1 9 } 10 }) 11}), $(document).ready(function () { $("#q1").catcomplete({ minLength: 1, source: function (e, t) { $.ajax({ url: "/scripts/proxy_solr.ashx?http://127.0.0.1:8080/solr/dorisweb/select", dataType: "json", data: { shards: "doris-metadaten.ooe.gv.at:8080/solr/doris/,127.0.0.1:8080/solr/dorisweb", q: e.term + "*", qf: "phonetic:^10.0 textsuggest^30.0 textng^50.0 extrasearch", wt: "json", qt: "ac", sort: "score desc", defType: "edismax", "q.op": "OR", "v.template": "suggest", rows: 5 }, success: function (e) { t($.map(e.response.docs, function (e) { return { label: e.description ? e.title + " (" + e.description + ")" : e.textsuggest + (e.subtext ? " (" + e.subtext + ")" : ""), value: e.geo ? e.geo : e.title, desc: e.description, type: e.type ? e.type : "Webseite", category: e.type ? e.type : "Webseite", thumbnail_url: e.thumbnail_url, href: e.id } })) } }) }, focus: function (e, t) { return $("#q1").val(t.item.label), !1 }, select: function (e, t) { $("#q1").val(t.item.label); try { if ("Webseite" != t.item.type) { var o = Terraformer.WKT.parse(t.item.value[0]); /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ? winopen_noparams("https://service.ooe.gv.at/at.gv.ooe.webgis/webgis-portal/default/map/Allgemein/DORIS-Standard?scale=2500¢er=" + o.coordinates[0] + "," + o.coordinates[1] + "&srs=31255&marker={x:" + o.coordinates[0] + ",y:" + o.coordinates[1] + "}") : winopen_ATLAS("https://service.ooe.gv.at/at.gv.ooe.webgis/webgis-portal/default/map/Allgemein/DORIS-Standard?scale=2500¢er=" + o.coordinates[0] + "," + o.coordinates[1] + "&srs=31255&marker={x:"
11+ o.coordinates[0] + ",y:" + o.coordinates[1] + "}") } else document.location.href = t.item.href } catch (e) { console.log(e) } return !1 } }) }), $(document).ready(function () { $("#q2").catcomplete({ minLength: 1, source: function (e, t) { $.ajax({ url: "/scripts/proxy_solr.ashx?http://127.0.0.1:8080/solr/dorisweb/select", dataType: "json", data: { shards: "doris-metadaten.ooe.gv.at:8080/solr/doris/,127.0.0.1:8080/solr/dorisweb", q: e.term + "*", qf: "phonetic:^10.0 textsuggest^30.0 textng^50.0 extrasearch", wt: "json", qt: "ac", sort: "score desc", defType: "edismax", "q.op": "OR", "v.template": "suggest", rows: 5 }, success: function (e) { t($.map(e.response.docs, function (e) { return { label: e.description ? e.title + " (" + e.description + ")" : e.textsuggest + (e.subtext ? " (" + e.subtext + ")" : ""), value: e.geo ? e.geo : e.title, desc: e.description, type: e.type ? e.type : "Webseite", category: e.type ? e.type : "Webseite", thumbnail_url: e.thumbnail_url, href: e.id } })) } }) }, focus: function (e, t) { return $("#q2").val(t.item.label), !1 }, select: function (e, t) { $("#q2").val(t.item.label); try { if ("Webseite" != t.item.type) { var o = Terraformer.WKT.parse(t.item.value[0]); /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ? winopen_noparams("https://service.ooe.gv.at/at.gv.ooe.webgis/webgis-portal/default/map/Allgemein/DORIS-Standard?scale=2500¢er=" + o.coordinates[0] + "," + o.coordinates[1] + "&srs=31255&marker={x:" + o.coordinates[0] + ",y:" + o.coordinates[1] + "}") : winopen_ATLAS("https://service.ooe.gv.at/at.gv.ooe.webgis/webgis-portal/default/map/Allgemein/DORIS-Standard?scale=2500¢er=" + o.coordinates[0] + "," + o.coordinates[1] + "&srs=31255&") } else document.location.href = t.item.href } catch (e) { console.log(e) } return !1 } }) });
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.