Lists need to access teiHeader metadata flexibly and render more parts
Opened this issue · 1 comments
simar0at commented
Given this teiHeader metadata from the SHAWI project:
{
"teiHeader": {
"fileDesc": {
"titleStmt": {
"titles": [
{
"@level": "a",
"$": "Syria-002"
},
{
"@level": "s",
"$": "SHAWI Corpus"
}
],[...],
},[...],
"sourceDesc": {
"recordingStmt": {
"recording": {
"@dur-iso": "07:26",
"@type": "audio",
"date": {
"@when": "2022-04-21"
},[...]
"media": {
"@url": "share:Syria-002_Xabur_River-Syria-2022.wav",
"@mimeType": "audio/wav",
"@type": "master"
}
}
}
}
},[...]
"settingDesc": {
"place": {
"@sameAs": "geo:syria",
"placeName": {
"$": "Syria"
}
}
},
"textClass": {
"catRef": {
"@target": "corpus:Swimming"
}
}
}
}
}
there should be at least a list entry
SHAWI Corpus Syria-002 audio: duration: 07:26, media: share:Syria-002_Xabur_River-Syria-2022.wav
This entry's audio file is not publicly available. There are other entries that have the audion publicly available. Those will have another kind of URI (https://...)
pseudo code:
`${teiHeader.titleStmt.titles[1].$} ${teiHeader.titleStmt.titles[0].$} audio: duration ${teiHeader.sourceDesc.recordingStmt.recording.@dur-iso}, media ${teiHeader.sourceDesc.recordingStmt.recording.media.@url}`
We will configure a different type of rendering for other corpus data in e. g. WIBARAB
simar0at commented
{
"@hasTEIw": "true",
"teiHeader": {
"fileDesc": {
"titleStmt": {
"titles": [
{
"@level": "a",
"$": "SAU_2022_Speaker20_traditionaltools"
},
{
"@level": "s",
"$": "WIBARAB Corpus"
}
],
"funder": {
"orgName": {
"@ref": "https://ror.org/0472cxd90",
"$": "European Research Council"
},
"idno": {
"@type": "projectNumber",
"$": "101020127"
},
"$": "Funded by the European Research Council under the Grant Agreement 101020127 ."
},[...]
},[...]
"sourceDesc": {
"recordingStmt": {
"recording": {
"@dur-iso": "10:36",
"@type": "audio",
"date": {
"@when": "2022-03-15"
},
"respStmt": {
"resp": {
"$": "recording"
},
"persName": {
"@ref": "corpus:GuK",
"$": "Gunda Kinzl"
}
},
"p": {
"ref": {
"@target": "sources:SAU_2022_GK",
"$": "Saudi Arabia Fieldwork Campaign Gunda Kinzl 2022"
},
"$": "Recorded during Saudi Arabia Fieldwork Campaign Gunda Kinzl 2022"
}
}
}
}
},[...]
"profileDesc": {
"particDesc": {
"listPerson": [
{
"$": "Speakers in SAU_2022_Speaker20_traditionaltools"
},
{
"@sameAs": "corpus:SAU_2022_Speaker20",
"name": {
"@type": "pseudonym",
"$": "SAU_2022_Speaker20"
}
}
]
},
"textClass": {
"catRef": {
"@target": "corpus:Tools"
}
}
}
}
}
SAU_2022_Speaker20_traditionaltools audio: duration: 10:36, Recorded during Saudi Arabia Fieldwork Campaign Gunda Kinzl 2022
`${teiHeader.titleStmt.titles[0].$} audio: duration ${teiHeader.sourceDesc.recordingStmt.recording.@dur-iso}, ${teiHeader.sourceDesc.recordingStmt.recording.p.$}