Skip to content

Commit

Permalink
changed display of not-available prosopographic data, closes #34
Browse files Browse the repository at this point in the history
  • Loading branch information
peterstadler committed Sep 1, 2015
1 parent 4c9c782 commit 05c8ea7
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 7 deletions.
6 changes: 5 additions & 1 deletion catalogues/dictionary_de.xml
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,11 @@
<entry xml:id="tools">Tools</entry>
<entry xml:id="development">Entwicklung</entry>
<!-- error warnings -->
<entry xml:id="noBioFound">Keine biographischen Angaben gefunden</entry>
<entry xml:id="noBioFound">Biographische Kurzübersicht nicht vorliegend</entry>
<entry xml:id="noBioFoundReason">Kurzbiographie aus einem der folgenden Gründe nicht vorhanden</entry>
<entry xml:id="noBioFoundReason1">Daten werden erst zu einem späteren Zeitpunkt ergänzt</entry>
<entry xml:id="noBioFoundReason2">Die Recherchen der WeGA waren bislang erfolglos</entry>
<entry xml:id="noBioFoundReason3">Es handelt sich um eine allgemein bekannte Person, die bereits ausreichend an anderer Stelle erschlossen ist, vgl. etwa den Wikipedia-Link</entry>
<entry xml:id="noDataFound">keine Angaben gefunden</entry>
<entry xml:id="dateUnknown">Datum unbekannt</entry>
<!-- Schlüsselwörter aus MARC Code List for Relators, siehe http://www.loc.gov/marc/relators/relaterm.html -->
Expand Down
6 changes: 5 additions & 1 deletion catalogues/dictionary_en.xml
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,11 @@
<entry xml:id="tools">Tools</entry>
<entry xml:id="development">Development</entry>
<!-- error warnings -->
<entry xml:id="noBioFound">No biographical data found</entry>
<entry xml:id="noBioFound">Biographical data not available</entry>
<entry xml:id="noBioFoundReason">Biography not available due to one of the following causes</entry>
<entry xml:id="noBioFoundReason1">Data will be added at a later stage</entry>
<entry xml:id="noBioFoundReason2">Research of the WeGA was without success so far</entry>
<entry xml:id="noBioFoundReason3">It is a well known person where enough information is available online elsewhere, cf. e.g Wikipedia</entry>
<entry xml:id="noDataFound">no data found</entry>
<entry xml:id="dateUnknown">date unknown</entry>
<!-- Schlüsselwörter aus MARC Code List for Relators, siehe http://www.loc.gov/marc/relators/relaterm.html -->
Expand Down
15 changes: 10 additions & 5 deletions modules/ajax.xqm
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,15 @@ return (
</div>
else
if($person//tei:event) then ()
else <div id="bioSummary"><i>({lang:get-language-string('noBioFound',$lang)})</i></div>,
else <div id="bioSummary">
<p><i>{lang:get-language-string('noBioFound',$lang)}</i></p>
<p style="font-size: smaller;">{lang:get-language-string('noBioFoundReason',$lang)}:</p>
<ul style="font-size: smaller;">
<li> {lang:get-language-string('noBioFoundReason1',$lang)} </li>
<li> {lang:get-language-string('noBioFoundReason2',$lang)} </li>
<li> {lang:get-language-string('noBioFoundReason3',$lang)} </li>
</ul>
</div>,
if($id eq 'A002068') then
if ($lang eq 'en') then ()
else <p class="linkAppendix">Einen ausführlichen Lebenslauf finden Sie in der <a href="{core:join-path-elements(($baseHref, '/de/Biographie'))}">erweiterten Biographie</a></p>
Expand Down Expand Up @@ -609,10 +617,7 @@ declare function ajax:printTranscription($docID as xs:string, $lang as xs:string
else ()
let $head :=
if(config:is-letter($docID)) then wega:getLetterHead($doc, $lang)
else if(config:is-news($docID)) then element h1 {
transform:transform($doc//tei:fileDesc/tei:titleStmt/tei:title[@level='a'], doc(concat($config:xsl-collection-path, '/common_main.xsl')), config:get-xsl-params(()))
(:string($doc//tei:title[@level='a']):)
}
else if(config:is-news($docID)) then element h1 {string($doc//tei:title[@level='a'])}
else if(config:is-writing($docID)) then wega:getWritingHead($doc, $xslParams, $lang)
else ()
let $body :=
Expand Down

0 comments on commit 05c8ea7

Please sign in to comment.