def collection_year(soup):
pub_date = first(raw_parser.pub_date(soup, pub_type="<STR_LIT>"))<EOL>if not pub_date:<EOL><INDENT>pub_date = first(raw_parser.pub_date(soup, date_type="<STR_LIT>"))<EOL><DEDENT>if not pub_date:<EOL><INDENT>return None<EOL><DEDENT>year = None<EOL>year_tag = raw_parser.year(pub_date)<EOL>if year_tag:<EOL><INDENT>year = int(node_text(year_tag))<EOL><DEDENT>return year<EOL>
Pub date of type collection will hold a year element for VOR articles