From d281e08a1eadd08351c7042432f80bcccf0b08a4 Mon Sep 17 00:00:00 2001 From: Heike Reinken <reinken@ub.uni-leipzig.de> Date: Fri, 18 Sep 2020 13:25:34 +0200 Subject: [PATCH] refs #17407 [fid_bbi] List resources/sources via amsl.api * Add new conf file Amsl.ini to fid_bbi ** Set related url to the resource for DE-23 ** Set mappings for main_key and sub_key * Place the link to the resources within the footer.phtml * Auxillary translations * Set isil to FID-BBI-DE-23 in Amsl.ini refs #17407 [fid_bbi] Remove library specific AMSL changes which are just solved in finc * Remove file amsl/sources-list.phtml * Remove block AMSL from compiled.scss --- fid_bbi/config/vufind/Amsl.ini | 40 +++++++++++++++++++++++++++ fid_bbi/languages/de.ini | 5 +++- fid_bbi/languages/en.ini | 5 +++- themes/fid_bbi/templates/footer.phtml | 39 ++++++++++++++------------ 4 files changed, 69 insertions(+), 20 deletions(-) create mode 100644 fid_bbi/config/vufind/Amsl.ini diff --git a/fid_bbi/config/vufind/Amsl.ini b/fid_bbi/config/vufind/Amsl.ini new file mode 100644 index 00000000000..2013d047618 --- /dev/null +++ b/fid_bbi/config/vufind/Amsl.ini @@ -0,0 +1,40 @@ +;#################################################################### +;##################### DO NOT DELETE THIS HEADER #################### +;################### Leipzig University Library © 2020 ############## +; +; This is the ISIL-instance-specific default INI-file and inherits +; all the settings from the INI-file defined in [Parent_Config] which +; points to the default INI-file located in the folder vufind2/local +; + +[Parent_Config] +;relative_path = ../../../local/config/vufind/Amsl.ini + +; A comma-separated list of config sections from the parent which should be +; completely overwritten by the equivalent sections in this configuration; +; any sections not listed here will be merged on a section-by-section basis. +;override_full_sections = "Languages,AlphaBrowse_Types" + +; +; Add instance-specific customization after this header. +; +;##################### DO NOT DELETE THIS HEADER #################### +;#################################################################### + +[API] +;url = "https://live.amsl.technology/inhouseservices/list?do=catalog_metadataList&isil=DE-23" +url = "https://live.amsl.technology/inhouseservices/list?do=catalog_metadataList&isil=FID-BBI-DE-23" +response_type = 'application/json' + +; Contains label patterns for two layers of source hierarchy +; these will normally be source and collection represented by main_label and sub_label, resp. +; use array_keys in double percent signs to be rendered in the labels +; the main label MUST contain the main key and the main key SHOULD identify the source +; same for the sub key and label +[Mapping] +main_key = 'source_id' +main_label = '%%source_id%%: %%source_label%%' +default_main_label = 'untitled source' +sub_key = 'collection_label' +sub_label = '%%collection_label%%' +default_sub_label = 'untilted collection' diff --git a/fid_bbi/languages/de.ini b/fid_bbi/languages/de.ini index 2ecbdb61830..186fff5d1fa 100644 --- a/fid_bbi/languages/de.ini +++ b/fid_bbi/languages/de.ini @@ -468,4 +468,7 @@ add_tag_success = "Tags gespeichert. Beachten Sie, dass Tags nach einer Woche ö Open Access = Kostenfrei Zugänglich #16470 -Link to WorldCat record = "Link zum Datensatz des WorldCat" \ No newline at end of file +Link to WorldCat record = "Link zum Datensatz des WorldCat" + +; #17407 +Amsl_Resources = "Liste der Datenquellen" diff --git a/fid_bbi/languages/en.ini b/fid_bbi/languages/en.ini index 9066bde008e..604f5bfed92 100644 --- a/fid_bbi/languages/en.ini +++ b/fid_bbi/languages/en.ini @@ -461,4 +461,7 @@ add_tag_success = "Tags saved. Please remember that tags will be publicly visibl Open Access = Free Access #16470 -Link to WorldCat record = "Link to WorldCat record" \ No newline at end of file +Link to WorldCat record = "Link to WorldCat record" + +; #17407 +Amsl_Resources = "List of metadata sources" diff --git a/themes/fid_bbi/templates/footer.phtml b/themes/fid_bbi/templates/footer.phtml index 7a666c505a8..f3aa5f6148b 100644 --- a/themes/fid_bbi/templates/footer.phtml +++ b/themes/fid_bbi/templates/footer.phtml @@ -1,21 +1,24 @@ -<!-- finc: footer --> +<!-- fid-bbi: footer --> +<?php /* Add link to Resources - #17407 - HR */?> + <footer class="hidden-print"> <div class="footer-container"> <div class="footer-column"> <p><strong><?=$this->transEsc('Search Options')?></strong></p> <ul> - <li><a href="<?=$this->url('search-advanced')?>"><?=$this->transEsc('Advanced Search')?></a></li> - <li><a href="<?=$this->url('search-sources')?>"><?=$this->transEsc('Data Collection')?></a></li> - <li><a data-toggle="collapse" data-target="#searchbox-snippet"><?=$this->transEsc('embed_searchbox_button')?></a></li> + <li><a href="<?=$this->url('search-advanced')?>"><?=$this->transEsc('Advanced Search')?></a></li> + <li><a href="<?=$this->url('search-sources')?>"><?=$this->transEsc('Data Collection')?></a></li> + <li><a data-toggle="collapse" data-target="#searchbox-snippet"><?=$this->transEsc('embed_searchbox_button')?></a></li> + <li><a href="<?=$this->url('resources')?>"><?=$this->translate('Amsl_Resources')?></a></li> </ul> </div> <div class="footer-column"> <p><strong><?=$this->transEsc('More Information')?></strong></p> <ul> - <li><a href="<?=$this->url('content-page', ['page' => 'about'])?>"><?=$this->transEsc('About Us')?></a></li> - <li><a href="<?=$this->url('content-page', ['page' => 'faq'])?>"><?=$this->transEsc('FAQs')?></a></li> - <li><a href="<?=$this->url('fid/user/terms')?>"><?=$this->transEsc('Terms of Use')?></a></li> - <li><a href="<?=$this->url('fid/user/policy')?>"><?=$this->transEsc('Privacy Policy')?></a></li> + <li><a href="<?=$this->url('content-page', ['page' => 'about'])?>"><?=$this->transEsc('About Us')?></a></li> + <li><a href="<?=$this->url('content-page', ['page' => 'faq'])?>"><?=$this->transEsc('FAQs')?></a></li> + <li><a href="<?=$this->url('fid/user/terms')?>"><?=$this->transEsc('Terms of Use')?></a></li> + <li><a href="<?=$this->url('fid/user/policy')?>"><?=$this->transEsc('Privacy Policy')?></a></li> </ul> </div> <div class="footer-column"> @@ -26,20 +29,20 @@ <?=$this->transEsc('Email')?>: <a data-lightbox href="<?=$this->url('feedback-home')?>">fid@hab.de</a></p> </div> <?php if ($this->permission()->allowDisplay('fid.ReadList')): ?> - <div class="footer-column"> - <p><strong><?=$this->transEsc('fid::admin_section')?></strong></p> - <p><a href="<?=$this->url('fid/admin/list')?>"><?=$this->transEsc('fid::permission_read_user_list')?></a></p> - <p><a href="<?=$this->url('admin/tags', ['action' => 'List'])?>"><?=$this->transEsc('Tag Management')?></a></p> - </div> + <div class="footer-column"> + <p><strong><?=$this->transEsc('fid::admin_section')?></strong></p> + <p><a href="<?=$this->url('fid/admin/list')?>"><?=$this->transEsc('fid::permission_read_user_list')?></a></p> + <p><a href="<?=$this->url('admin/tags', ['action' => 'List'])?>"><?=$this->transEsc('Tag Management')?></a></p> + </div> <?php endif; ?> </div> <pre id="searchbox-snippet" class="collapse"> -<strong><?=$this->transEsc('embed_searchbox_help',["%%bbi_url%%" => $this->url('home',[],['force_canonical'=>true])])?></strong> - <?=$this->escapeHtml('<!-- Search BBI --> - <form method="get" action="'.$this->url('search-results',[],['force_canonical'=>true]).'" name="bbisearch"> + <strong><?=$this->transEsc('embed_searchbox_help',["%%bbi_url%%" => $this->url('home',[],['force_canonical'=>true])])?></strong> + <?=$this->escapeHtml('<!-- Search BBI --> + <form method="get" action="'.$this->url('search-results',[],['force_canonical'=>true]).'" name="bbisearch"> <input type="text" name="lookfor" class="inputbox" value=""> <input type="submit" name="btnBBI" value="BBI-Suche"> - </form> + </form> <!-- Search BBI - END -->')?></pre> <?php /* finc branding footer */ ?> <hr> @@ -55,4 +58,4 @@ <?php if ($this->fidisStatus): ?> <div class="fidis-status"><?=$this->fidisStatus?></div> <?php endif; ?> -<!-- finc: Footer - END --> +<!-- fid-bbi: Footer - END --> -- GitLab