Skip to content
Snippets Groups Projects
Commit afc27f88 authored by Robert Lange's avatar Robert Lange
Browse files

refs #21611 [finc] vf6 RecordTabs: use RecordTabs.ini and CollectionTabs.ini...

refs #21611 [finc] vf6 RecordTabs: use RecordTabs.ini and CollectionTabs.ini instead of module.config

* SolrAI, use .ini instead of module.config
** also remove factory for StaffViewAI, but keep alias
** example record: ai-55-aHR0cHM6Ly93d3cuanN0b3Iub3JnL3N0YWJsZS80MTg1OTE1Mw
* SolrDefault, use .ini instead of module.config, example record: 66-986811
* SolrMarc, use .ini instead of module.config, example record for SolrMarc and HierarchyTree: 0-1753563739
* SolrMarcPDA, use .ini instead of module.config
** also remove factory configuration for AcquisitionPDA, but keep alias
** example record for SolrMarcPDA: 51-9783848749492
*SolrLido, use .ini instead of module.config
** also fix duplicate ending tag in SolrLido/core.phtml
** example record for SolrLido: finc-77-REUtMTUvbGlkby9vYmovMzMyMDM2Nzk
* SolrDico, use .ini instead of module.config
** example records for SolrDico: ZDB-175-V16 | sid-77-col-portraitstich
** collection aren't active in finc - must be tested in de_15
parent 4d34e55e
No related merge requests found
;####################################################################
;##################### DO NOT DELETE THIS HEADER ####################
;################### Leipzig University Library © 2022 ##############
;
; 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 = ../../../config/vufind/CollectionTabs.ini
; This file controls the tab display in the Collection view (as opposed to the
; single record view). The structure is identical to RecordTabs.ini; see the
; comments in that file for details on the meanings of the various settings.
[finc\RecordDriver\AbstractBase]
tabs[CollectionList] = CollectionList
tabs[HierarchyTree] = CollectionHierarchyTree
tabs[Details] = StaffViewArray
[finc\RecordDriver\SolrDico]
tabs[CollectionList] = CollectionList
tabs[HierarchyTree] = HierarchyTree
tabs[Details] = StaffViewArray
defaultTab = CollectionList
;####################################################################
;##################### DO NOT DELETE THIS HEADER ####################
;################### Leipzig University Library © 2022 ##############
;
; 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 = ../../../config/vufind/RecordTabs.ini
; This file controls the display of tabs on the Record page for various types of
; records. Each section name matches a record driver class name, and those settings
; will be used when displaying that type of record. If no settings are found for a
; particular class, its parent classes will be checked in turn; thus, you could set
; up global defaults using a [VuFind\RecordDriver\AbstractBase] section.
;
; Within each section, the following settings are supported:
;
; tabs[X] = Y -- This activates a tab, using "X" to identify that tab in the URL,
; and using a service named "Y" loaded from the RecordTab plugin
; manager. The order of tabs entries controls display order.
; defaultTab -- This matches an "X" value from a tabs setting, and controls which
; tab is active by default. If empty, the global default tab setting
; (defaultRecordTab) from config.ini will be used.
; backgroundLoadedTabs[] -- This repeatable setting can be used to identify tabs
; that should be asynchronously loaded in the background to improve
; performance. Use the "X" value from the tabs setting as the id.
[finc\RecordDriver\SolrDefault]
tabs[Holdings] = HoldingsILS
tabs[Description] = Description
tabs[TOC] = TOC
tabs[UserComments] = UserComments
tabs[Reviews] = Reviews
tabs[Excerpt] = Excerpt
tabs[Preview] = preview
tabs[HierarchyTree] = HierarchyTree
tabs[Map] = Map
tabs[Similar] = null
tabs[Details] = StaffViewArray
[finc\RecordDriver\SolrAI]
tabs[Holdings] = HoldingsILS
tabs[Description] = Description
tabs[TOC] = TOC
tabs[UserComments] = UserComments
tabs[Reviews] = Reviews
tabs[Excerpt] = Excerpt
tabs[Preview] = preview
tabs[HierarchyTree] = HierarchyTree
tabs[Map] = Map
tabs[Similar] = null
tabs[Details] = StaffViewAI
[finc\RecordDriver\SolrMarc]
tabs[Holdings] = HoldingsILS
tabs[Description] = Description
tabs[TOC] = TOC
tabs[UserComments] = UserComments
tabs[Reviews] = Reviews
tabs[Excerpt] = Excerpt
tabs[Preview] = preview
tabs[HierarchyTree] = HierarchyTree
tabs[Map] = Map
tabs[Similar] = null
tabs[Details] = StaffViewMARC
[finc\RecordDriver\SolrMarcFincPDA]
tabs[AcquisitionPDA] = AcquisitionPDA
tabs[Description] = Description
tabs[TOC] = TOC
tabs[UserComments] = UserComments
tabs[Reviews] = Reviews
tabs[Excerpt] = Excerpt
tabs[Preview] = preview
tabs[HierarchyTree] = HierarchyTree
tabs[Map] = Map
tabs[Similar] = null
tabs[Details] = StaffViewMARC
[finc\RecordDriver\SolrLido]
tabs[Holdings] = HoldingsILS
tabs[Description] = DescriptionLido
tabs[Reviews] = Reviews
tabs[Excerpt] = Excerpt
tabs[Preview] = preview
tabs[Map] = Map
tabs[Similar] = SimilarItemsCarousel
tabs[Details] = StaffViewArray
...@@ -192,10 +192,6 @@ $config = [ ...@@ -192,10 +192,6 @@ $config = [
], ],
'recordtab' => [ 'recordtab' => [
'factories' => [ 'factories' => [
'finc\RecordTab\StaffViewAI' => 'Zend\ServiceManager\Factory\InvokableFactory',
'finc\RecordTab\AcquisitionPDA' => 'Zend\ServiceManager\Factory\InvokableFactory',
'finc\RecordTab\Topics' => 'Zend\ServiceManager\Factory\InvokableFactory',
'finc\RecordTab\DescriptionLido' => 'Zend\ServiceManager\Factory\InvokableFactory',
'finc\RecordTab\HierarchyTree' => 'finc\RecordTab\HierarchyTreeFactory', 'finc\RecordTab\HierarchyTree' => 'finc\RecordTab\HierarchyTreeFactory',
], ],
'aliases' => [ 'aliases' => [
...@@ -247,86 +243,6 @@ $config = [ ...@@ -247,86 +243,6 @@ $config = [
], ],
], ],
], ],
'recorddriver_tabs' => [
'finc\RecordDriver\SolrDefault' => [
'tabs' => [
'Holdings' => 'HoldingsILS', 'Description' => 'Description',
'TOC' => 'TOC', 'UserComments' => 'UserComments',
'Reviews' => 'Reviews', 'Excerpt' => 'Excerpt',
'Preview' => 'preview',
'HierarchyTree' => 'HierarchyTree', 'Map' => 'Map',
'Similar' => null,
'Details' => 'StaffViewArray',
],
'defaultTab' => null,
],
'finc\RecordDriver\SolrMarc' => [
'tabs' => [
'Holdings' => 'HoldingsILS', 'Description' => 'Description',
'TOC' => 'TOC', 'UserComments' => 'UserComments',
'Reviews' => 'Reviews', 'Excerpt' => 'Excerpt',
'Preview' => 'preview',
'HierarchyTree' => 'HierarchyTree', 'Map' => 'Map',
'Similar' => null,
'Details' => 'StaffViewMARC',
],
'defaultTab' => null,
],
'finc\RecordDriver\SolrMarcFincPDA' => [
'tabs' => [
/* 'Holdings' => 'HoldingsILS',*/
'AcquisitionPDA' => 'AcquisitionPDA',
'Description' => 'Description',
'TOC' => 'TOC', 'UserComments' => 'UserComments',
'Reviews' => 'Reviews', 'Excerpt' => 'Excerpt',
'Preview' => 'preview',
'HierarchyTree' => 'HierarchyTree', 'Map' => 'Map',
'Similar' => null,
'Details' => 'StaffViewMARC',
],
'defaultTab' => null,
],
'finc\RecordDriver\SolrAI' => [
'tabs' => [
'Holdings' => 'HoldingsILS', 'Description' => 'Description',
'TOC' => 'TOC', 'UserComments' => 'UserComments',
'Reviews' => 'Reviews', 'Excerpt' => 'Excerpt',
'Preview' => 'preview',
'HierarchyTree' => 'HierarchyTree', 'Map' => 'Map',
'Similar' => null,
'Details' => 'StaffViewAI',
],
'defaultTab' => null,
],
'finc\RecordDriver\SolrLido' => [
'tabs' => [
'Holdings' => 'HoldingsILS', 'Description' => 'DescriptionLido',
'Reviews' => 'Reviews', 'Excerpt' => 'Excerpt',
'Preview' => 'preview', 'Map' => 'Map',
'Similar' => 'SimilarItemsCarousel',
'Details' => 'StaffViewArray',
],
'defaultTab' => null,
],
],
'recorddriver_collection_tabs' => [
'VuFind\RecordDriver\AbstractBase' => [
'tabs' => [
'CollectionList' => 'CollectionList',
'HierarchyTree' => 'CollectionHierarchyTree',
'Details' => 'StaffViewArray',
],
'defaultTab' => null,
],
'finc\RecordDriver\SolrDico' => [
'tabs' => [
'CollectionList' => 'CollectionList',
'HierarchyTree' => 'HierarchyTree',
'Details' => 'StaffViewArray',
],
'defaultTab' => 'CollectionList',
],
],
], ],
// Authorization configuration: // Authorization configuration:
'zfc_rbac' => [ 'zfc_rbac' => [
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
$preview = $this->record($this->driver)->getPreviews(); $preview = $this->record($this->driver)->getPreviews();
?> ?>
<?php if ($QRCode || $cover || $preview): ?> <?php if ($QRCode || $cover || $preview): ?>
<div class="media-left <?=$this->escapeHtmlAttr($coverDetails['size'])?> img-col"?>"> <div class="media-left <?=$this->escapeHtmlAttr($coverDetails['size'])?> img-col"?>
<?php /* Display thumbnail if appropriate: */ ?> <?php /* Display thumbnail if appropriate: */ ?>
<?php if ($cover): ?> <?php if ($cover): ?>
<?=$cover?> <?=$cover?>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment