Skip to content

Commit

Permalink
cleanup (remove debug statement,spaces,tabs,old comments)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernd Fallert committed Oct 16, 2024
1 parent 0b01f53 commit c9af941
Showing 1 changed file with 17 additions and 66 deletions.
83 changes: 17 additions & 66 deletions Resources/Private/Partials/Metadata/Entries.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,16 @@
<f:variable name="wrappedValues"><f:spaceless>
<f:if condition="{kitodo:isArray(subject: '{documentMetadataSection.{configObject.indexName}}')}">
<f:then>
<f:for each="{documentMetadataSection.{configObject.indexName}}" as="value" iteration="iterator">
<f:comment>
<f:debug>{configObject.indexName}</f:debug>
<f:debug>{value}</f:debug>
</f:comment>
<f:variable name="buildUrlVariable" value="{buildUrl.{sectionIterator.index}}" />
<f:if condition="{buildUrlVariable.{configObject.indexName}}">
<f:then>
<f:render partial="Metadata/LinkEntry" arguments="{_all}"/>
</f:then>
<f:else if="{externalUrlVariable.{configObject.indexName}}">
<f:render partial="Metadata/ExternalLinkEntry" arguments="{_all}"/>
</f:else>
<f:else>
<f:for each="{documentMetadataSection.{configObject.indexName}}" as="value" iteration="iterator">
<f:variable name="buildUrlVariable" value="{buildUrl.{sectionIterator.index}}" />
<f:if condition="{buildUrlVariable.{configObject.indexName}}">
<f:then>
<f:render partial="Metadata/LinkEntry" arguments="{_all}"/>
</f:then>
<f:else if="{externalUrlVariable.{configObject.indexName}}">
<f:render partial="Metadata/ExternalLinkEntry" arguments="{_all}"/>
</f:else>
<f:else>
<f:if condition="{kitodo:isArray(subject: '{value}')}">
<f:then>
<kitodo:stdWrap wrap="{metadataWrap.value}" data="{metaSectionCObj}">
Expand All @@ -56,60 +52,18 @@
</f:then>
<f:else>
<kitodo:stdWrap wrap="{metadataWrap.value}" data="{metaSectionCObj}">{value}</kitodo:stdWrap>
</f:else>
</f:if>
</f:else>
</f:if>
</f:else>
</f:if>
</f:for>
</f:for>
</f:then>
<f:else>
<kitodo:stdWrap wrap="{metadataWrap.value}" data="{metaSectionCObj}">{documentMetadataSection.{configObject.indexName}}</kitodo:stdWrap>
</f:else>
</f:if>
</f:spaceless></f:variable>
<f:comment>
<f:variable name="oriValues"><f:spaceless>
<f:for each="{documentMetadataSection.{configObject.indexName}}" as="value" iteration="iterator">
<f:comment>
<f:debug>{configObject.indexName}</f:debug>
<f:debug>{value}</f:debug>
</f:comment>
<f:if condition="{configObject.indexName} == 'collection'">
<f:then>
{value}
</f:then>
</f:if>
</f:for>
</f:spaceless></f:variable>
</f:comment>
<f:comment>
<f:debug>{documentMetadataSection}</f:debug>
<f:debug>{configObject.indexName}</f:debug>
<f:debug>{documentMetadataSection.{configObject.indexName}}</f:debug>
</f:comment>
<f:if condition="{configObject.indexName} == 'collection'">
<f:then>
<f:variable name="collectionValue" value="{documentMetadataSection.{configObject.indexName}}" />
<f:comment>
<f:debug>xxxxxx</f:debug>
<f:debug>{collectionValue}</f:debug>
<f:debug>xxxxxx</f:debug>
</f:comment>
</f:then>
</f:if>
<f:comment>
<f:debug>{collectionValue}</f:debug>
<f:debug>{configObject}</f:debug>
<f:debug>{oriValues}</f:debug>
<f:debug><hr></f:debug>
</f:comment>
<f:comment>
<f:debug>{_all}</f:debug>
<f:debug>{documentMetadataSection}</f:debug>
</f:comment>
<f:comment><f:debug>{metaSectionCObj}</f:debug></f:comment>
<f:comment><f:debug>{metaSectionConfigObject} IST NULL gibt es glaube ich nicht mehr!</f:debug></f:comment>
<f:comment><f:debug>{configObject}</f:debug></f:comment>

<f:if condition="{wrappedValues}">
<kitodo:stdWrap wrap="{metadataWrap.all}" data="{metaSectionCObj}">
<f:comment>check if partOf when </f:comment>
Expand Down Expand Up @@ -177,11 +131,8 @@

<f:comment><f:variable name="basepath" value="/sammlungen/historische/cd/" /></f:comment>
<f:variable name="basepath" value="/sammlungen/" />
<f:variable name="collectionClearName" value="{collectionValue}" />
<f:variable name="collectionClearName" value="{collectionValue}" />

<f:comment>{collectionValue}
<f:debug>{collectionClearName}</f:debug>
</f:comment>
<f:switch expression="{collectionClearName}">

<f:case value="Aktienführer & Saling's Börsenpapiere">
Expand Down Expand Up @@ -258,9 +209,9 @@
</f:case>

<f:defaultCase>
<!-- default Beginn -->
<!-- default Beginn -->
{wrappedValues -> f:format.raw()}
<!-- default Ende-->
<!-- default Ende-->
</f:defaultCase>
</f:switch> <f:comment>expression="{collectionClearName}"></f:comment>
</f:case>
Expand Down

0 comments on commit c9af941

Please sign in to comment.