diff --git a/server/static/js/search/SearchResult.js b/server/static/js/search/SearchResult.js index e24f27c..ca4f503 100644 --- a/server/static/js/search/SearchResult.js +++ b/server/static/js/search/SearchResult.js @@ -52,6 +52,18 @@ var SearchResult = { type = m("img", { src: "pics/mapserver_label.png" }); } + // digiterm + if (obj.type == "digiterm"){ + description = m("span", obj.attributes.display_text); + type = m("img", { src: "pics/digiterms_beige_front.png" }); + } + + // digiline lcd + if (obj.type == "digilinelcd"){ + description = m("span", obj.attributes.text); + type = m("img", { src: "pics/lcd_lcd.png" }); + } + // locator if (obj.type == "locator"){ description = m("span", obj.attributes.name); diff --git a/server/static/js/search/SearchService.js b/server/static/js/search/SearchService.js index 67fd0d9..d753e99 100644 --- a/server/static/js/search/SearchService.js +++ b/server/static/js/search/SearchService.js @@ -36,7 +36,9 @@ var SearchService = { searchFor("travelnet", "station_name", SearchStore.query), searchFor("bones", "owner", SearchStore.query), searchFor("locator", "name", SearchStore.query), - searchFor("label", "text", SearchStore.query) + searchFor("label", "text", SearchStore.query), + searchFor("digiterm", "display_text", SearchStore.query), + searchFor("digilinelcd", "text", SearchStore.query) ]; Promise.all(prom_list)