diff --git a/_includes/helpers/get-icon-svg.html b/_includes/helpers/get-icon-svg.html deleted file mode 100644 index 6fec11f7..00000000 --- a/_includes/helpers/get-icon-svg.html +++ /dev/null @@ -1,26 +0,0 @@ -{% comment %} - Liquid utility to get a theme icon based on display_template or format. - returns an svg sprite (in html) - - E.G. --> {% include helpers/get-icon-svg.html template="pdf" type="hidden" %} - - Options: - - - "template" - the display_template to represent (usually provided from an item metadata "display_template" or "format") - - "type" - choose from "thumb" (svg like an image), "hidden" (svg aria-hidden), or "sprite" (svg sprite) (optional, default "sprite") -{% endcomment %} -{%- capture iconId -%}{% if include.template contains 'image' %}icon-image{% elsif include.template contains 'pdf' %}icon-pdf{% elsif include.template contains 'video' %}icon-video{% elsif include.template contains 'audio' %}icon-audio{% elsif include.template contains 'panorama' %}icon-panorama{% elsif include.template contains 'compound' %}icon-compound-object{% elsif include.template contains 'multiple' %}icon-multiple{% elsif include.template contains 'record' %}icon-record{% else %}icon-default{% endif %}{%- endcapture -%} -{% if include.type == 'thumb' %} - - {{ include.template }} file icon - -{%- else -%} - -{% endif %} diff --git a/_includes/js/browse-js.html b/_includes/js/browse-js.html index bf99fa48..511f50a9 100644 --- a/_includes/js/browse-js.html +++ b/_includes/js/browse-js.html @@ -5,208 +5,168 @@ {% endif %} {%- assign fields = site.data['config-browse'] -%} diff --git a/_includes/helpers/get-icon.js b/_includes/js/get-icon.js similarity index 94% rename from _includes/helpers/get-icon.js rename to _includes/js/get-icon.js index ebda56c5..990e2a20 100644 --- a/_includes/helpers/get-icon.js +++ b/_includes/js/get-icon.js @@ -33,9 +33,6 @@ function getIcon(objectTemplate, objectFormat, svgType) { } else if (iconTemplate.includes("multiple")) { iconId = "icon-multiple"; iconTitle = "multiple object icon"; - } else if (iconTemplate.includes("record")) { - iconId = "icon-record"; - iconTitle = "record object icon"; } else if (iconTemplate.includes("geodata")) { iconId = "icon-geodata"; iconTitle = "geodata icon";