fix #36 Bielefeld: Identifier für Link in Verbundkatalog fehlen

This commit is contained in:
Felix Lohmeier 2021-05-28 13:47:14 +02:00
parent 5c727fdbcd
commit 1b5f3000bc
1 changed files with 3 additions and 3 deletions

View File

@ -88,9 +88,9 @@ with(cross(cells['index'].value, 'bielefeld' , 'index'), rows,
forEach(filter(rows, r, isNonBlank(r.cells['relatedItem - identifier'].value)), r, forEach(filter(rows, r, isNonBlank(r.cells['relatedItem - identifier'].value)), r,
' <identifier' + forNonBlank(r.cells['relatedItem - identifier - type'].value, v, ' type="' + v.escape('xml') + '"', '') + '>' + r.cells['relatedItem - identifier'].value.escape('xml') + '</identifier>' + '\n' ' <identifier' + forNonBlank(r.cells['relatedItem - identifier - type'].value, v, ' type="' + v.escape('xml') + '"', '') + '>' + r.cells['relatedItem - identifier'].value.escape('xml') + '</identifier>' + '\n'
).join('') + ).join('') +
forNonBlank(cells['hbz'].value, v, forEach(filter(rows, r, isNonBlank(r.cells['hbz'].value)), r,
' <identifier type="sys">' + v.escape('xml') + '</identifier>' + '\n' ' <identifier type="sys">' + r.cells['hbz'].value.escape('xml') + '</identifier>' + '\n'
, '') + ).join('') +
forEach(filter(rows, r, isNonBlank(r.cells['rights_url'].value)), r, forEach(filter(rows, r, isNonBlank(r.cells['rights_url'].value)), r,
' <accessCondition type="use and reproduction" xlink:href="' + r.cells['rights_url'].value.escape('xml') + '">' + r.cells['rights'].value.escape('xml') + '</accessCondition>' + '\n' ' <accessCondition type="use and reproduction" xlink:href="' + r.cells['rights_url'].value.escape('xml') + '">' + r.cells['rights'].value.escape('xml') + '</accessCondition>' + '\n'
).join('') + ).join('') +