Add useful corpora frame to corpus documentation
Change-Id: I5ffdbe73cf678f5fb3212ba6ded6eb9c92c8c8f4
diff --git a/kalamar.ids-mannheim.conf b/kalamar.ids-mannheim.conf
index 2c8011d..3c8cc68 100644
--- a/kalamar.ids-mannheim.conf
+++ b/kalamar.ids-mannheim.conf
@@ -80,6 +80,12 @@
de_recentCorpusPub => 'Neuere Publikationen zu DeReKo als linguistische Forschungsdatengrundlage',
en_recentToolPub => 'Recent publications to refer to KorAP as a research tool',
de_recentToolPub => 'Neuere Publikationen zu KorAP als Forschungswerkzeug',
+ de_usefulvcs => 'Nützliche virtuelle Sub-Korpora',
+ en_usefulvcs => 'Useful virtual sub-corpora',
+ de_currentdb => 'Aktuelle Datengrundlage: virtuelles Korpus <%= t code => stash("vc") %>',
+ en_currentdb => 'Current data set: Virtual corpus <%= t code => stash("vc") %>',
+ de_compositionbysource => 'Zusammensetzung nach Quelle',
+ en_compositionbysource => 'Composition by source',
}
},
'TagHelpers-ContentBlock' => {
diff --git a/templates/custom/doc/corpus.html.ep b/templates/custom/doc/corpus.html.ep
index c378ecf..4e88960 100644
--- a/templates/custom/doc/corpus.html.ep
+++ b/templates/custom/doc/corpus.html.ep
@@ -3,13 +3,10 @@
%= page_title
<section>
-% my $lang = c(@{$c->localize->locale})->first(qr!^(?i:de|en)$!) // 'en';
-% if ($lang eq 'de') {
- <p>Aktuelle Datengrundlage: virtuelles Korpus <code>dereko-korap-2025-I</code></p>
- <h3>Zusammensetzung nach Quelle</h3>
-% } else {
- <p>Current data set: Virtual corpus <code>dereko-korap-2025-I</code>
- <h3>Composition by source</h3>
-% }
- <iframe src="https://korap.ids-mannheim.de/data/dereko-korap-2025-I.html" sandbox="allow-forms allow-scripts allow-popups allow-same-origin" style="position: relative; border-width: 0; min-height: 80vh" height="100%" width="100%"></iframe>
+ <p><%== loc 'currentdb', vc => 'dereko-korap-2025-I' %></p>
+ <h3><%= loc 'compositionbysource' %></h3>
+ <iframe src="https://korap.ids-mannheim.de/data/dereko-korap-2025-I.html" sandbox="allow-forms allow-same-origin allow-scripts allow-popups" style="position: relative; border-width: 0; min-height: 40vh" height="45%" width="100%"></iframe>
+
+ <h3><%= loc 'usefulvcs' %></h3>
+ <iframe src="https://korap.ids-mannheim.de/data/useful_dereko_corpora.html" sandbox="allow-forms allow-same-origin allow-scripts allow-popups" style="position: relative; border-width: 0; min-height: 40vh" height="45%" width="100%"></iframe>
</section>