Skip to content

Commit

Permalink
added support for correspondence subcategory 'dedication'
Browse files Browse the repository at this point in the history
requested per Edirom/WeGA-ODD#37
  • Loading branch information
peterstadler committed Apr 24, 2018
1 parent 34760cd commit f3c4c32
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions catalogues/dictionary_de.xml
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@
<entry xml:id="authors">Autor</entry>
<entry xml:id="editors">Herausgeber</entry>
<entry xml:id="guestbookEntry">Gästebucheintrag</entry>
<entry xml:id="dedication">Widmung</entry>
<!-- Development -->
<entry xml:id="common">Allgemeines</entry>
<!-- HTML Meta Daten (description) -->
Expand Down
1 change: 1 addition & 0 deletions catalogues/dictionary_en.xml
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@
<entry xml:id="authors">Author</entry>
<entry xml:id="editors">Editor</entry>
<entry xml:id="guestbookEntry">Guestbook Entry</entry>
<entry xml:id="dedication">Dedication</entry>
<!-- Development -->
<entry xml:id="common">Common</entry>
<!-- HTML Meta Daten -->
Expand Down
4 changes: 2 additions & 2 deletions modules/wdt.xqm
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ declare function wdt:letters($item as item()*) as map(*) {
else false()
},
'filter' := function() as document-node()* {
$item/root()/descendant::tei:text[@type = ('albumblatt', 'letter', 'guestbookEntry')]/root()
$item/root()/descendant::tei:text[@type = ('albumblatt', 'letter', 'guestbookEntry', 'dedication')]/root()
},
'filter-by-person' := function($personID as xs:string) as document-node()* {
(:$item/root()//tei:persName[@key = $personID][ancestor::tei:correspAction][not(ancestor-or-self::tei:note)]/root() |
Expand All @@ -200,7 +200,7 @@ declare function wdt:letters($item as item()*) as map(*) {
for $i in wdt:letters($item)('filter')() order by sort:index('letters', $i) ascending return $i
},
'init-collection' := function() as document-node()* {
core:data-collection('letters')/descendant::tei:text[@type = ('albumblatt', 'letter', 'guestbookEntry')]/root()
core:data-collection('letters')/descendant::tei:text[@type = ('albumblatt', 'letter', 'guestbookEntry', 'dedication')]/root()
},
'init-sortIndex' := function() as item()* {
wdt:create-index-callback('letters', wdt:letters(())('init-collection')(), function($node) {
Expand Down

0 comments on commit f3c4c32

Please sign in to comment.