Skip to content

Commit

Permalink
Workaround frequent lemmata pages; system.outs auskommentiert
Browse files Browse the repository at this point in the history
  • Loading branch information
dwerning authored Oct 29, 2022
2 parents 993a527 + 7128cdb commit c4d10c8
Show file tree
Hide file tree
Showing 32 changed files with 41,455 additions and 20 deletions.
4 changes: 2 additions & 2 deletions src/main/java/tla/web/model/Lemma.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ public GlyphsLemma getHieroglyphs()

{
if (this.getDictionaryName().equals(Script.HIERATIC)) {
System.out.println ("Glyphs Lemma"+ this.getGlyphs().getMdcCompact());
System.out.println ("Unicode Lemma"+ this.getGlyphs().getUnicode());
//System.out.println ("Glyphs Lemma"+ this.getGlyphs().getMdcCompact());
//System.out.println ("Unicode Lemma"+ this.getGlyphs().getUnicode());
return this.getGlyphs();
}
else return null;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/tla/web/model/Text.java
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ private static String extractIsOrigPlace(Text text) {
List<Passport> pass= text.getPassport().extractProperty(PASSPORT_PROP_ISORIG);

isOrigPl=pass.get(0).toString();
System.out.println("isOrig "+ isOrigPl);
//System.out.println("isOrig "+ isOrigPl);
if (isOrigPl.equals("true")) isOrigPl="original";
else isOrigPl=null;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ public ExternalReferencesConverter(ApplicationProperties properties) {
private String formatLink(String provider, String id, String type) {
assert linkFormatters != null;
if (linkFormatters.containsKey(provider)) {
System.out.println(" link for provider {}"+ linkFormatters.get(provider)+" id "+id+" type "+type);
System.out.println ("link "+ linkFormatters.get(provider).format(id, type));
//System.out.println(" link for provider {}"+ linkFormatters.get(provider)+" id "+id+" type "+type);
//System.out.println ("link "+ linkFormatters.get(provider).format(id, type));
return linkFormatters.get(provider).format(id, type);
}
log.debug("no link format configuration for provider {}", provider);
Expand Down Expand Up @@ -95,7 +95,7 @@ protected SortedMap<String, List<tla.web.model.parts.ExternalReference>> convert
}
);
}
System.out.println("Converted "+res.values());
//System.out.println("Converted "+res.values());
return res;
}
}
2 changes: 1 addition & 1 deletion src/main/java/tla/web/model/parts/GlyphsLemma.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public static GlyphsLemma of(tla.domain.dto.LemmaDto.Glyphs dto, boolean rubrum)
.svg(Util.jseshRender(dto.getMdcCompact(), rubrum))
.build();
} else {
System.out.println("Lemma DTO EMPTY");
//System.out.println("Lemma DTO EMPTY");
return GlyphsLemma.EMPTY;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/tla/web/repo/TlaClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public TlaClient(String backendUrl) {
public static void registerModelclass(Class<? extends TLAObject> modelClass) {
for (Annotation a: modelClass.getAnnotations()) {
if (a instanceof BackendPath) {
System.out.println("put model class "+modelClass.getName()+ " "+ ((BackendPath) a).value());
//System.out.println("put model class "+modelClass.getName()+ " "+ ((BackendPath) a).value());
backendPaths.put(
modelClass,
((BackendPath) a).value()
Expand Down
14 changes: 13 additions & 1 deletion src/main/resources/i18n/messages_de.properties
Original file line number Diff line number Diff line change
Expand Up @@ -551,4 +551,16 @@ modal_transliteration_title=Transkription: Such-Zeichenkette
modal_transliteration_text=<p>Die folgenden <strong><i>Wildcards</i></strong> können im Suchstring genutzt werden:</p><table class="bordered-table m-2"><tr><td><code>_</code>&nbsp;oder&nbsp;<code>§</code></td><td>Platzhalter für <em>irgendein</em> Zeichen. Beispiel: „<span class="bbaw-libertine">_m</span>‟ findet „<span class="bbaw-libertine">ꜣm</span>‟ und „<span class="bbaw-libertine">rm</span>‟.</td></tr><tr><td><code>*</code></td><td>Platzhalter für <em>irgendeine</em> Anzahl <em>irgendwelcher</em> Zeichen. Beispiel: „<span class="bbaw-libertine">*m</span>‟ findet „<span class="bbaw-libertine">ꜣm</span>‟, „<span class="bbaw-libertine">rnm</span>‟ und auch einfaches „<span class="bbaw-libertine">m</span>‟.</td></tr><tr><td><code>[&nbsp;]</code></td><td>Menge von Einzelzeichen: irgendeines aus der Zeichenmenge wird gesucht. Beispiel: „<span class="bbaw-libertine">[zs]š</span>‟ findet „<span class="bbaw-libertine">sš</span>‟ und „<span class="bbaw-libertine">zš</span>‟. (Tipp: Nutzung bei „<span class="bbaw-libertine">[jy]</span>‟.)</td></tr><tr><td><code>?</code></td><td>Das vor dem „?‟ stehende Zeichen <em>kann</em> im gesuchten Lemma sein, <em>muss aber nicht</em> vorhanden sein. Beispiel, „<span class="bbaw-libertine">mr.?y</span>‟ findet „<span class="bbaw-libertine">mr.y</span>‟ und „<span class="bbaw-libertine">mry</span>‟.</td></tr><tr><td><code>(&nbsp;)</code></td><td>Die in „( )‟ stehende Zeichen(sequenz) <em>kann</em> im gesuchten Lemma sein, <em>muss aber nicht</em> vorhanden sein. Beispiel, „<span class="bbaw-libertine">(j)ꜥr</span>‟ findet „<span class="bbaw-libertine">jꜥr</span>‟ und „<span class="bbaw-libertine">ꜥr</span>‟.</td></tr><tr><td><code>$</code></td><td>Nur am Ende von Strings zu nutzen: das Lemma muss an der Position enden. Beispiel: „<span class="bbaw-libertine">jm$</span>‟ findet „<span class="bbaw-libertine">jm</span>‟, aber <em>nicht</em> „<span class="bbaw-libertine">jmn</span>‟.</td></tr><tr><td><code>&gt;</code></td><td>Nur am Anfang von Strings zu nutzen: das Lemma kann mit dem String anfangen, <em>oder</em> ein Sublemma des Lemmas beginnt damit. Beispiel: „<span class="bbaw-libertine">&gt;jmn</span>‟ findet „<span class="bbaw-libertine">jmn.t</span>‟ <em>und</em> „<span class="bbaw-libertine">ꜥ.t-jmn.t</span>‟.</td></tr></table><p>Die Zeichen „<span class="bbaw-libertine">⸮</span>‟, „<span class="bbaw-libertine">{</span>‟, „<span class="bbaw-libertine">}</span>‟, „<span class="bbaw-libertine">⸢</span>‟, „<span class="bbaw-libertine">⸣</span>‟, „<span class="bbaw-libertine">〈</span>‟, und „<span class="bbaw-libertine">〉</span>‟ werden bei der Suche ignoriert.</p>

modal_bibliography_title=Inhalte des Bibliographie-Feldes
modal_bibliography_text=<p>Eine Liste bibliographischer Abkürzungen, nach denen Sie vielleicht suchen wollen, finden Sie <a href="/listings/bibliography/" target="_blank" rel="opener">hier</a>.</p>
modal_bibliography_text=<p>Eine Liste bibliographischer Abkürzungen, nach denen Sie vielleicht suchen wollen, finden Sie <a href="/listings/bibliography/" target="_blank" rel="opener">hier</a>.</p>

editorial_title_lemmata-static_10030=Lemma-Eintrag
editorial_title_lemmata-static_10050=Lemma-Eintrag
editorial_title_lemmata-static_10110=Lemma-Eintrag
editorial_title_lemmata-static_28550=Lemma-Eintrag
editorial_title_lemmata-static_79800=Lemma-Eintrag
editorial_title_lemmata-static_400007=Lemma-Eintrag
editorial_title_lemmata-static_400055=Lemma-Eintrag
editorial_title_lemmata-static_850814=Lemma-Eintrag
editorial_title_lemmata-static_d1839=Lemma-Eintrag
editorial_title_lemmata-static_d2193=Lemma-Eintrag
editorial_title_lemmata-static_81660=Lemma-Eintrag
13 changes: 13 additions & 0 deletions src/main/resources/i18n/messages_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -551,3 +551,16 @@ modal_transliteration_text=<p>The following <strong>wildcards</strong> can be us

modal_bibliography_title=Bibliography field contents
modal_bibliography_text=<p>For bibliographic abbreviations that you might want to look for, see <a href="/listings/bibliography/" target="_blank" rel="opener">here</a>.</p>

editorial_title_lemmata-static_10030=Lemma entry
editorial_title_lemmata-static_10050=Lemma entry
editorial_title_lemmata-static_10110=Lemma entry
editorial_title_lemmata-static_28550=Lemma entry
editorial_title_lemmata-static_79800=Lemma entry
editorial_title_lemmata-static_400007=Lemma entry
editorial_title_lemmata-static_400055=Lemma entry
editorial_title_lemmata-static_850814=Lemma entry
editorial_title_lemmata-static_d1839=Lemma entry
editorial_title_lemmata-static_d2193=Lemma entry
editorial_title_lemmata-static_81660=Lemma entry

5 changes: 5 additions & 0 deletions src/main/resources/pages/de/help/lemma-search-results.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ <h3 th:text="#{button_label_hide_property_transliteration}">Transkription</h3>
<div class="ml-sm-4 mb-3">
<p>Die Anzeige der Lemma-Transkription ist obligatorisch. Ein Klick auf den Eintrag führt zur entsprechenden Lemma-Seite.</p>
</div>

<h3 th:text="#{object_property_review_state}">Redaktionsstatus</h3>
<div class="ml-sm-4 mb-3">
<p>Informationen zum in der oberen, rechten Ecke eines Eintrags angezeigten Redaktionsstatus der Lemmata finden Sie <a href="/info/lemma-lists">hier</a>.</p>
</div>
</section>
<footer>
<p class="credits">Text: D.A.Werning</p>
Expand Down
Loading

0 comments on commit c4d10c8

Please sign in to comment.