more rdfa work

master
Michael Murtaugh 12 months ago
parent e514deb192
commit 46523e897c

File diff suppressed because it is too large Load Diff

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

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

Loading…
Cancel
Save