Closed flamsens closed 4 years ago
IiifServer version 3.5.16 - Option 'Link for descriptive metadata' enabled
When an item has a value referencing another item, the resulting metadata in the IIIF manifest contains an empty link (empty href):
{ label: "Source", value: "<a class="resource-link" href=""><span class="resource-name">Punch, or the London Charivari</span></a>" }
I fixed this by altering function 'valuesAsHtml' in 'scr/View/Helper/IiifManifest.php':
old:
if ($v->type() === 'resource') { $r = $v->valueResource();
new:
if ( ( $v->type() === 'resource' || $v->type() === 'resource:item' ) && $r = $v->valueResource() ) {
Thanks, it's integrated and many other things in version 3.6.0.beta-4. It requires last versions of modules Image Server, UniversalViewer or Mirador too.
IiifServer version 3.5.16 - Option 'Link for descriptive metadata' enabled
When an item has a value referencing another item, the resulting metadata in the IIIF manifest contains an empty link (empty href):
{ label: "Source", value: "<a class="resource-link" href=""><span class="resource-name">Punch, or the London Charivari</span></a>" }
I fixed this by altering function 'valuesAsHtml' in 'scr/View/Helper/IiifManifest.php':
old:
if ($v->type() === 'resource') { $r = $v->valueResource();
new:
if ( ( $v->type() === 'resource' || $v->type() === 'resource:item' ) && $r = $v->valueResource() ) {