Given a 110 / 710 field, when generating the record details for authors
and contributors we can declare an http://schema.org/Organization
itemtype rather than just jamming the name under the "contributor"
property. This is more in accordance with schema.org directions.
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
IF type == 'author';
IF args.schema.itemtype && args.schema.itemtype.match('MusicAlbum');
iprop = ' itemtype="http://schema.org/MusicGroup" itemscope itemprop="byArtist"';
- ELSE;
+ ELSIF tag.substr(1,2) == '00';
iprop = ' itemtype="http://schema.org/Person" itemscope itemprop="author"';
+ ELSE;
+ iprop = ' itemtype="http://schema.org/Organization" itemscope itemprop="author"';
END;
ELSIF type == 'added';
- iprop = ' itemprop="contributor"';
+ IF tag.substr(1,2) == '00';
+ iprop = ' itemtype="http://schema.org/Person" itemscope itemprop="contributor"';
+ ELSE;
+ iprop = ' itemtype="http://schema.org/Organization" itemscope itemprop="contributor"';
+ END;
END;
'<a href="' _ url _ '"' _ iprop _ '>';
IF iprop; '<span itemprop="name">'; END;