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