diff --git a/themes/fid_adlr/templates/RecordDriver/DefaultRecord/record-icon-class.phtml b/themes/fid_adlr/templates/RecordDriver/DefaultRecord/record-icon-class.phtml index cc015699802f4ba10dc5b8180553c11a6f5f5d85..2abdf79c9884ad4dbed8e641ca984980254ddeee 100644 --- a/themes/fid_adlr/templates/RecordDriver/DefaultRecord/record-icon-class.phtml +++ b/themes/fid_adlr/templates/RecordDriver/DefaultRecord/record-icon-class.phtml @@ -46,6 +46,7 @@ switch ($normalizedValue) { echo 'iconcategory-thesis-offline'; break; case 'thesisonline': + case 'thesisonlinefree': echo 'iconcategory-thesis-online'; break; case 'visualmedialocal': diff --git a/themes/fid_adlr/templates/RecordDriver/DefaultRecord/record-icon.phtml b/themes/fid_adlr/templates/RecordDriver/DefaultRecord/record-icon.phtml index 6e4adfcea44325b6e5c15668b9075e89d26de572..f8f35ca79cddf759fa29ad9f0ddd85e74198849b 100644 --- a/themes/fid_adlr/templates/RecordDriver/DefaultRecord/record-icon.phtml +++ b/themes/fid_adlr/templates/RecordDriver/DefaultRecord/record-icon.phtml @@ -1,19 +1,13 @@ <!-- fid_adlr: recordDriver - DefaultRecord - record-icon --> <?php -if ($this->driver->getRecordType() == "marcfincpda") { - $iconClass = $this->record($this->driver)->getRecordIconClass("marcfincpda"); -} elseif ($this->driver->getRecordType() == "lido") { - $iconClass = $this->record($this->driver)->getRecordIconClass("object"); -} else { - /* finc: solr field facet_avail instead of access_facet (field deprecated) #15375 - GG */ - $format = $this->driver->getFormats(); - $format = count($format) > 1 ? $format[0] : $format; - $format = is_array($format) ? $format : [$format]; - $facetAvail = $this->driver->getFacetAvail(); - $iconValue = array_merge($format, $facetAvail); - $iconValue = implode('', $iconValue); - $iconClass = $this->record($this->driver)->getRecordIconClass($iconValue); -} +/* finc: solr field facet_avail instead of access_facet (field deprecated) #15375 - GG */ +$format = $this->driver->getFormats(); +$format = count($format) > 1 ? $format[0] : $format; +$format = is_array($format) ? $format : [$format]; +$facetAvail = $this->driver->getFacetAvail(); +$iconValue = array_merge($format, $facetAvail); +$iconValue = implode('', $iconValue); +$iconClass = $this->record($this->driver)->getRecordIconClass($iconValue); ?> <span class="access-icon hidden-print"> <i class="iconcategory <?=$iconClass?>"></i>