# Extract the 856 URLs that are not otherwise represented by asset.uri's
args.online_res = [];
FOR node IN xml.findnodes('//*[@tag="856" and @ind1="4" and (@ind2="0" or @ind2="1")]');
- IF node.findnodes('./*[@code="9" or @code="w" or @code="n"]'); NEXT; END; # asset.uri's
+ IF node.findnodes('./*[@code="9" or @code="w"]'); NEXT; END; # asset.uri's
label = node.findnodes('./*[@code="y"]');
- notes = node.findnodes('./*[@code="z" or @code="3"]');
+ notes = node.findnodes('./*[@code="z"]');
+ access = node.findnodes('./*[@code="n"]');
+ materials = node.findnodes('./*[@code="3"]');
FOR href IN node.findnodes('./*[@code="u"]');
NEXT UNLESS href;
# it's possible for multiple $u's to exist within 1 856 tag.
href => href.textContent,
link => (loop.first AND label) ? label.textContent : href.textContent,
note => (loop.first) ? notes.textContent : ''
+ materials => (loop.first) ? materials.textContent : ''
+ access => (loop.first) ? access.textContent : ''
});
END;
END;
filtered_href = uri.href | html;
filtered_link = uri.link ? uri.link : '' | html;
filtered_note = uri.note ? uri.note : '' | html;
+ filtered_materials = uri.materials ? uri.materials : '' | html;
+ filtered_access = uri.access ? uri.access : '' | html;
-%]
[%- IF num_uris == 1 -%]
<p class="rdetail_uri" property="offers" vocab="http://schema.org/" typeof="Offer">
END;
-%]
</a>
- [%-# ' - <span property="description">' _ filtered_note _ '</span>' IF filtered_note %]
+ [%- '<ul><li property="description">' _ filtered_note _ '</li></ul>' IF filtered_note %]
+ [%- '<ul><li property="description">' _ filtered_materials _ '</li></ul>' IF filtered_materials %]
+ [%- '<ul><li property="description">' _ filtered_access _ '</li></ul>' IF filtered_access %]
<link property="availability" href="http://schema.org/OnlineOnly" />
[%- IF attrs.gtin13; '
<meta property="gtin13" content="' _ attrs.gtin13 _ '" />'; END; %]