Koha/koha-tmpl/opac-tmpl/bootstrap/en/includes/item-status-schema-org.inc
Owen Leonard 850628743b Bug 10309: (follow-up) Updates for Bug 6594, Schema.org structured data
This patch adds the changes from Bug 6594:

"To support schema.org processors, such as Google, Bing, and Yandex,
structure our data so that it has machine-readable attributes. This pass
declares the CreativeWork sub-types as well as Product for the main
bibliographic record details, and uses the Offer type for holdings
information per the W3C Schema Bib Extend community group discussions."

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>

Tested against linter.structured-data.org, microdata present
No errors.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
2013-10-14 23:13:14 +00:00

11 lines
541 B
HTML

[% USE KohaAuthorisedValues %]
[% IF ( item.damaged or item.datedue or item.itemlost or item.transfertwhen or item.waiting ) %]
<link property="availability" href="http://schema.org/OutOfStock" />
[% ELSIF ( item.withdrawn ) %]
<link property="availability" href="http://schema.org/Discontinued" />
[% ELSIF ( item.itemnotforloan or item.notforloan_per_itemtype ) %]
<link property="availability" href="http://schema.org/InStoreOnly" />
[% ELSE %]
<link property="availability" href="http://schema.org/InStock" />
[% END %]