master
Michael Murtaugh 12 months ago
parent 075f0999f1
commit b9116a6574

@ -162,7 +162,7 @@
</div> </div>
</div> </div>
</div> </div>
<div id="categories" class="row" typeof="xpub:gradshow"> <div id="categories" class="row">
<div class="col1"> <div class="col1">
<h2>Year</h2> <h2>Year</h2>
</div> </div>

@ -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")):

Loading…
Cancel
Save