From de8c0a5dae7cce9c517898d8f18ae0fba6febecc Mon Sep 17 00:00:00 2001
From: Robert Lange <robert.lange@uni-leipzig.de>
Date: Fri, 10 Sep 2021 16:30:52 +0200
Subject: [PATCH] refs #16346 [fid_adlr] fix and consolidate search tabs

* also adjust position for search quick filter
---
 themes/boss/languages/de.ini                  |   9 ++++
 themes/boss/languages/en.ini                  |   9 ++++
 themes/boss/mixin.config.php                  |   2 +
 themes/boss/templates/ajax/boss-false.phtml   |  19 +++++++++
 themes/boss/templates/ajax/boss-true.phtml    |  20 +++++++++
 themes/boss/templates/ajax/boss.phtml         |   6 +++
 .../templates/content/networknotice.phtml     |   9 ++++
 themes/boss/templates/js_code.txt             |  18 ++++++++
 themes/fid_adlr/scss/compiled.scss            |  39 +++++-------------
 .../finc-dbis/images/dbis-list-access_0.png   | Bin 0 -> 128 bytes
 .../finc-dbis/images/dbis-list-access_1.png   | Bin 0 -> 167 bytes
 .../finc-dbis/images/dbis-list-access_12.png  | Bin 0 -> 167 bytes
 .../finc-dbis/images/dbis-list-access_2.png   | Bin 0 -> 125 bytes
 .../finc-dbis/images/dbis-list-access_3.png   | Bin 0 -> 354 bytes
 .../finc-dbis/images/dbis-list-access_300.png | Bin 0 -> 339 bytes
 .../finc-dbis/images/dbis-list-access_4.png   | Bin 0 -> 167 bytes
 .../finc-dbis/images/dbis-list-access_5.png   | Bin 0 -> 167 bytes
 .../finc-dbis/images/dbis-list-access_500.png | Bin 0 -> 220 bytes
 .../finc-dbis/images/dbis-list-access_6.png   | Bin 0 -> 209 bytes
 .../finc-dbis/images/dbis-list-access_7.png   | Bin 0 -> 223 bytes
 .../finc-dbis/images/dbis-list-access_8.png   | Bin 0 -> 354 bytes
 .../finc-dbis/images/dbis-list-access_9.png   | Bin 0 -> 167 bytes
 themes/finc-dbis/languages/de.ini             |  23 +++++++++++
 themes/finc-dbis/languages/en.ini             |  23 +++++++++++
 themes/finc-dbis/mixin.config.php             |  23 +++++++++++
 .../templates/finc/dbis/result.phtml          |  32 ++++++++++++++
 themes/finc-dbis/templates/js_code.txt        |  25 +++++++++++
 themes/worldcat/mixin.config.php              |   2 +
 themes/worldcat/templates/ajax/worldcat.phtml |  16 +++++++
 themes/worldcat/templates/js_code.txt         |  18 ++++++++
 30 files changed, 264 insertions(+), 29 deletions(-)
 create mode 100644 themes/boss/languages/de.ini
 create mode 100644 themes/boss/languages/en.ini
 create mode 100644 themes/boss/mixin.config.php
 create mode 100644 themes/boss/templates/ajax/boss-false.phtml
 create mode 100644 themes/boss/templates/ajax/boss-true.phtml
 create mode 100644 themes/boss/templates/ajax/boss.phtml
 create mode 100644 themes/boss/templates/content/networknotice.phtml
 create mode 100644 themes/boss/templates/js_code.txt
 create mode 100755 themes/finc-dbis/images/dbis-list-access_0.png
 create mode 100755 themes/finc-dbis/images/dbis-list-access_1.png
 create mode 100755 themes/finc-dbis/images/dbis-list-access_12.png
 create mode 100755 themes/finc-dbis/images/dbis-list-access_2.png
 create mode 100755 themes/finc-dbis/images/dbis-list-access_3.png
 create mode 100755 themes/finc-dbis/images/dbis-list-access_300.png
 create mode 100755 themes/finc-dbis/images/dbis-list-access_4.png
 create mode 100755 themes/finc-dbis/images/dbis-list-access_5.png
 create mode 100755 themes/finc-dbis/images/dbis-list-access_500.png
 create mode 100755 themes/finc-dbis/images/dbis-list-access_6.png
 create mode 100755 themes/finc-dbis/images/dbis-list-access_7.png
 create mode 100755 themes/finc-dbis/images/dbis-list-access_8.png
 create mode 100755 themes/finc-dbis/images/dbis-list-access_9.png
 create mode 100644 themes/finc-dbis/languages/de.ini
 create mode 100644 themes/finc-dbis/languages/en.ini
 create mode 100644 themes/finc-dbis/mixin.config.php
 create mode 100644 themes/finc-dbis/templates/finc/dbis/result.phtml
 create mode 100644 themes/finc-dbis/templates/js_code.txt
 create mode 100644 themes/worldcat/mixin.config.php
 create mode 100644 themes/worldcat/templates/ajax/worldcat.phtml
 create mode 100644 themes/worldcat/templates/js_code.txt

