more rdfa work

master
Michael Murtaugh 5 months ago
parent e514deb192
commit 46523e897c

File diff suppressed because it is too large Load Diff

@ -18,6 +18,7 @@ context = {
"@context": {
"@language": "en",
"xpub": "http://xpub.nl/terms/",
"xpubproject": "https://project.xpub.nl/",
"dc": "http://purl.org/dc/terms/",
"student": { "@id": "xpub:student", "@lang": "en" },
"project": { "@id": "xpub:project", "@type": "@id" },

@ -31,7 +31,8 @@ for div in t.findall('.//div[@class="subrow"]'):
if ai == 0:
pdf_link.attrib['property'] = "xpub:thesis"
elif ai == 1:
pdf_link.attrib['property'] = "xpub:thesis_image"
# pdf_link.attrib['property'] = "xpub:thesis_image"
pass
else:
raise Exception (f"{title}: too many links in PDF columns")
else:

Loading…
Cancel
Save