VIVO-123 - handle malformed data more gracefully on manage pubs page

This commit is contained in:
tworrall 2013-06-06 15:44:16 -04:00
parent fe1b52ab49
commit 1dde11c581
2 changed files with 11 additions and 5 deletions

View file

@ -82,10 +82,11 @@ public class ManagePublicationsForIndividualController extends FreemarkerHttpSer
+ "SELECT DISTINCT ?subclass ?authorship (str(?label) as ?title) ?pub ?hideThis WHERE { \n"
+ " ?subject core:authorInAuthorship ?authorship . \n"
+ " OPTIONAL { ?authorship core:linkedInformationResource ?pub . "
+ " ?pub rdfs:label ?label } \n"
+ " OPTIONAL { ?pub vitro:mostSpecificType ?subclass . \n"
+ " ?subclass rdfs:subClassOf core:InformationResource } \n"
+ " OPTIONAL { ?authorship core:hideFromDisplay ?hideThis } \n "
+ " ?pub rdfs:label ?label \n"
+ " OPTIONAL { ?pub vitro:mostSpecificType ?subclass . \n"
+ " ?subclass rdfs:subClassOf core:InformationResource } \n"
+ " } \n"
+ " OPTIONAL { ?authorship core:hideFromDisplay ?hideThis } \n"
+ "} ORDER BY ?subclass ?title";