File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -308,8 +308,17 @@ declare function query:get-normalized-date($doc as document-node()) as xs:date?
308
308
let $docID := $doc/*/data (@xml:id)
309
309
let $date :=
310
310
switch (config:get-doctype-by-id ($docID))
311
- (: for Weber writings the creation date should take precedence over the publication date :)
312
- case 'writings' return date:getOneNormalizedDate (($doc[query:get-authorID (.) = 'A002068' ]//tei:creation/tei:date[@* except @cert],query:get-main-source ($doc)/tei:monogr/tei:imprint/tei:date)[1 ], true ())
311
+ case 'writings' return
312
+ date:getOneNormalizedDate ((
313
+ (: for Weber writings the creation date should take precedence over the publication date :)
314
+ $doc[query:get-authorID (.) = 'A002068' ]//tei:creation/tei:date[@* except @cert],
315
+ (: extract default imprint for published writings :)
316
+ query:get-main-source ($doc)/tei:monogr/tei:imprint/tei:date,
317
+ (: extract creation date of unpublished writings not by Weber :)
318
+ $doc//tei:creation/tei:date[@* except @cert]
319
+ )[1 ],
320
+ true ()
321
+ )
313
322
case 'letters' return date:getOneNormalizedDate (($doc//tei:correspAction[@type ='sent' ]/tei:date, $doc//tei:correspAction[@type ='received' ]/tei:date)[1 ], true ())
314
323
case 'biblio' return date:getOneNormalizedDate ($doc//tei:imprint[1 ]/tei:date, true ())
315
324
case 'diaries' return $doc/tei:ab/data (@n)
You can’t perform that action at this time.
0 commit comments