diff --git a/themes/boss/languages/de.ini b/themes/boss/languages/de.ini
new file mode 100644
index 00000000000..a9b72f815b2
--- /dev/null
+++ b/themes/boss/languages/de.ini
@@ -0,0 +1,9 @@
+boss_default = "Bitte geben Sie in Ihrem Profil eine Heimatbibliothek an, um Informationen zur Verfügbarkeit dieses Titels vor Ort zu erhalten."
+boss_true = "in Ihrer Bibliothek vorhanden"
+boss_false = "Nicht in Ihrer Heimatbibliothek vorhanden.<br/><br/>Ob der Titel per Fernleihe bestellbar ist, kann Ihnen Ihre Heimatbibliothek mitteilen."
+boss_noISXNZBD = "Für diesen Titel können wir derzeit leider keine weiteren Informationen zur Verfügbarkeit bereitstellen.<br/><br/>Ob der Titel per Fernleihe bestellbar ist, kann Ihnen Ihre Heimatbibliothek mitteilen."
+boss_note = "Wichtiger Hinweis"
+boss_holding = "Exemplar in meiner Bibliothek vorhanden?"
+boss_callnumber = "Signatur"
+boss_networknotice_headline = "Hinweis für Nutzende aus Österreich und der Schweiz"
+boss_networknotice_text = "Die automatische Verfügbarkeitsabfrage ist für Bibliotheken aus Österreich und der Schweiz nicht verfügbar. Bitte klicken Sie auf den Button „Exemplar in meiner Bibliothek vorhanden?“ und Sie werden zum jeweiligen Verbundkatalog Ihres Landes weitergeleitet, der Ihnen anzeigt, ob der Titel in Ihrer Bibliothek vorhanden ist."
diff --git a/themes/boss/languages/en.ini b/themes/boss/languages/en.ini
new file mode 100644
index 00000000000..5b4ce4e98eb
--- /dev/null
+++ b/themes/boss/languages/en.ini
@@ -0,0 +1,9 @@
+boss_default = "Please add a home library in your profile to obtain information about the availability of this title on site."
+boss_true = "available in your library"
+boss_false = "Not available in your home library.<br/><br/>Your home library can tell you whether the title can be ordered by interlibrary loan."
+boss_noISXNZBD = "Unfortunately, we cannot provide any further information on availability for this title at the moment.<br/><br/>Your home library can tell you whether the title can be ordered by interlibrary loan."
+boss_note = "Important note"
+boss_holding = "Copy available in my library?"
+boss_callnumber = "Call number"
+boss_networknotice_headline = "Note for users from Austria and Switzerland"
+boss_networknotice_text = "The automatic availability check is not available for libraries from Austria and Switzerland. Please click on the button "Copy available in my library?" and you will be forwarded to the respective union catalogue of your country, which shows you whether the title is available in your library."
diff --git a/themes/boss/mixin.config.php b/themes/boss/mixin.config.php
new file mode 100644
index 00000000000..881ab67d036
--- /dev/null
+++ b/themes/boss/mixin.config.php
@@ -0,0 +1,2 @@
+<?php
+return [];
diff --git a/themes/boss/templates/ajax/boss-false.phtml b/themes/boss/templates/ajax/boss-false.phtml
new file mode 100644
index 00000000000..4e7e702684d
--- /dev/null
+++ b/themes/boss/templates/ajax/boss-false.phtml
@@ -0,0 +1,19 @@
+<!-- boss-module: ajax - boss-false -->
+<div>
+    <?php if ($this->homeLibrary): ?>
+        <?=$this->translate('boss_default')?>
+    <?php else: ?>
+        <?php if ($this->isISXNZBD): ?>
+            <?php if (!$this->isISIL && !$this->isAddNetwork): ?>
+                <?=$this->translate('boss_false')?>
+            <?php endif; ?>
+            <?php if ($this->isAddNetwork): ?>
+            <a href="<?=$this->url?>" target="_blank"><?=$this->translate('boss_holding')?></a><br/>
+            <a href="<?=$this->url('content-page', ['page' => 'networknotice'])?>" data-lightbox><?=$this->translate('boss_note')?></a>
+            <?php endif; ?>
+        <?php else: ?>
+            <?=$this->translate('boss_noISXNZBD')?>
+        <?php endif; ?>
+    <?php endif; ?>
+</div>
+<!-- boss-module: ajax - boss-false - END -->
\ No newline at end of file
diff --git a/themes/boss/templates/ajax/boss-true.phtml b/themes/boss/templates/ajax/boss-true.phtml
new file mode 100644
index 00000000000..e1e63a3618a
--- /dev/null
+++ b/themes/boss/templates/ajax/boss-true.phtml
@@ -0,0 +1,20 @@
+<!-- boss-module: ajax - boss-true -->
+<div>
+    <?php if ($this->homeLibrary): ?>
+        <?=$this->translate('boss_default')?>
+    <?php else: ?>
+        <?php if ($this->isISXNZBD): ?>
+        <a class="btn btn-primary pda-button full-order" href="<?=$this->url?>" target="_blank" rel="nofollow">
+            <?=$this->transEsc('boss_true')?>
+        </a>
+            <?php if (!empty($this->callnumber)): ?>
+          <div class="pda-part-text">
+              <?=$this->transEsc('boss_callnumber')?>: <?=implode(', ', $this->callnumber)?>
+          </div>
+            <?php endif; ?>
+        <?php else: ?>
+            <?=$this->translate('boss_noISXNZBD')?>
+        <?php endif; ?>
+    <?php endif; ?>
+</div>
+<!-- boss-module: ajax - boss-true - END -->
\ No newline at end of file
diff --git a/themes/boss/templates/ajax/boss.phtml b/themes/boss/templates/ajax/boss.phtml
new file mode 100644
index 00000000000..d8cfc5e512c
--- /dev/null
+++ b/themes/boss/templates/ajax/boss.phtml
@@ -0,0 +1,6 @@
+<!-- boss-module: ajax - boss -->
+<?php
+$value = $isISIL ? 'true' : 'false';
+?>
+<?=$this->render('ajax/boss-'.$value.'.phtml')?>
+<!-- boss-module: ajax - boss - END -->
\ No newline at end of file
diff --git a/themes/boss/templates/content/networknotice.phtml b/themes/boss/templates/content/networknotice.phtml
new file mode 100644
index 00000000000..558df73b4ac
--- /dev/null
+++ b/themes/boss/templates/content/networknotice.phtml
@@ -0,0 +1,9 @@
+<!-- boss-module: ajax - boss -->
+<div>
+  <strong><?=$this->transEsc('boss_networknotice_headline')?>:</strong>
+  <br/><br/>
+  <div class="boss-networknotice">
+      <?=$this->transEsc('boss_networknotice_text')?>
+  </div>
+</div>
+<!-- boss-module: ajax - boss - END -->
\ No newline at end of file
diff --git a/themes/boss/templates/js_code.txt b/themes/boss/templates/js_code.txt
new file mode 100644
index 00000000000..44ce51461ae
--- /dev/null
+++ b/themes/boss/templates/js_code.txt
@@ -0,0 +1,18 @@
+<? $script = <<<JS
+  $(document).ready(function() {
+      var recordId = $('.hiddenId').val();
+      var recordSource = $('.hiddenSource').val();
+      // console.log({id: recordId, source: recordSource});
+      $.ajax({
+        dataType: 'json',
+        url: VuFind.path + '/AJAX/JSON?method=getBoss',
+        method: 'GET',
+        data: {id: recordId, source: recordSource}
+      }).done(function(response) {
+          $('.boss').html(response.data.html);
+      });
+    });
+JS;
+?>
+<?=$this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, $script, 'SET');?>
+<div class="boss"></div>
\ No newline at end of file
diff --git a/themes/fid_adlr/scss/compiled.scss b/themes/fid_adlr/scss/compiled.scss
index 9f7067bb35c..64d1fd6e75a 100644
--- a/themes/fid_adlr/scss/compiled.scss
+++ b/themes/fid_adlr/scss/compiled.scss
@@ -1343,9 +1343,6 @@ header {
   }
 
   .nav-tabs {
-    border-bottom: 0;
-    margin-bottom: 30px;
-
     @media screen and (max-width: $screen-xs-max) {
       // parameter $is_collapsed, $is_mobile
       @include search-filter-styles(false, true);
@@ -1478,40 +1475,24 @@ header {
 }
 
 // ++++ SEARCH TABS
-// FIXME: Bitte default definieren und dann nur template-name-home als Sonderfall
-// FIXME: nav-tabs-/nav-tabs-open-Definitionen sortieren, auflösen und zuordnen
 .nav-tabs {
   border-bottom: 0;
+  margin-bottom: 30px;
 
-  body:not(.template-name-home) & {
-    border-bottom: 0;
-    margin-bottom: 30px;
-
-    @media screen and (min-width: $screen-sm-min) and (max-width: $screen-md-max) {
-      // note difference to xs - always show expanded options as tabs
-      // parameter $is_collapsed, $is_mobile
-      @include search-filter-styles(false, false);
+  &.open {
+    @media screen and (max-width: $screen-xs-max) {
+      @include search-filter-styles(true, true);
+    }
 
+    @media screen and (min-width: $screen-lg-min) {
+      @include search-filter-styles(true, false);
     }
   }
 
-  .nav-tabs.open {
-    body:not(.template-name-home) & {
-      @media screen and (max-width: $screen-xs-max) {
-        // note difference to sm - show tabs as select
-        // parameter $is_collapsed, $is_mobile
-        @include search-filter-styles(true, true);
-      }
-
-      @media screen and (min-width: $screen-lg-min) {
-        // note difference to sm - show tabs as select
-        // parameter $is_collapsed, $is_mobile
-        @include search-filter-styles(true, false);
-      }
-    }
+  @media screen and (min-width: $screen-sm-min) and (max-width: $screen-md-max) {
+    @include search-filter-styles(false, false);
   }
 }
-
 // ++++ SEARCH TABS - END
 
 // ++++ SEARCH BOX - END
@@ -1614,7 +1595,7 @@ input.searchForm_lookfor {
       // gear within search input
       height: $search-input-height-fixed;
       margin-left: -3em;
-      padding-top: 27px;
+      padding-top: .7em;
       position: absolute;
 
       @media screen and (max-width: $screen-xs-max) {
diff --git a/themes/finc-dbis/images/dbis-list-access_0.png b/themes/finc-dbis/images/dbis-list-access_0.png
new file mode 100755
index 0000000000000000000000000000000000000000..da593fb514beb0c1102b1450746c5511787d927c
GIT binary patch
literal 128
zcmeAS@N?(olHy`uVBq!ia0vp^GC<77#0(@IYo|;HQak}ZA+G=b|JU8b;Ns#E5D?Js
z`1Tc0oUtUxFPOpM*^M+HN6FL0F{I*Fa?DW%Hl6kS9{vx09y-GE&?vxbb4Qy|gkb^`
Z!}<j*hq(NYZwIPo@O1TaS?83{1ORQ^Ca(Yh

literal 0
HcmV?d00001

diff --git a/themes/finc-dbis/images/dbis-list-access_1.png b/themes/finc-dbis/images/dbis-list-access_1.png
new file mode 100755
index 0000000000000000000000000000000000000000..79d2a288af3120f484b1e3f52b2fd73388837a8e
GIT binary patch
literal 167
zcmeAS@N?(olHy`uVBq!ia0vp^GC<7F!VDx?6E{r)QU(D&A+G=b|95e5`Tw6GAiyCY
zAOI+gAEZp-T?kacSQ6wH%;50sMjDW#>gnPbQgJI;B*lSE=f6Dzr=>#odnRUPW#KNB
h!w!X#fwG=L3=Fj~%-Sh_dZi%qJzf1=);T3K0RU!>BDeqm

literal 0
HcmV?d00001

diff --git a/themes/finc-dbis/images/dbis-list-access_12.png b/themes/finc-dbis/images/dbis-list-access_12.png
new file mode 100755
index 0000000000000000000000000000000000000000..49e884af2761d8f912d62e1bf21d3db7b8df56d2
GIT binary patch
literal 167
zcmeAS@N?(olHy`uVBq!ia0vp^GC<7F!VDx?6E{r)QU(D&A+G=b|95e5`Tw8cKLbNR
zfI~n)08j=Gn7+EK2`J52666=m;PC858jz#v>EaktaVuFQ#eq%dzrBIMhEq(DT@J_W
k)kHko8Xp-gvYMpAz>s!>CHg`@(i4#3p00i_>zopr0D`|M2mk;8

literal 0
HcmV?d00001

diff --git a/themes/finc-dbis/images/dbis-list-access_2.png b/themes/finc-dbis/images/dbis-list-access_2.png
new file mode 100755
index 0000000000000000000000000000000000000000..cedaec251181abdeb45ca380b961d4eec2a7bd9c
GIT binary patch
literal 125
zcmeAS@N?(olHy`uVBq!ia0vp^GC<7F#0(_66y1%06i<Lpi0l9V{~2;`y12Lm1O&*=
zTx9_iXDkWw3ubV5b|VeQk@s|Q45_%49CMU`P3O84kKTtW10%;BJX0?91QZuCGW6@R
VNX}?`IR~he!PC{xWt~$(697~CBCr4e

literal 0
HcmV?d00001

diff --git a/themes/finc-dbis/images/dbis-list-access_3.png b/themes/finc-dbis/images/dbis-list-access_3.png
new file mode 100755
index 0000000000000000000000000000000000000000..ae45e8802e257e71838e6aeb4430ff6aeb867081
GIT binary patch
literal 354
zcmeAS@N?(olHy`uVBq!ia0vp^GC<7F!3-o1OpKolq?n7HJVQ7*IBq}me*okf2l#}z
zy12Of=V$o;pW**{hX45t|NR;MpJDiK&+xyV;s1Mv|MMCC8#DaB&+tE<;s1Vy|MEbU
z{~Hv3X9KkhmIV0)1Gy-GL3QoSB%mZ`fk$L90|U1Z2s2)~TlWVjC|2ScQQ};bnpl#V
zpQjL#nVZUBV5Dzosc&d<JtkEfs6qy$A~-*-q&%@GmBBG3KPgqgEwd=KJijQrSiw2i
z?8Tl<JwSEwo-U3d5>w}1xX9O_z`+`zEaKz(|9^J!+8E)_3wIwpeY2L~`LxFKdjeHn
zz1XC|DY?){-Av;3RRvjnWv)Zb)_o`L1n$Y4*2mt@VR~mqu$e^1iUZ56&%B#sn>cmb
ciFzBxDOMb3l-=wX0<B{3boFyt=akR{04Pz3ivR!s

literal 0
HcmV?d00001

diff --git a/themes/finc-dbis/images/dbis-list-access_300.png b/themes/finc-dbis/images/dbis-list-access_300.png
new file mode 100755
index 0000000000000000000000000000000000000000..33e4168aa1a6834168085a03c574ac06b0355ef2
GIT binary patch
literal 339
zcmeAS@N?(olHy`uVBq!ia0vp^GC<7F!3-o1OpKolq?n7HJVQ7*IBq}me*ol~1^9%x
zy12OfXJGjMpW**{hX45t|Lqz6zi0Sw%<%s{!~cGU|M3j}`5FH2XZT;w@c#_M|M?96
z<$;R-Z`myH3}}K-NswPKkc$c!9_`;R1eE10@Q5sCVBiL_xrG=n-L3lr6cj6QjVN(0
zN=+=u%+FH@$;?e<Ffh_LwA42=xgL|M4OAfmQW2b=R#Ki=l*-_klAn~S;FejGTAp8&
zU98|7Z1!T$rXHX=A5Ry@5Q(XC&w27S81Oh>R8wU(N!;;2HPLh89M<~ZDyP>@HOz7H
zohZ66!d|Sw+HwwWl~BXJxik4D8W{C|zpDQ&QH>)~x#ZZY)i3Pty?xKo?=|OjC(v95
MPgg&ebxsLQ0JDCBE&u=k

literal 0
HcmV?d00001

diff --git a/themes/finc-dbis/images/dbis-list-access_4.png b/themes/finc-dbis/images/dbis-list-access_4.png
new file mode 100755
index 0000000000000000000000000000000000000000..49e884af2761d8f912d62e1bf21d3db7b8df56d2
GIT binary patch
literal 167
zcmeAS@N?(olHy`uVBq!ia0vp^GC<7F!VDx?6E{r)QU(D&A+G=b|95e5`Tw8cKLbNR
zfI~n)08j=Gn7+EK2`J52666=m;PC858jz#v>EaktaVuFQ#eq%dzrBIMhEq(DT@J_W
k)kHko8Xp-gvYMpAz>s!>CHg`@(i4#3p00i_>zopr0D`|M2mk;8

literal 0
HcmV?d00001

diff --git a/themes/finc-dbis/images/dbis-list-access_5.png b/themes/finc-dbis/images/dbis-list-access_5.png
new file mode 100755
index 0000000000000000000000000000000000000000..d49dffa53d8bbd9ebb21ed22debb7a37966c1a00
GIT binary patch
literal 167
zcmeAS@N?(olHy`uVBq!ia0vp^GC<7F!VDx?6E{r)QU(D&A+G=b|95e5`M;kbz{epV
zAOI+gAM`rO8vs=>mIV0)GdMiEkp|?bdb&7<RNP7yNpWD)`ESp_X{pfto{5=RS-4B(
gutT9_psc4514C^Lvv!J~UMa|YPgg&ebxsLQ03Qz_>;M1&

literal 0
HcmV?d00001

diff --git a/themes/finc-dbis/images/dbis-list-access_500.png b/themes/finc-dbis/images/dbis-list-access_500.png
new file mode 100755
index 0000000000000000000000000000000000000000..e0f80a4e87dda808a24ae9d5a0d52fe4af665469
GIT binary patch
literal 220
zcmeAS@N?(olHy`uVBq!ia0vp^GC<7F!VDx?6E{r)QU(D&A+G=b|95qD{?E_w|3Ab3
z^$h>>8UEWd{J+oee?G&1V}}1{82<Y+{NK;;zn<a$dxrn=40@Vnnn1mbB|(0{3=Yq3
zqyafmo-U3d6}OT_QXJTHe7HRJ)cYiK6+dI+kUx|vc8B$$5m&Q_@&BhUG#E6~o(VCm
z{Q3X;F?NN&^EtCP+?giDv9;NAX~Z076{uD$Qj_;rDwI6$Bx<<GYLW^AgSVRC8XbdA
ROh8*0JYD@<);T3K0RU6AN&x@>

literal 0
HcmV?d00001

diff --git a/themes/finc-dbis/images/dbis-list-access_6.png b/themes/finc-dbis/images/dbis-list-access_6.png
new file mode 100755
index 0000000000000000000000000000000000000000..9943d02f337a73a6399be30518d5e01be497297c
GIT binary patch
literal 209
zcmeAS@N?(olHy`uVBq!ia0vp^GC<7F!VDx?6E{r)QU(D&A+G=b|95e5`QO0!f066|
zL#+V;0sp6H{cq*|ztjt;1QYz-JLM2il(8hpFPOpM*^M+H$KTV%F{I*FvPg;pBa_3K
zQwNqD5MW3#FmhyxWDZDaWY9UyBv$;d`Uu0B290ax3IBM~98&cE{XO07tA8bB8w;Dt
mUY>fs1qF%Uj22l=5@BHI=;YcFZ=s?Avfb0w&t;ucLK6UL7(oR9

literal 0
HcmV?d00001

diff --git a/themes/finc-dbis/images/dbis-list-access_7.png b/themes/finc-dbis/images/dbis-list-access_7.png
new file mode 100755
index 0000000000000000000000000000000000000000..315eda9490a23f7ece8de55bec1b175de93c866a
GIT binary patch
literal 223
zcmeAS@N?(olHy`uVBq!ia0vp^GC<7F!VDx?6E{r)QU(D&A+G=b|95e5`QOO!|3Ab3
zMGXG_4*w4UN&o+?4F9Jv1b~18P%Rv6j{k56$YCrA@(X5gcy=QV$cgoIaSW-rl`N9t
zz;;GPzV1&#kZ{7JH_;y+ANN<Aa3h{=8%rCjf|#(&#rM1dvsitk{_WQ}&@dr1Frmn4
z(%#Si@7w9Ie79jf9IdCaxIs<%W$F)0##ZjhsV=1|o(v4xX`<8DUTvHQa)PI;pUXO@
GgeCy~A4_-u

literal 0
HcmV?d00001

diff --git a/themes/finc-dbis/images/dbis-list-access_8.png b/themes/finc-dbis/images/dbis-list-access_8.png
new file mode 100755
index 0000000000000000000000000000000000000000..ae45e8802e257e71838e6aeb4430ff6aeb867081
GIT binary patch
literal 354
zcmeAS@N?(olHy`uVBq!ia0vp^GC<7F!3-o1OpKolq?n7HJVQ7*IBq}me*okf2l#}z
zy12Of=V$o;pW**{hX45t|NR;MpJDiK&+xyV;s1Mv|MMCC8#DaB&+tE<;s1Vy|MEbU
z{~Hv3X9KkhmIV0)1Gy-GL3QoSB%mZ`fk$L90|U1Z2s2)~TlWVjC|2ScQQ};bnpl#V
zpQjL#nVZUBV5Dzosc&d<JtkEfs6qy$A~-*-q&%@GmBBG3KPgqgEwd=KJijQrSiw2i
z?8Tl<JwSEwo-U3d5>w}1xX9O_z`+`zEaKz(|9^J!+8E)_3wIwpeY2L~`LxFKdjeHn
zz1XC|DY?){-Av;3RRvjnWv)Zb)_o`L1n$Y4*2mt@VR~mqu$e^1iUZ56&%B#sn>cmb
ciFzBxDOMb3l-=wX0<B{3boFyt=akR{04Pz3ivR!s

literal 0
HcmV?d00001

diff --git a/themes/finc-dbis/images/dbis-list-access_9.png b/themes/finc-dbis/images/dbis-list-access_9.png
new file mode 100755
index 0000000000000000000000000000000000000000..79d2a288af3120f484b1e3f52b2fd73388837a8e
GIT binary patch
literal 167
zcmeAS@N?(olHy`uVBq!ia0vp^GC<7F!VDx?6E{r)QU(D&A+G=b|95e5`Tw6GAiyCY
zAOI+gAEZp-T?kacSQ6wH%;50sMjDW#>gnPbQgJI;B*lSE=f6Dzr=>#odnRUPW#KNB
h!w!X#fwG=L3=Fj~%-Sh_dZi%qJzf1=);T3K0RU!>BDeqm

literal 0
HcmV?d00001

diff --git a/themes/finc-dbis/languages/de.ini b/themes/finc-dbis/languages/de.ini
new file mode 100644
index 00000000000..7cb37a913d2
--- /dev/null
+++ b/themes/finc-dbis/languages/de.ini
@@ -0,0 +1,23 @@
+Dbis Access Legend = "Bedeutung der Zugangssymbole (Legende)"
+
+Dbis Adress- und Firmenverzeichnis = "Adress- und Firmenverzeichnis"
+Dbis Allgemeines Auskunftsmittel = "Allgemeines Auskunftsmittel"
+Dbis Aufsatzdatenbank = "Aufsatzdatenbank"
+Dbis Bestandsverzeichnis = "Bestandsverzeichnis"
+Dbis Bilddatenbank = "Bilddatenbank"
+Dbis Biographische Datenbank = "Biographische Datenbank"
+Dbis Buchhandelsverzeichnis = "Buchhandelsverzeichnis"
+Dbis Dissertationsverzeichnis = "Dissertationsverzeichnis"
+Dbis Fachbibliographie = "Fachbibliographie"
+Dbis Faktendatenbank = "Faktendatenbank"
+Dbis National-, Regionalbibliographie = "National-, Regionalbibliographie"
+Dbis Portal = "Portal"
+Dbis Volltextdatenbank = "Volltextdatenbank"
+Dbis W&ouml;rterbuch, Enzyklop&auml;die, Nachschlagewerk = "W&ouml;rterbuch, Enzyklop&auml;die, Nachschlagewerk"
+Dbis Zeitung = "Zeitung"
+Dbis Zeitungs-, Zeitschriftenbibliographie = "Zeitungs-, Zeitschriftenbibliographie"
+
+dbis_access_0 = "frei zugänglich"
+dbis_access_1 = "frei zugänglich"
+dbis_access_500 = "frei zugänglich (deutschlandweit, DFG-geförderte Nationallizenz)"
+dbis_access_2 = "nur für Mitglieder der Universität nutzbar (nur von Rechnern im Campus)"
\ No newline at end of file
diff --git a/themes/finc-dbis/languages/en.ini b/themes/finc-dbis/languages/en.ini
new file mode 100644
index 00000000000..b1f0029c412
--- /dev/null
+++ b/themes/finc-dbis/languages/en.ini
@@ -0,0 +1,23 @@
+Dbis Access Legend = "Legend of access icons"
+
+Dbis Adress- und Firmenverzeichnis = "Address and company directory"
+Dbis Allgemeines Auskunftsmittel = "General information resource"
+Dbis Aufsatzdatenbank = "Essay database"
+Dbis Bestandsverzeichnis = "Inventory"
+Dbis Bilddatenbank = "Image database"
+Dbis Biographische Datenbank = "Biographical database"
+Dbis Buchhandelsverzeichnis = "Bookstore directory"
+Dbis Dissertationsverzeichnis = "Dissertation directory"
+Dbis Fachbibliographie = "Department of Bibliography"
+Dbis Faktendatenbank = "Facts database"
+Dbis National-, Regionalbibliographie = "National and regional bibliography"
+Dbis Portal = "Portal"
+Dbis Volltextdatenbank = "Full text database"
+Dbis W&ouml;rterbuch, Enzyklop&auml;die, Nachschlagewerk = "Dictionary, encyclopedia, reference book"
+Dbis Zeitung = "Newspaper"
+Dbis Zeitungs-, Zeitschriftenbibliographie = "Newspaper and magazine bibliography"
+
+dbis_access_0 = "freely accessible"
+dbis_access_1 = "freely accessible"
+dbis_access_500 = "freely accessible within Germany (DFG-funded national license)"
+dbis_access_2 = "can only be used by members of the university (only from devices on campus)"
diff --git a/themes/finc-dbis/mixin.config.php b/themes/finc-dbis/mixin.config.php
new file mode 100644
index 00000000000..80ebbc69cbd
--- /dev/null
+++ b/themes/finc-dbis/mixin.config.php
@@ -0,0 +1,23 @@
+<?php
+/**
+ * Copyright (C) 2019 Leipzig University Library
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * @author   Gregor Gawol <gawol@ub.uni-leipzig.de>
+ * @author   Sebastian Kehr <kehr@ub.uni-leipzig.de>
+ * @license  http://opensource.org/licenses/gpl-2.0.php NU GPLv2
+ */
+
+return [];
diff --git a/themes/finc-dbis/templates/finc/dbis/result.phtml b/themes/finc-dbis/templates/finc/dbis/result.phtml
new file mode 100644
index 00000000000..67fbc9f6b3c
--- /dev/null
+++ b/themes/finc-dbis/templates/finc/dbis/result.phtml
@@ -0,0 +1,32 @@
+<!-- dbis-module: ajax - dbis -->
+<div class="dbis openurls">
+  <h5><?= $this->transEsc('Dbis Access Legend') ?></h5>
+  <ul>
+      <? /** @var finc\Dbis\Model\Api\DbAccessInfo $accessInfo */ ?>
+      <? foreach ($this->result->getDbAccessInfos()->getDbAccessInfo() as $accessInfo): ?>
+        <li>
+          <img title="<?= $this->translate("dbis_" . $accessInfo->getAccessId()) ?>" src="<?= $this->imageLink("dbis-list-" . $accessInfo->getAccessId() . ".png") ?>" alt="<?= $accessInfo->getDbAccessShortText() ?>"/> <?= $accessInfo->getDbAccess() ?>
+        </li>
+      <? endforeach; ?>
+  </ul>
+
+    <? /** @var finc\Dbis\Model\View\Group $group */ ?>
+    <? foreach ($this->result as $group): ?>
+      <br />
+      <h4><?= $this->translate('Dbis ' . $group->getName()) ?></h4>
+      <ul>
+          <? foreach ($group as $item) : ?>
+            <li>
+          <span  <?= (!empty($item->getAccessText()) ? 'data-toggle="tooltip" data-html="true" title="' . $item->getAccessText() . '"' : "") ?>
+                class="dbis-list-accessinfo-<?= $item->getDb()->getAccessRef() ?>">
+            <img src="<?= $this->imageLink('dbis-list-' . $item->getDb()->getAccessRef() . '.png') ?>" alt="Image 1"/>
+          </span>
+              <a href="<?= $item->getUrl() ?>" target="_blank">
+                  <?= $item->getName() ?>
+              </a>
+            </li>
+          <? endforeach; ?>
+      </ul>
+    <? endforeach; ?>
+</div>
+<!-- dbis-module: ajax - dbis - END -->
\ No newline at end of file
diff --git a/themes/finc-dbis/templates/js_code.txt b/themes/finc-dbis/templates/js_code.txt
new file mode 100644
index 00000000000..b5289f97574
--- /dev/null
+++ b/themes/finc-dbis/templates/js_code.txt
@@ -0,0 +1,25 @@
+<? $script = <<<JS
+  $(document).ready(function() {
+      // var link = document;
+      // var target = $(link).closest('.record');
+      // var recordId = target.find('.hiddenId').val();
+      // var recordSource = target.find('.hiddenSource').val();
+      // console.log({
+      //   recordId, recordSource
+      // });
+      // console.log({id: recordId, source: recordSource});
+      $.ajax({
+        dataType: 'json',
+        // some dbis ids differ from bibid (for example by underscore)
+        // to enable | disable id mapping within package from basic bibId to DBIS bibId set 'map_bibid_to_dbis' 1 | 0
+        url: VuFind.path + '/AJAX/JSON?method=getDbis&map_bibid_to_dbis=1',
+        method: 'GET'//,
+        // data: {id: recordId, source: recordSource}
+      }).done(function(response) {
+          $('.dbis').html(response.data.html);
+      });
+    });
+JS;
+?>
+<?=$this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, $script, 'SET');?>
+<div class="dbis"></div>
\ No newline at end of file
diff --git a/themes/worldcat/mixin.config.php b/themes/worldcat/mixin.config.php
new file mode 100644
index 00000000000..881ab67d036
--- /dev/null
+++ b/themes/worldcat/mixin.config.php
@@ -0,0 +1,2 @@
+<?php
+return [];
diff --git a/themes/worldcat/templates/ajax/worldcat.phtml b/themes/worldcat/templates/ajax/worldcat.phtml
new file mode 100644
index 00000000000..a1909ed3ca3
--- /dev/null
+++ b/themes/worldcat/templates/ajax/worldcat.phtml
@@ -0,0 +1,16 @@
+<!-- finc: ajax - worldcat -->
+<div>
+  <? if (!empty($this->data)): ?>
+    <div class="openurls">
+      <ul>
+        <? foreach ($this->data as $link): ?>
+          <li>
+            <a href="<?=$link['url']?>" target="_blank"><?=$link['name']?></a>
+          </li>
+        <? endforeach; ?>
+      </ul>
+    </div>
+  <? endif; ?>
+</div>
+
+<!-- finc: ajax - worldcat - END -->
diff --git a/themes/worldcat/templates/js_code.txt b/themes/worldcat/templates/js_code.txt
new file mode 100644
index 00000000000..a10ff88fb86
--- /dev/null
+++ b/themes/worldcat/templates/js_code.txt
@@ -0,0 +1,18 @@
+<? $script = <<<JS
+  $(document).ready(function() {
+      var recordId = $('.hiddenId').val();
+      var recordSource = $('.hiddenSource').val();
+      // console.log({id: recordId, source: recordSource});
+      $.ajax({
+        dataType: 'json',
+        url: VuFind.path + '/AJAX/JSON?method=getWorldCat',
+        method: 'GET',
+        data: {id: recordId, source: recordSource}
+      }).done(function(response) {
+          $('.worldcat').html(response.data.html);
+      });
+    });
+JS;
+?>
+<?=$this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, $script, 'SET');?>
+<div class="worldcat"></div>
\ No newline at end of file
-- 
GitLab