+ class="block">
-
-
\ No newline at end of file
diff --git a/src/admin/pages/lists/items-page.vue b/src/admin/pages/lists/items-page.vue
index b1239293c..a69a389f6 100644
--- a/src/admin/pages/lists/items-page.vue
+++ b/src/admin/pages/lists/items-page.vue
@@ -381,7 +381,7 @@
- {{ $i18n.get('exit') }}
+ {{ $i18n.get('back') }}
diff --git a/src/admin/scss/_tags.scss b/src/admin/scss/_tags.scss
index c8070c14d..4c2c23164 100644
--- a/src/admin/scss/_tags.scss
+++ b/src/admin/scss/_tags.scss
@@ -14,6 +14,7 @@
.tag {
background-color: white;
margin-bottom: 0 !important;
+ margin-right: 4px !important;
max-width: calc(100% - 21px);
justify-content: flex-start;
overflow: hidden;
diff --git a/src/admin/tainacan-admin-i18n.php b/src/admin/tainacan-admin-i18n.php
index 0382778f2..5f96b5ef0 100644
--- a/src/admin/tainacan-admin-i18n.php
+++ b/src/admin/tainacan-admin-i18n.php
@@ -58,10 +58,10 @@ return apply_filters( 'tainacan-admin-i18n', [
'split' => __( 'Split', 'tainacan' ),
'unified' => __( 'Unified', 'tainacan' ),
'add_another_search_criterion' => __( 'Add another search criterion', 'tainacan' ),
+ 'add_one_search_criterion' => __( 'Add one search criterion', 'tainacan' ),
'clear_search' => __( 'Clear search', 'tainacan' ),
'run' => __( 'Run', 'tainacan' ),
'edit_search' => __( 'Edit search', 'tainacan' ),
- 'exit' => __( 'Exit', 'tainacan' ),
// Wordpress Status
'publish' => __( 'Publish', 'tainacan' ),
diff --git a/src/importer/class-tainacan-csv.php b/src/importer/class-tainacan-csv.php
index 4672fd19f..b1be5210d 100644
--- a/src/importer/class-tainacan-csv.php
+++ b/src/importer/class-tainacan-csv.php
@@ -45,7 +45,7 @@ class CSV extends Importer {
$processedItem = [];
$headers = $this->get_source_metadata();
- $this->add_log('Proccessing item index ' . $index . ' in collection ' . $collection_id['id'] );
+ $this->add_log('Proccessing item index ' . $index . ' in collection ' . $collection_definition['id'] );
// search the index in the file and get values
$file = new \SplFileObject( $this->tmp_file, 'r' );
$file->setFlags(\SplFileObject::SKIP_EMPTY);
diff --git a/src/js/store/modules/metadata/actions.js b/src/js/store/modules/metadata/actions.js
index cda5a7ad0..8061d6ede 100644
--- a/src/js/store/modules/metadata/actions.js
+++ b/src/js/store/modules/metadata/actions.js
@@ -1,6 +1,8 @@
import axios from '../../../axios/axios';
export const fetchMetadata = ({commit}, {collectionId, isRepositoryLevel, isContextEdit, includeDisabled}) => {
+ commit('cleanMetadata');
+
return new Promise((resolve, reject) => {
let endpoint = '';
if (!isRepositoryLevel)
diff --git a/src/js/store/modules/metadata/mutations.js b/src/js/store/modules/metadata/mutations.js
index fdb49fbf9..316e971bf 100644
--- a/src/js/store/modules/metadata/mutations.js
+++ b/src/js/store/modules/metadata/mutations.js
@@ -22,3 +22,7 @@ export const setMetadatumTypes = (state, metadatumTypes) => {
export const setMetadatumMappers = (state, metadatumMappers) => {
state.metadatumMappers = metadatumMappers;
}
+
+export const cleanMetadata = (state) => {
+ state.metadata = [];
+}
\ No newline at end of file
diff --git a/src/setup-db.php b/src/setup-db.php
index 3df1291cf..93876a717 100644
--- a/src/setup-db.php
+++ b/src/setup-db.php
@@ -40,7 +40,7 @@ function tainacan_create_bd_process_db() {
if(empty($column_exists)) {
$wpdb->query("
ALTER TABLE {$wpdb->prefix}tnc_bg_process
- ADD name text NOT NULL,
+ ADD name text NOT NULL
");
}