From 0cbd2fb20b81fc55c5a95bc1a0d59f7f69c3428e Mon Sep 17 00:00:00 2001 From: Diego Pino Navarro Date: Thu, 31 Dec 2020 18:34:43 -0500 Subject: [PATCH] Fixing tiny things on displays. Good @alliomeria this is not including yet all your new elements from the forms. But its a step forward. We may want to do more here for RC2! --- d8content/metadatadisplay_entity_01.json | 2 +- d8content/metadatadisplay_entity_02.json | 2 +- .../metadatadisplays/linked_data.twig.txt | 49 +++++----- .../object_description.twig.txt | 97 +++++++++++++------ 4 files changed, 95 insertions(+), 55 deletions(-) diff --git a/d8content/metadatadisplay_entity_01.json b/d8content/metadatadisplay_entity_01.json index bb9ec4ae..db8562cf 100644 --- a/d8content/metadatadisplay_entity_01.json +++ b/d8content/metadatadisplay_entity_01.json @@ -4,7 +4,7 @@ "id": "bde1cb38-e1b8-4f2d-bc1c-bff646d2e8b7", "attributes": { "name": "Object Description", - "twig": "
\n{% if node.id %}\n {% set nodeurl = url('entity.node.canonical', {'node': node.id}, {'absolute': true}) %}\n{% else %}\n {% set nodeurl = '' ~ '\/iiif\/manifest' %}\n{% endif%}\n {% if attribute(data, 'ismemberof') %}\n {% if attribute(data, 'ismemberof') is iterable %}\n {% for collection in attribute(data, 'ismemberof')%}\n {% set parentnode = bamboo_load_entity('node', collection) %}\n {% set parentnodeurl = url('entity.node.canonical', {'node': collection}, {'absolute': true}) %}\n