Skip to content

Commit

Permalink
add doc-type and remove members
Browse files Browse the repository at this point in the history
  • Loading branch information
hjohns committed Apr 15, 2024
1 parent 315b845 commit 3a8469d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions prez-components/src/custom-components/CustomItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,22 @@ const props = defineProps<{focusNode: PrezNode, properties: ItemProperties}>();
</div>
</div>

<div class="flex-row">
<div>Defined by: </div>
<div v-if="props.properties?.['http://purl.org/dc/terms/isPartOf']" class="flex-row">
<div>Defined By: </div>
<PrezUITerm
v-if="props.properties?.['http://purl.org/dc/terms/isPartOf']"
v-for="o in props.properties['http://purl.org/dc/terms/isPartOf'].objects"
v-bind="o"
/>
</div>

<div v-if="props.properties?.['http://www.opengis.net/def/metamodel/ogc-na/doctype']" class="flex-row">
<div>Sub-type: </div>
<PrezUITerm
v-for="o in props.properties['http://www.opengis.net/def/metamodel/ogc-na/doctype'].objects"
v-bind="o"
/>
</div>

<p class="desc">
<template v-if="props.focusNode">{{ props.focusNode.description?.value }}</template>
</p>
Expand Down
2 changes: 1 addition & 1 deletion prez-ui/components/ItemLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function filterDocumentProps(properties?: PrezProperties) {
</div>
<CustomItem :focusNode="props.data?.focusNode" :properties="props.data?.properties"></CustomItem>
<slot></slot>
<PrezUIObjectTable :data="{...tableData, properties: filterDocumentProps(tableData?.properties)}" :key="Object.keys(props.data?.properties || {}).length" :loading="props.loading" />
<PrezUIObjectTable :data="{...tableData, members: undefined, properties: filterDocumentProps(tableData?.properties)}" :key="Object.keys(props.data?.properties || {}).length" :loading="props.loading" />
<br/>
<img v-tooltip="'Widgets can be used to output custom diagrams'" src="/diagram.png" style="width:500px;"/>
Expand Down

0 comments on commit 3a8469d

Please sign in to comment.