Skip to content

Commit 2383c23

Browse files
Merge pull request #380 from markusweigelt/optional-validators
[FEATURE] Optional validators
2 parents 9e33ba3 + edadb2d commit 2383c23

File tree

5 files changed

+48
-5
lines changed

5 files changed

+48
-5
lines changed

Configuration/TypoScript/Plugins/kitodo.typoscript

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ plugin.tx_dlf {
3232
dfgviewer {
3333
10 {
3434
title = LLL:EXT:dfgviewer/Resources/Private/Language/locallang_validation.xlf:validator.xmlschemas.title
35+
shortdescription = LLL:EXT:dfgviewer/Resources/Private/Language/locallang_validation.xlf:validator.xmlschemas.shortdescription
3536
description {
3637
key = LLL:EXT:dfgviewer/Resources/Private/Language/locallang_validation.xlf:validator.xmlschemas.description
3738
arguments {
@@ -55,6 +56,7 @@ plugin.tx_dlf {
5556
}
5657
20 {
5758
title = LLL:EXT:dfgviewer/Resources/Private/Language/locallang_validation.xlf:validator.metsapplicationprofile.title
59+
shortdescription = LLL:EXT:dfgviewer/Resources/Private/Language/locallang_validation.xlf:validator.metsapplicationprofile.shortdescription
5860
description {
5961
key = LLL:EXT:dfgviewer/Resources/Private/Language/locallang_validation.xlf:validator.metsapplicationprofile.description
6062
arguments {
@@ -66,6 +68,7 @@ plugin.tx_dlf {
6668
}
6769
30 {
6870
title = LLL:EXT:dfgviewer/Resources/Private/Language/locallang_validation.xlf:validator.modsapplicationprofile.title
71+
shortdescription = LLL:EXT:dfgviewer/Resources/Private/Language/locallang_validation.xlf:validator.modsapplicationprofile.shortdescription
6972
description {
7073
key = LLL:EXT:dfgviewer/Resources/Private/Language/locallang_validation.xlf:validator.modsapplicationprofile.description
7174
arguments {
@@ -77,11 +80,13 @@ plugin.tx_dlf {
7780
}
7881
40 {
7982
title = LLL:EXT:dfgviewer/Resources/Private/Language/locallang_validation.xlf:validator.metsurlexistence.title
83+
shortdescription = LLL:EXT:dfgviewer/Resources/Private/Language/locallang_validation.xlf:validator.metsurlexistence.shortdescription
8084
description = LLL:EXT:dfgviewer/Resources/Private/Language/locallang_validation.xlf:validator.metsurlexistence.description
8185
className = Slub\Dfgviewer\Validation\MetsUrlExistenceValidator
8286
configuration {
8387
excludeHosts = dfg-viewer.de,www.loc.gov,id.loc.gov,www.openarchives.org,purl.org,www.w3.org
8488
}
89+
disabled = true
8590
}
8691
}
8792
}

Resources/Private/Language/de.locallang_validation.xlf

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,34 @@
99
<source><![CDATA[METS Application Profile Validator]]></source>
1010
<target><![CDATA[METS-Anwendungsprofil Validator]]></target>
1111
</trans-unit>
12+
<trans-unit id="validator.metsapplicationprofile.shortdescription" approved="yes">
13+
<source><![CDATA[Validation against the METS Application Profile.]]></source>
14+
<target><![CDATA[Validierung gegen das METS-Anwendungsprofil.]]></target>
15+
</trans-unit>
1216
<trans-unit id="validator.metsapplicationprofile.description" approved="yes">
13-
<source><![CDATA[Validation against the Validation against the <a href="%s">%s</a>. Further information can be found on the <a href="https://dfg-viewer.de/en/metadata">Metadata Profile page</a> of the <a href="https://dfg-viewer.de/en/">DFG Viewer website</a>.]]></source>
14-
<target><![CDATA[Validierung gegen das Validation against the <a href="%s">%s</a>. Weitere Informationen finden Sie auf der <a href="https://dfg-viewer.de/en/metadata">Metadata Profile-Seite</a> der <a href="https://dfg-viewer.de/en/">DFG Viewer-Website</a>.]]></target>
17+
<source><![CDATA[Validation against the <a href="%s">%s</a>. Further information can be found on the <a href="https://dfg-viewer.de/en/metadata">Metadata Profile page</a> of the <a href="https://dfg-viewer.de/en/">DFG Viewer website</a>.]]></source>
18+
<target><![CDATA[Validierung gegen das <a href="%s">%s</a>. Weitere Informationen finden Sie auf der <a href="https://dfg-viewer.de/en/metadata">Metadata Profile-Seite</a> der <a href="https://dfg-viewer.de/en/">DFG Viewer-Website</a>.]]></target>
1519
</trans-unit>
1620
<trans-unit id="validator.modsapplicationprofile.title" approved="yes">
1721
<source><![CDATA[MODS Application Profile Validator]]></source>
1822
<target><![CDATA[MODS-Anwendungsprofil Validator]]></target>
1923
</trans-unit>
24+
<trans-unit id="validator.modsapplicationprofile.shortdescription" approved="yes">
25+
<source><![CDATA[Validation against the MODS Application Profile.]]></source>
26+
<target><![CDATA[Validierung gegen das MODS-Anwendungsprofil.]]></target>
27+
</trans-unit>
2028
<trans-unit id="validator.modsapplicationprofile.description" approved="yes">
21-
<source><![CDATA[Validation against the Validation against the <a href="%s">%s</a>. Further information can be found on the <a href="https://dfg-viewer.de/en/metadata">Metadata Profile page</a> of the <a href="https://dfg-viewer.de/en/">DFG Viewer website</a>.]]></source>
22-
<target><![CDATA[Validierung gegen das Validation against the <a href="%s">%s</a>. Weitere Informationen finden Sie auf der <a href="https://dfg-viewer.de/en/metadata">Metadata Profile-Seite</a> der <a href="https://dfg-viewer.de/en/">DFG Viewer-Website</a>.]]></target>
29+
<source><![CDATA[Validation against the <a href="%s">%s</a>. Further information can be found on the <a href="https://dfg-viewer.de/en/metadata">Metadata Profile page</a> of the <a href="https://dfg-viewer.de/en/">DFG Viewer website</a>.]]></source>
30+
<target><![CDATA[Validierung gegen das <a href="%s">%s</a>. Weitere Informationen finden Sie auf der <a href="https://dfg-viewer.de/en/metadata">Metadata Profile-Seite</a> der <a href="https://dfg-viewer.de/en/">DFG Viewer-Website</a>.]]></target>
2331
</trans-unit>
2432
<trans-unit id="validator.metsurlexistence.title">
2533
<source><![CDATA[METS URL Existence Validator]]></source>
2634
<target><![CDATA[METS-URL-Existenzprüfer]]></target>
2735
</trans-unit>
36+
<trans-unit id="validator.metsurlexistence.shortdescription" approved="yes">
37+
<source><![CDATA[The validator checks the URLs of a METS document for their existence.]]></source>
38+
<target><![CDATA[Der Validator überprüft die URLs eines METS-Dokuments auf ihre Existenz.]]></target>
39+
</trans-unit>
2840
<trans-unit id="validator.metsurlexistence.description">
2941
<source><![CDATA[The validator checks the URLs of a METS document for their existence. The URLs of the file groups are only checked on a sample basis for performance reasons. For this purpose, only one file URL per host checked for each file group.]]></source>
3042
<target><![CDATA[Der Validator überprüft die URLs eines METS-Dokuments auf ihre Existenz. Die URLs der Dateigruppen werden aus Gründen der Performance nur stichprobenartig überprüft. Dabei wird pro Dateigruppe nur eine Datei-URL pro Host geprüft.]]></target>
@@ -33,6 +45,10 @@
3345
<source><![CDATA[XML Schemas Validator]]></source>
3446
<target><![CDATA[XML-Schema Validator]]></target>
3547
</trans-unit>
48+
<trans-unit id="validator.xmlschemas.shortdescription">
49+
<source><![CDATA[Validation against the XSD files.]]></source>
50+
<target><![CDATA[Validierung gegen die XSD-Dateien.]]></target>
51+
</trans-unit>
3652
<trans-unit id="validator.xmlschemas.description">
3753
<source><![CDATA[Validation against the <a href="%s">%s</a> and <a href="%s">%s</a> XSD files.]]></source>
3854
<target><![CDATA[Validierung gegen die <a href="%s">%s</a> und <a href="%s">%s</a> XSD-Dateien.]]></target>

Resources/Private/Language/locallang_validation.xlf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,36 @@
88
<trans-unit id="validator.metsapplicationprofile.title">
99
<source><![CDATA[METS Application Profile Validator]]></source>
1010
</trans-unit>
11+
<trans-unit id="validator.metsapplicationprofile.shortdescription">
12+
<source><![CDATA[Validation against the METS Application Profile.]]></source>
13+
</trans-unit>
1114
<trans-unit id="validator.metsapplicationprofile.description">
1215
<source><![CDATA[Validation against the <a href="%s">%s</a>. Further information can be found on the <a href="https://dfg-viewer.de/en/metadata">Metadata Profile page</a> of the <a href="https://dfg-viewer.de/en/">DFG Viewer website</a>.]]></source>
1316
</trans-unit>
1417
<trans-unit id="validator.modsapplicationprofile.title">
1518
<source><![CDATA[MODS Application Profile Validator]]></source>
1619
</trans-unit>
20+
<trans-unit id="validator.modsapplicationprofile.shortdescription">
21+
<source><![CDATA[Validation against the MODS Application Profile.]]></source>
22+
</trans-unit>
1723
<trans-unit id="validator.modsapplicationprofile.description">
1824
<source><![CDATA[Validation against the <a href="%s">%s</a>. Further information can be found on the <a href="https://dfg-viewer.de/en/metadata">Metadata Profile page</a> of the <a href="https://dfg-viewer.de/en/">DFG Viewer website</a>.]]></source>
1925
</trans-unit>
2026
<trans-unit id="validator.metsurlexistence.title">
2127
<source><![CDATA[METS URL Existence Validator]]></source>
2228
</trans-unit>
29+
<trans-unit id="validator.metsurlexistence.shortdescription">
30+
<source><![CDATA[The validator checks the URLs of a METS document for their existence.]]></source>
31+
</trans-unit>
2332
<trans-unit id="validator.metsurlexistence.description">
2433
<source><![CDATA[The validator checks the URLs of a METS document for their existence. The URLs of the file groups are only checked on a sample basis for performance reasons. For this purpose, only one file URL per host checked for each file group.]]></source>
2534
</trans-unit>
2635
<trans-unit id="validator.xmlschemas.title">
2736
<source><![CDATA[XML Schemas Validator]]></source>
2837
</trans-unit>
38+
<trans-unit id="validator.xmlschemas.shortdescription">
39+
<source><![CDATA[Validation against the XSD files.]]></source>
40+
</trans-unit>
2941
<trans-unit id="validator.xmlschemas.description">
3042
<source><![CDATA[Validation against the <a href="%s">%s</a> and <a href="%s">%s</a> XSD files.]]></source>
3143
</trans-unit>

Resources/Private/Less/components/validationform.less

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@
99
position:relative;
1010
font-size: 14px;
1111

12+
form {
13+
.disabled-validators {
14+
margin-top: 10px !important;
15+
16+
label {
17+
margin-top: 5px !important;
18+
}
19+
}
20+
}
21+
1222
.validation {
1323
.validation-entry {
1424
margin-bottom: 2em;

Resources/Public/Css/webStyles.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)