From 2e7306615f6204667c9909c0568a227970d3bdb3 Mon Sep 17 00:00:00 2001 From: Gregor Gawol <gawol@ub.uni-leipzig.de> Date: Tue, 11 Feb 2020 15:46:07 +0100 Subject: [PATCH] refs #16924 [fid_adlr] display branding text collection UBL-FID-EBC --- themes/fid_adlr/languages/de.ini | 1 + themes/fid_adlr/languages/en.ini | 3 ++- themes/fid_adlr/scss/compiled.scss | 2 +- .../RecordDriver/DefaultRecord/result-list.phtml | 10 ++++++++-- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/themes/fid_adlr/languages/de.ini b/themes/fid_adlr/languages/de.ini index f8fe404df9e..da5d3236add 100644 --- a/themes/fid_adlr/languages/de.ini +++ b/themes/fid_adlr/languages/de.ini @@ -11,6 +11,7 @@ Branding SID51 = Neuerscheinung Branding SID76 = E-Books für adlr.link Branding SID78 = IZI-Datenbank.de Branding SID103 = Margaret Herrick Bibliothek +Branding collection-UBL-FID-EBC = E-Books für adlr.link Branding Title From = Titel aus Branding Verbundkatalog Film = Verbundkatalog Film diff --git a/themes/fid_adlr/languages/en.ini b/themes/fid_adlr/languages/en.ini index 10d0d1995af..66ba6dd89e3 100644 --- a/themes/fid_adlr/languages/en.ini +++ b/themes/fid_adlr/languages/en.ini @@ -8,9 +8,10 @@ offcanvas-toggler-myresearch = "Show profile options" Branding Facet Free = Open Access Branding SID48 = GENIOS Wiso Database Branding SID51 = New Release -Branding SID76 = ebook for adlr.link +Branding SID76 = E-books for adlr.link Branding SID78 = IZI Database Branding SID103 = Margaret Herrick Library +Branding collection-UBL-FID-EBC = E-books for adlr.link Branding Title From = title from Branding Verbundkatalog Film = Verbundkatalog Film diff --git a/themes/fid_adlr/scss/compiled.scss b/themes/fid_adlr/scss/compiled.scss index b2d2ca52fbd..f7d074068a3 100644 --- a/themes/fid_adlr/scss/compiled.scss +++ b/themes/fid_adlr/scss/compiled.scss @@ -456,7 +456,7 @@ a { display: inline-block; } - &.SID76 { + &.SID76, &.collection-UBL-FID-EBC { // #16177 adapt the path to get the "adlr ebooks" logo // FIXME set correct logo background: $midnight-light; diff --git a/themes/fid_adlr/templates/RecordDriver/DefaultRecord/result-list.phtml b/themes/fid_adlr/templates/RecordDriver/DefaultRecord/result-list.phtml index c13841cdad3..ffcfa0e7853 100644 --- a/themes/fid_adlr/templates/RecordDriver/DefaultRecord/result-list.phtml +++ b/themes/fid_adlr/templates/RecordDriver/DefaultRecord/result-list.phtml @@ -154,8 +154,14 @@ $i = 0; </span> <?php /* Labels - fid-adlr-specific - Rl */ ?> <span class="left"> - <?php $sourceID = $this->driver->getSourceID(); ?> - <span class="branding label SID<?= ($sourceID) ?>" title="<?= $this->transEsc("Branding Title From")?> <?= $this->transEsc("Branding SID$sourceID") ?>"><?= $this->transEsc("Branding SID$sourceID") ?></span> + <?php $sourceID = $this->driver->getSourceID(); + $collections = $this->driver->getCollection();?> + <span class="branding label SID<?= ($sourceID) ?> <?php foreach ($collections as $collection): ?> collection-<?=$collection?><?php endforeach; ?>" title="<?= $this->transEsc("Branding Title From")?> <?= $this->transEsc("Branding SID$sourceID") ?>"> + <?=$this->transEsc("Branding SID$sourceID", [], "")?> + <?php foreach ($collections as $collection): ?> + <?=$this->transEsc("Branding collection-$collection", [], "")?> + <?php endforeach; ?> + </span> </span> <span class="left"> <?php foreach ($this->driver->getFacetAvail() as $currentFacet): ?> -- GitLab