diff --git a/productMods/config/listViewConfig-informationResourceInAuthorship.xml b/productMods/config/listViewConfig-informationResourceInAuthorship.xml index ad97811c..9ba1da67 100644 --- a/productMods/config/listViewConfig-informationResourceInAuthorship.xml +++ b/productMods/config/listViewConfig-informationResourceInAuthorship.xml @@ -31,7 +31,14 @@ } OPTIONAL { ?authorship core:relates ?author . ?author a vcard:Kind . - ?author rdfs:label ?authorName + ?author vcard:hasName ?vName . + ?vName vcard:givenName ?firstName . + ?vName core:middleName ?middleName . + ?vName vcard:familyName ?lastName . + bind ( COALESCE(?firstName, "") As ?firstName1) . + bind ( COALESCE(?middleName, "") As ?middleName1) . + bind ( COALESCE(?lastName, "") As ?lastName1) . + bind (concat(str(?lastName1 + ", "),str(?middleName1 + " "),str(?firstName1)) as ?authorName) . OPTIONAL { ?authorship core:relates ?author . ?author a vcard:Kind . @@ -97,7 +104,10 @@ ?authorship ?authorshipProperty ?authorshipValue . ?authorship core:relates ?author . ?author a vcard:Kind . - ?author rdfs:label ?authorName . + ?author vcard:hasName ?vName . + ?vName vcard:familyName ?lastName . + ?vName vcard:givenName ?firstName . + ?vName core:middleName ?middleName . ?author vitro:mostSpecificType ?subclass . ?subclass rdfs:subClassOf vcard:Kind } WHERE { @@ -113,13 +123,30 @@ ?authorship a core:Authorship . ?authorship core:relates ?author . ?author a vcard:Kind . - ?author rdfs:label ?authorName + ?author vcard:hasName ?vName . + ?vName vcard:familyName ?lastName . } UNION { + ?subject ?property ?authorship . + ?authorship a core:Authorship . + ?authorship core:relates ?author . + ?author a vcard:Kind . + ?author vcard:hasName ?vName . + ?vName vcard:familyName ?lastName . + ?vName vcard:givenName ?firstName . + } UNION { + ?subject ?property ?authorship . + ?authorship a core:Authorship . + ?authorship core:relates ?author . + ?author a vcard:Kind . + ?author vcard:hasName ?vName . + ?vName vcard:familyName ?lastName . + ?vName vcard:givenName ?firstName . + ?vName core:middleName ?middleName . + } UNION { ?subject ?property ?authorship . ?authorship a core:Authorship . ?authorship core:relates ?author . ?author a vcard:Kind . - ?author rdfs:label ?authorName . ?author vitro:mostSpecificType ?subclass . ?subclass rdfs:subClassOf vcard:Kind }