Closed chenejac closed 5 years ago
tlw72 said:
The template, propStatement-informationResourceInAuthorship.ftl, also needs to be updated at this line:
It should be changed to:
${statement.authorName!}
This will escape the exception and allow the template to be rendered.
Mike Conlon said:
Use sample data with vcard authors to test.
Benjamin Gross said:
The problem appears to be in the concat part of the list view config.
bind (concat(str(?lastName1 + ", "),str(?firstName1 + " "),str(?middleName1)) as ?authorName) .
The solution is to add the comma and space strings via the concat rather than with the + operator.
bind (concat(str(?lastName1),", ",str(?firstName1)," ",str(?middleName1)) as ?authorName) .
vCards as authors DO actually work in 1.10... but if the name has language tags the concat breaks as written.
Mike Conlon said:
Perfect. I'll do a pull request tomorrow. Also unblocks adding vcards to sample-data.n3 and unblocks my sample-data-generator.
I'll include Tim's improvement to the template as well.
Benjamin Gross said:
Submitted a pull request already, perhaps you can review? :) https://github.com/vivo-project/VIVO/pull/87
Mike Conlon said:
Yes. Will review tomorrow.
This issue is related to #3194
Mike Conlon (Migrated from VIVO-1603) said:
vcards as authors cause an exception to be thrown for any publication containing a vcard author.
The problem appears to be in a listview query related to publications, updated in 1.10 to support precise-subquery.
The bug escaped testing, as the sample data does not contain vcard authors.