Skip to content

Commit

Permalink
Update zotero on dev to prevent timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
wsalesky committed May 28, 2024
1 parent cfd29f3 commit 4c745bc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions zotero2bibl/get-zotero-data.xql
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,14 @@ declare function local:process-records($record as item()?, $format as xs:string?
let $new-record := zotero2tei:build-new-record($record, $idNumber, $format)
return
if($idNumber != '') then
try {xmldb:store($data-dir, xmldb:encode-uri($file-name), $new-record)} catch *{
try {(
xmldb:store($data-dir, xmldb:encode-uri($file-name), $new-record)(:,
gitcommit:run-commit( $new-record, concat('data/bibl/tei/',$file-name), 'Test zotero commit','67'):)
)} catch *{
<response status="fail">
<message>Failed to add resource {$file-name}: {concat($err:code, ": ", $err:description), console:log(concat($err:code, ": ", $err:description))}</message>
</response>
}
}
else ()
};

Expand Down

0 comments on commit 4c745bc

Please sign in to comment.