Lists special fields when avaialble if no metadata was found from source.
This commit is contained in:
parent
4f7bc12f1b
commit
6d69934476
|
@ -82,7 +82,17 @@
|
|||
<template v-if="importerSourceInfo.source_metadata.length <= 0 && !isLoading">
|
||||
<br>
|
||||
<p>{{ $i18n.get('info_no_metadata_source_file') }}</p>
|
||||
<p>{{ $i18n.get('info_special_fields_available') }}</p>
|
||||
<p v-if="importerSourceInfo.source_special_fields && importerSourceInfo.source_special_fields.length > 0">
|
||||
{{ $i18n.get('info_special_fields_available') }}
|
||||
<ul style="list-style: disc; margin-left: 1rem; font-style: italic;">
|
||||
<li
|
||||
:key="specialFieldIndex"
|
||||
v-for="(specialField, specialFieldIndex) of importerSourceInfo.source_special_fields">
|
||||
{{ specialField }}
|
||||
</li>
|
||||
</ul>
|
||||
</p>
|
||||
<p v-else>{{ $i18n.get('info_no_special_fields_available') }}</p>
|
||||
</template>
|
||||
<b-modal
|
||||
@close="onMetadatumEditionCanceled()"
|
||||
|
|
|
@ -596,7 +596,8 @@ return apply_filters( 'tainacan-admin-i18n', [
|
|||
'info_target_collection_helper' => __( 'The collection where imported item will be added.', 'tainacan' ),
|
||||
'info_source_file_upload' => __( 'The file containing the data to be imported.', 'tainacan' ),
|
||||
'info_no_metadata_source_file' => __( 'No metadata was found from the source file.', 'tainacan' ),
|
||||
'info_special_fields_available' => __( 'Some metadata may be set by special fields such as id, status, attachments, etc...', 'tainacan' ),
|
||||
'info_no_special_fields_available' => __( 'No special field was found.', 'tainacan' ),
|
||||
'info_special_fields_available' => __( 'The following special fields were found:', 'tainacan' ),
|
||||
'info_metadata_mapping_helper' => __( 'Map each file metadata with the corresponding one in selected collection.', 'tainacan' ),
|
||||
'info_upload_a_source_to_see_metadata' => __( 'Upload a source file to load metadata.', 'tainacan' ),
|
||||
'info_select_collection_to_list_metadata' => __( 'Select a target collection to list metadata.', 'tainacan' ),
|
||||
|
|
Loading…
Reference in New Issue