Adds Tainacan API to frontend modal list of exposers.
This commit is contained in:
parent
220677d139
commit
cfcbbe5fb0
|
@ -162,7 +162,7 @@
|
|||
autoHide: false,
|
||||
placement: 'bottom'
|
||||
}"
|
||||
@click="exposerMapper.linkCopied = pagedLink; copyTextToClipboard(exposerBaseURL + '&exposer=' + selectedExposer.slug + '&mapper=' + exposerMapper.name + '&paged=' + pagedLink)">
|
||||
@click="exposerMapper.linkCopied = pagedLink; copyTextToClipboard(selectedExposer.slug != 'tainacan-api' ? (exposerBaseURL + '&exposer=' + selectedExposer.slug + '&mapper=' + exposerMapper.name + '&paged=' + pagedLink) : exposerBaseURL + '&paged=' + pagedLink)">
|
||||
<span class="icon">
|
||||
<i class="tainacan-icon tainacan-icon-20px tainacan-icon-url"/>
|
||||
</span>
|
||||
|
@ -183,7 +183,7 @@
|
|||
readonly
|
||||
autofocus
|
||||
type="text"
|
||||
:value="exposerBaseURL + '&exposer=' + selectedExposer.slug + '&mapper=' + exposerMapper.name + '&paged=' + pagedLink">
|
||||
:value="selectedExposer.slug != 'tainacan-api' ? (exposerBaseURL + '&exposer=' + selectedExposer.slug + '&mapper=' + exposerMapper.name + '&paged=' + pagedLink) : exposerBaseURL + '&paged=' + pagedLink">
|
||||
</div>
|
||||
<a
|
||||
:download="(collectionId != undefined ? collectionName : $i18n.get('repository')) + ' ' + $i18n.get('items') + ' ' + $i18n.get('label_page') + ' ' + pagedLink"
|
||||
|
@ -196,7 +196,7 @@
|
|||
autoHide: false,
|
||||
placement: 'bottom'
|
||||
}"
|
||||
:href="exposerBaseURL + '&exposer=' + selectedExposer.slug + '&mapper=' + exposerMapper.name + '&paged=' + pagedLink">
|
||||
:href="selectedExposer.slug != 'tainacan-api' ? (exposerBaseURL + '&exposer=' + selectedExposer.slug + '&mapper=' + exposerMapper.name + '&paged=' + pagedLink) : exposerBaseURL + '&paged=' + pagedLink">
|
||||
<span class="icon">
|
||||
<i class="tainacan-icon tainacan-icon-18px tainacan-icon-openurl"/>
|
||||
</span>
|
||||
|
@ -269,6 +269,10 @@ export default {
|
|||
// Removes View Mode
|
||||
if (currentParams.view_mode != undefined)
|
||||
delete currentParams.view_mode;
|
||||
|
||||
// Removes Admin View Mode
|
||||
if (currentParams.admin_view_mode != undefined)
|
||||
delete currentParams.admin_view_mode;
|
||||
|
||||
// Handles pagination of this link
|
||||
delete currentParams.paged;
|
||||
|
@ -286,7 +290,17 @@ export default {
|
|||
return tainacan_plugin.theme_items_list_url;
|
||||
},
|
||||
availableExposers() {
|
||||
return this.getAvailableExposers();
|
||||
let exposers = this.getAvailableExposers();
|
||||
|
||||
exposers.unshift({
|
||||
accept_no_mapper: true,
|
||||
class_name: 'API',
|
||||
mappers: [],
|
||||
name: this.$i18n.get('label_tainacan_api'),
|
||||
description: this.$i18n.get('info_tainacan_api'),
|
||||
slug: 'tainacan-api'
|
||||
});
|
||||
return exposers;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
|
@ -364,6 +364,7 @@ return apply_filters( 'tainacan-admin-i18n', [
|
|||
'label_items_list' => __( 'Items List', 'tainacan' ),
|
||||
'label_list_pagination' => __( 'List pagination', 'tainacan' ),
|
||||
'label_sort_visualization' => __( 'Sorting and visualization control', 'tainacan' ),
|
||||
'label_tainacan_api' => __( 'Tainacan API', 'tainacan' ),
|
||||
|
||||
// Instructions. More complex sentences to guide user and placeholders
|
||||
'instruction_delete_selected_collections' => __( 'Delete selected collections', 'tainacan' ),
|
||||
|
@ -537,6 +538,7 @@ return apply_filters( 'tainacan-admin-i18n', [
|
|||
'info_url_copied' => __( 'URL link copied', 'tainacan' ),
|
||||
'info_other_item_listing_options' => __('Other items listing options: ', 'tainacan'),
|
||||
'info_send_email' => __('The exporter may take a while depending on the size of your collection. Check this option to receive an e-mail when the process is done. You can also check the process status visiting the', 'tainacan'),
|
||||
'info_tainacan_api' => __('Tainacan API on JSON format.', 'tainacan'),
|
||||
|
||||
// Tainacan Metadatum Types
|
||||
'tainacan-text' => __( 'Text', 'tainacan' ),
|
||||
|
|
Loading…
Reference in New Issue