Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

queuing up batches identified for submission #29

Merged
merged 1 commit into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions submissions/Islamic_II/Hadith/get_hadith.xquery
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
xquery version "3.0";
declare option saxon:output "omit-xml-declaration=yes";

declare variable $marc as document-node()+ := doc("file:/Users/heberleinr/Documents/Digital_Scriptorium/submissions/2024_08/Islamic_II/BIBLIOGRAPHIC_38955194630006421_1_bkp.xml");
declare variable $turkish as document-node()+ := doc("file:/Users/heberleinr/Documents/Digital_Scriptorium/submissions/2024_08/Islamic_II/turkish.xml");
let $records := $marc//record[datafield[matches(@tag, '^65')]/subfield[@code='a'][matches(., "Hadith", 'i')]]
for $record in $records
return
(:(
insert node $record as last into $turkish//collection,
delete node $record
):)
12 changes: 12 additions & 0 deletions submissions/Islamic_II/Islamic_law/get_islamic-law.xquery
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
xquery version "3.0";
declare option saxon:output "omit-xml-declaration=yes";

declare variable $marc as document-node()+ := doc("file:/Users/heberleinr/Documents/Digital_Scriptorium/submissions/2024_08/Islamic_II/BIBLIOGRAPHIC_38955194630006421_1_bkp.xml");
declare variable $turkish as document-node()+ := doc("file:/Users/heberleinr/Documents/Digital_Scriptorium/submissions/2024_08/Islamic_II/turkish.xml");
let $records := $marc//record[datafield[matches(@tag, '^65')]/subfield[@code='a'][matches(., "Islamic law", 'i') or matches(., "Droit Islamique", 'i')] and contains(controlfield[@tag='008'], 'ara')]
for $record in $records
return
(:(
insert node $record as last into $turkish//collection,
delete node $record
):)
13 changes: 13 additions & 0 deletions submissions/Islamic_II/Quran/get_quran.xquery
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
xquery version "3.0";
declare option saxon:output "omit-xml-declaration=yes";

declare variable $marc as document-node()+ := doc("file:/Users/heberleinr/Documents/Digital_Scriptorium/submissions/2024_08/Islamic_II/BIBLIOGRAPHIC_38955194630006421_1_bkp.xml");
declare variable $turkish as document-node()+ := doc("file:/Users/heberleinr/Documents/Digital_Scriptorium/submissions/2024_08/Islamic_II/turkish.xml");
let $records := $marc//record[datafield[matches(@tag, '630')]/subfield[@code='a'][matches(., "Qu[ʼ`']?r[ʼ`']?an", 'i')] and contains(controlfield[@tag='008'], 'ara')]

for $record in $records
return
(:(
insert node $record as last into $turkish//collection,
delete node $record
):)
13 changes: 13 additions & 0 deletions submissions/Islamic_II/Turkish/get_turkish.xquery
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
xquery version "3.0";
declare option saxon:output "omit-xml-declaration=yes";

declare variable $marc as document-node()+ := doc("file:/Users/heberleinr/Documents/Digital_Scriptorium/submissions/2024_08/Islamic_II/BIBLIOGRAPHIC_38955194630006421_1_bkp.xml");
declare variable $turkish as document-node()+ := doc("file:/Users/heberleinr/Documents/Digital_Scriptorium/submissions/2024_08/Islamic_II/turkish.xml");
let $records := $marc//record[controlfield[@tag="008"][contains(., "tur")] | datafield[matches(@tag, '^65')][.="Manuscripts, Turkish"]]

for $record in $records
return
(
insert node $record as last into $turkish//collection,
delete node $record
)