Skip to content

Commit

Permalink
updated writings creation/filter
Browse files Browse the repository at this point in the history
due to update to schema, see
Edirom/WeGA-ODD@c141ef7
785f08eda1
  • Loading branch information
peterstadler committed Mar 11, 2017
1 parent fffda00 commit 9ebe1a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/wdt.xqm
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ declare function wdt:writings($item as item()*) as map(*) {
else false()
},
'filter' := function() as document-node()* {
$item/root()/descendant::tei:text[@type=('performance-review', 'historic-news')]/root()
$item/root()/descendant::tei:text[@type=('performance-review', 'historic-news', 'concert-announcement')]/root()
},
'filter-by-person' := function($personID as xs:string) as document-node()* {
$item/root()//tei:author[@key = $personID][ancestor::tei:fileDesc]/root()
Expand All @@ -273,7 +273,7 @@ declare function wdt:writings($item as item()*) as map(*) {
for $i in wdt:writings($item)('filter')() order by sort:index('writings', $i) ascending return $i
},
'init-collection' := function() as document-node()* {
core:data-collection('writings')/descendant::tei:text[@type=('performance-review', 'historic-news')]/root()
core:data-collection('writings')/descendant::tei:text[@type=('performance-review', 'historic-news', 'concert-announcement')]/root()
},
'init-sortIndex' := function() as item()* {
wdt:create-index-callback('writings', wdt:writings(())('init-collection')(), function($node) {
Expand Down

0 comments on commit 9ebe1a1

Please sign in to comment.