Checks if sourceMetadatum is an object to allow mapping to a compound metadata in importer.
This commit is contained in:
parent
22d2cd57b3
commit
ea7484425c
|
@ -108,7 +108,7 @@
|
||||||
v-for="(collectionMetadatum, metadatumIndex) of collectionNonChildMetadata"
|
v-for="(collectionMetadatum, metadatumIndex) of collectionNonChildMetadata"
|
||||||
:key="metadatumIndex"
|
:key="metadatumIndex"
|
||||||
:value="collectionMetadatum.id"
|
:value="collectionMetadatum.id"
|
||||||
:disabled="checkIfMetadatumIsAvailable(collectionMetadatum.id)">
|
:disabled="checkIfMetadatumIsAvailable(collectionMetadatum.id) || ( checkIfMetadatumIsCompound(collectionMetadatum) && sourceMetadatum.indexOf('compound|(') < 0 )">
|
||||||
<span class="metadatum-name">
|
<span class="metadatum-name">
|
||||||
{{ collectionMetadatum.name }}
|
{{ collectionMetadatum.name }}
|
||||||
</span>
|
</span>
|
||||||
|
@ -139,7 +139,7 @@
|
||||||
v-for="(collectionMetadatum, metadatumIndex) of collectionNonChildMetadata"
|
v-for="(collectionMetadatum, metadatumIndex) of collectionNonChildMetadata"
|
||||||
:key="metadatumIndex"
|
:key="metadatumIndex"
|
||||||
:value="collectionMetadatum.id"
|
:value="collectionMetadatum.id"
|
||||||
:disabled="!checkIfMetadatumIsCompound(collectionMetadatum) || checkIfMetadatumIsAvailable(collectionMetadatum.id)">
|
:disabled="!checkIfMetadatumIsCompound(collectionMetadatum) || checkIfMetadatumIsAvailable(collectionMetadatum.id) || typeof sourceMetadatum != 'object' || !Object.entries(sourceMetadatum)[0]">
|
||||||
<span class="metadatum-name">
|
<span class="metadatum-name">
|
||||||
{{ collectionMetadatum.name }}
|
{{ collectionMetadatum.name }}
|
||||||
</span>
|
</span>
|
||||||
|
|
Loading…
Reference in New Issue