Skip to content

Commit

Permalink
more then one collection for newspaper
Browse files Browse the repository at this point in the history
  • Loading branch information
BFallert committed Jan 9, 2025
1 parent 56f577c commit 8827c64
Showing 1 changed file with 45 additions and 14 deletions.
59 changes: 45 additions & 14 deletions Resources/Private/Partials/Metadata/Entries.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,30 @@
<f:comment>Clear Name of Collection</f:comment>
<f:if condition="{configObject.indexName} == 'collection'">
<f:then>
<f:variable name="collectionClearName" value="{documentMetadataSection.{configObject.indexName}}" />
<f:variable name="collectionClearNameString" value="{documentMetadataSection.{configObject.indexName}}" />
<f:variable name="collectionClearNameNewArray" value="" />
<v:iterator.explode content="{collectionClearNameString}" glue="</dd><dd>" as="part">
<f:comment><f:debug>{part}</f:debug></f:comment>
<f:variable name="collectionClearNameNewArray" value="{part}" />
</v:iterator.explode>
<f:comment><f:debug>two</f:debug></f:comment>
<f:comment><f:debug>{collectionClearNameNewArray}</f:debug></f:comment>
</f:then>
</f:if>
<f:comment>collection_new kommt vom Metadata-Eintrag, d.h. mods:relatedItem type series</f:comment>
<f:if condition="{configObject.indexName} == 'collection_new'">
<f:then>
<f:variable name="collectionClearNameNew" value="{documentMetadataSection.{configObject.indexName}}" />
<f:debug>collection_new: {collectionClearNameNew}</f:debug>
<f:variable name="collectionClearNameNewString" value="{documentMetadataSection.{configObject.indexName}}" />
<f:variable name="collectionClearNameNewArray" value="" />
<f:comment>
<f:debug>collection_new: {collectionClearNameNewString}</f:debug>
<f:debug>{configObject.indexName}</f:debug>
<f:debug>{collectionClearNameNewString^}</f:debug>
<f:debug>{documentMetadataSection}</f:debug>
</f:comment>
<v:iterator.explode content="{collectionClearNameNewString}" glue="</dd><dd>" as="part">
<f:variable name="collectionClearNameNewArray" value="{part}" />
</v:iterator.explode>
</f:then>
</f:if>

Expand Down Expand Up @@ -168,6 +184,9 @@
<f:comment><f:variable name="basepath" value="/sammlungen/historische/cd/" /></f:comment>
<f:variable name="basepath" value="/sammlungen/" />

<f:for each="{collectionClearNameNewArray}" as="collectionClearName">
<f:comment><f:debug>{collectionClearName}</f:debug></f:comment>

<f:switch expression="{collectionClearName}">

<f:case value="Aktienführer & Saling's Börsenpapiere">
Expand Down Expand Up @@ -220,6 +239,9 @@
<f:case value="Historische Zeitungen">
<dd><a href="{basepath}zeitungen" title="Backlink zur Sammlung {collectionClearName}">{collectionClearName}</a></dd>
</f:case>
<f:case value="Reichsanzeiger und seine VorgängerzeitungenNNNK">
<dd><a href="{basepath}zeitungen" title="Backlink zur Sammlung {collectionClearName}">{collectionClearName}</a></dd>
</f:case>

<f:case value="Jesuitenkolleg">
<dd><a href="{basepath}jesuitenkolleg" title="Backlink zur Sammlung {collectionClearName}">{collectionClearName}</a></dd>
Expand Down Expand Up @@ -249,6 +271,7 @@
<!-- default Ende-->
</f:defaultCase>
</f:switch> <f:comment>expression="{collectionClearName}"></f:comment>
</f:for>
</f:case>
<f:case value="collection_new">
<f:comment>collection_new muss anders behandelt werden</f:comment>
Expand All @@ -264,17 +287,25 @@
<f:comment><f:variable name="basepath" value="/sammlungen/historische/cd/" /></f:comment>
<f:variable name="basepath" value="/sammlungen/" />

<!-- 266 {configObject.indexName } -->
<f:switch expression="{collectionClearNameNew}">
<f:case value="historische Zeitungen">
<dd><a href="{basepath}zeitungen" title="NBacklink zur Sammlung {collectionClearNameNew}">{collectionClearNameNew}</a></dd>
</f:case>
<f:defaultCase>
<!-- default Beginn -->
{wrappedValues -> f:format.raw()}
<!-- default Ende-->
</f:defaultCase>
</f:switch> <f:comment>expression="{collectionClearName}"></f:comment>
<!-- 266 {configObject.indexName} {collectionClearNameNew} -->
<f:debug>{collectionClearNameNewArray}</f:debug>
<f:for each="{collectionClearNameNewArray}" as="collectionClearName">
<f:switch expression="{collectionClearName}">
<f:case value="historische Zeitungen">
<!-- 295 {collectionClearName} -->
<dd><a href="{basepath}zeitungen" title="NBacklink zur Sammlung {collectionClearName}">{collectionClearName}</a></dd>
</f:case>
<f:case value="Reichsanzeiger und seine VorgängerzeitungenNNN">
<!-- 299 {collectionClearName} -->
<dd><a href="{basepath}zeitungen" title="NBacklink zur Sammlung {collectionClearName}">{collectionClearName}</a></dd>
</f:case>
<f:defaultCase>
<!-- default Beginn -->
{wrappedValues -> f:format.raw()}
<!-- default Ende-->
</f:defaultCase>
</f:switch> <f:comment>expression="{collectionClearName}"></f:comment>
</f:for>
</f:case>
<f:defaultCase>
<!-- 247 {configObject.indexName } -->
Expand Down

0 comments on commit 8827c64

Please sign in to comment.