|
|
|
@ -32,11 +32,11 @@ def patch_project_div (div):
|
|
|
|
|
raise Exception(f"{title}: too many p columns")
|
|
|
|
|
|
|
|
|
|
def patch_year_div(div):
|
|
|
|
|
div.attrib["typeof"] = "xpub:gradshow"
|
|
|
|
|
col1 = div.find('.//div[@class="col1"]')
|
|
|
|
|
logo = col1.find('.//img[@class="logo"]')
|
|
|
|
|
if logo is None:
|
|
|
|
|
return
|
|
|
|
|
div.attrib["typeof"] = "xpub:gradshow"
|
|
|
|
|
logo.attrib["property"] = "dc:image"
|
|
|
|
|
year = None
|
|
|
|
|
for pi, p in enumerate(col1.findall("./p")):
|
|
|
|
|