From c9f0053a416aa8e1b407c9cf83ef305f530fbced Mon Sep 17 00:00:00 2001 From: walisonjose Date: Thu, 12 Jul 2018 13:52:28 -0300 Subject: [PATCH 01/18] Update .travis.yml --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 815b27c33..bdd3b69b6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,7 +23,8 @@ apt: services: - mysql before_install: -- sudo apt-get install sshpass +- sudo apt-get update +- sudo apt-get install sshpass - sudo service mysql restart - mysql -e 'CREATE DATABASE IF NOT EXISTS test;' install: From 036fc4448db59310e8382181221234e127e2703b Mon Sep 17 00:00:00 2001 From: walisonjose Date: Thu, 12 Jul 2018 13:57:23 -0300 Subject: [PATCH 02/18] Update .travis.yml --- .travis.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index bdd3b69b6..91bd066e8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,7 +23,6 @@ apt: services: - mysql before_install: -- sudo apt-get update - sudo apt-get install sshpass - sudo service mysql restart - mysql -e 'CREATE DATABASE IF NOT EXISTS test;' From ff6e6a8b0ec6752b3037637605c5f91c86ae22c9 Mon Sep 17 00:00:00 2001 From: walisonjose Date: Thu, 12 Jul 2018 14:03:55 -0300 Subject: [PATCH 03/18] Update .travis.yml --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 91bd066e8..bdd3b69b6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,6 +23,7 @@ apt: services: - mysql before_install: +- sudo apt-get update - sudo apt-get install sshpass - sudo service mysql restart - mysql -e 'CREATE DATABASE IF NOT EXISTS test;' From 6f5db8f780d4e3baf8179ba1330e60e19a10b75d Mon Sep 17 00:00:00 2001 From: walisonjose Date: Thu, 12 Jul 2018 14:51:20 -0300 Subject: [PATCH 04/18] Update .travis.yml --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index bdd3b69b6..a4811ac4f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,4 @@ -sudo: false +sudo: true language: php php: - 7.1 From e36ac34936a7c1404105abc09c91724c24a9c6c5 Mon Sep 17 00:00:00 2001 From: Leo Germani Date: Sat, 14 Jul 2018 13:16:05 -0300 Subject: [PATCH 05/18] disable compound metadata (refs #76) --- src/classes/tainacan-creator.php | 2 +- tests/test-metadata.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/classes/tainacan-creator.php b/src/classes/tainacan-creator.php index acf0f4927..63e428cdc 100644 --- a/src/classes/tainacan-creator.php +++ b/src/classes/tainacan-creator.php @@ -102,7 +102,7 @@ $Tainacan_Metadata->register_metadata_type('Tainacan\Metadata_Types\Numeric'); $Tainacan_Metadata->register_metadata_type('Tainacan\Metadata_Types\Selectbox'); $Tainacan_Metadata->register_metadata_type('Tainacan\Metadata_Types\Relationship'); $Tainacan_Metadata->register_metadata_type('Tainacan\Metadata_Types\Taxonomy'); -$Tainacan_Metadata->register_metadata_type('Tainacan\Metadata_Types\Compound'); +//$Tainacan_Metadata->register_metadata_type('Tainacan\Metadata_Types\Compound'); $Tainacan_Filters = \Tainacan\Repositories\Filters::get_instance(); diff --git a/tests/test-metadata.php b/tests/test-metadata.php index d6c3a9786..ac5edfbd3 100644 --- a/tests/test-metadata.php +++ b/tests/test-metadata.php @@ -194,7 +194,7 @@ class Metadata extends TAINACAN_UnitTestCase { */ function test_metadata_metadata_type(){ $Tainacan_Metadata = \Tainacan\Repositories\Metadata::get_instance(); - $this->assertEquals( 8, sizeof( $Tainacan_Metadata->fetch_metadata_types() ) ); + $this->assertEquals( 7, sizeof( $Tainacan_Metadata->fetch_metadata_types() ) ); } From 4c6e383202144f8f28174a1571225f7e16f36b84 Mon Sep 17 00:00:00 2001 From: mateuswetah Date: Mon, 16 Jul 2018 08:49:41 -0300 Subject: [PATCH 06/18] Fixes button redirect to Term Page on Term Edition Form --- src/admin/components/edition/term-edition-form.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/admin/components/edition/term-edition-form.vue b/src/admin/components/edition/term-edition-form.vue index 5fc84a180..3a52eb1b7 100644 --- a/src/admin/components/edition/term-edition-form.vue +++ b/src/admin/components/edition/term-edition-form.vue @@ -92,13 +92,13 @@
- +
+
@@ -247,6 +255,7 @@ - + + +    {{ $i18n.get('label_visualization') }} - + {{ $i18n.get('label_table') }} - + {{ $i18n.get('label_cards') }} - - - {{ $i18n.get('label_records') }} - - + {{ $i18n.get('label_grid') }} + + + {{ $i18n.get('label_records') }} + @@ -1002,8 +1022,9 @@ .gray-icon, .gray-icon .icon { color: $tainacan-placeholder-color !important; + padding-right: 10px; } - .gray-icon .icon i::before, .gray-icon i::before { + .gray-icon .icon i::before, .gray-icon i::before { font-size: 21px !important; } @@ -1018,11 +1039,13 @@ div.dropdown-content { padding: 0; - .metadata-options-container { max-height: 240px; overflow: auto; } + .dropdown-item { + padding: 0.25rem 1.0rem 0.25rem 0.75rem; + } .dropdown-item span{ vertical-align: sub; } diff --git a/src/admin/scss/_dropdown-and-autocomplete.scss b/src/admin/scss/_dropdown-and-autocomplete.scss index 49d49bb0b..1e8989ff4 100644 --- a/src/admin/scss/_dropdown-and-autocomplete.scss +++ b/src/admin/scss/_dropdown-and-autocomplete.scss @@ -30,7 +30,7 @@ .b-checkbox { width: 100% }; &:hover { background-color: $primary-lighter; } .is-small { color: gray; } - &.is-active { background-color: white; } + &.is-active { background-color: $primary-light; } } } } diff --git a/src/admin/scss/_tables.scss b/src/admin/scss/_tables.scss index 219f92a11..4feca1a6c 100644 --- a/src/admin/scss/_tables.scss +++ b/src/admin/scss/_tables.scss @@ -14,6 +14,8 @@ table.tainacan-table { width: 100%; + border-collapse: separate; + border-spacing: 0; .checkbox-cell { min-width: 38px; diff --git a/src/admin/theme-items-list.vue b/src/admin/theme-items-list.vue index af47d5c6c..987d6d241 100644 --- a/src/admin/theme-items-list.vue +++ b/src/admin/theme-items-list.vue @@ -311,9 +311,16 @@ export default { font-size: 21px; } } + .dropdown-item { + padding: 0.25rem 1.35rem 0.25rem 0.25rem; + } .view-mode-icon { - margin-right: 8px !important; - margin-top: 2px; + margin-right: 0px !important; + margin-top: 1px; + + &.icon i::before, .gray-icon i::before { + font-size: 19px !important; + } } } From 8aa42598c77224df430ccb089c71575983217bc7 Mon Sep 17 00:00:00 2001 From: walisonjose Date: Mon, 16 Jul 2018 11:07:40 -0300 Subject: [PATCH 08/18] =?UTF-8?q?Testando=20Deploy=20autom=C3=A1tico=20em?= =?UTF-8?q?=20containers=20Docker?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index a4811ac4f..bb7f754fc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -31,7 +31,7 @@ install: - echo -e "Install" - sudo mv ./tests/bootstrap-config-sample.php ./tests/bootstrap-config.php - sudo ./tests/bin/install-wp-tests.sh test travis "" /tmp/wordpress localhost latest - true + true - composer install - sudo mkdir /tmp/wordpress/wordpress-test/wp-content/uploads - sudo chmod -R 777 /tmp/wordpress/wordpress-test/wp-content/uploads From e3209839fbce4884526eca9c9a7d28179d9c8d32 Mon Sep 17 00:00:00 2001 From: walisonjose Date: Mon, 16 Jul 2018 11:19:06 -0300 Subject: [PATCH 09/18] Update .travis.yml --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index bb7f754fc..4f89e2550 100644 --- a/.travis.yml +++ b/.travis.yml @@ -54,6 +54,7 @@ before_deploy: - ssh-add /tmp/deploy_rsa - echo -e "Host $ssh_host\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config - ssh-add -l +#teste Crontab deploy: - provider: script script: sshpass -p '$ssh_password' ssh $ssh_user@$ssh_host sh /home/l3p/atualiza_git/atualiza_todos.sh #ssh $ssh_user@$ssh_host $script_deploy_tainacan From e8879b838677864958b7b6ba20552490f9f519b0 Mon Sep 17 00:00:00 2001 From: Jacson Passold Date: Mon, 16 Jul 2018 11:55:21 -0300 Subject: [PATCH 10/18] updating exposer docs --- docs/exporting-and-exposing.md | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/docs/exporting-and-exposing.md b/docs/exporting-and-exposing.md index f75bd3039..9cf805ef6 100644 --- a/docs/exporting-and-exposing.md +++ b/docs/exporting-and-exposing.md @@ -1,8 +1,8 @@ # Exporting and Exposing your Repository -When you buid a digital repository with Tainacan, you gain the ability to show it to the world in many different ways thanks to the power and flexibility of WordPress. +When you build a digital repository with Tainacan, you gain the ability to show it to the world in many different ways thanks to the power and flexibility of WordPress. -But sometimes you dont want just to have your collections browsable via web, you want to download a spreadsheet to work with or you want to make it availabe via APIs so it can be consumed by other applications or harvested by an aggregator. This page describe how Tainacan handle with these situations. +But sometimes you don’t want just to have your collections browsable via web, you want to download a spreadsheet to work with or you want to make it available via APIs so it can be consumed by other applications or harvested by an aggregator. This page describe how Tainacan handle with these situations. ## Mapping @@ -12,13 +12,13 @@ You do it by informing, for each metadatum you create, what is it relative in ea Tainacan is shipped with some Mapping standards that implement popular metadata standards. And it will be easy to create new standards. See more [details about mapping standards](mapping-standards.md). -You can also use these mapping standards as a pre-set when you create a new Collection. +You can also use these mapping standards as a preset when you create a new Collection. ## Exporting Exporting allows you to download the content of your repository to a file - or to multiple files. The format of the package you will download depends on the exporter you will use. Tainacan ships with a simple CSV exporter and a Tainacan-Package exporter, that allows you to export all the content of your collections, including the attachments, to import in another Tainacan instance. -Whatever exporter you choose to you use, you will be able to choose wether you want to download the collection as it is, which means, with the metadata the way the were created in Tainacan, or wether you want to download it in a mapped version. For example, if you mapped your collection to Dublin Core, you can download a CSV file either in Dublin Core format or in the original format. +Whatever exporter you choose to you use, you will be able to choose wether you want to download the collection as it is, which means, with the metadata the way the were created in Tainacan, or if you want to download it in a mapped version. For example, if you mapped your collection to Dublin Core, you can download a CSV file either in Dublin Core format or in the original format. Tainacan makes it very easy to developers to create new exporters and publish them as plugins anyone can use. @@ -32,6 +32,14 @@ Each exposer implements a different way of presenting your data in the API respo For example, the default JSON exposer supports any mapping and can serve your content exposing any metadata standard you mapped your content to. The decision is in the hands of the application that makes the request to your API. -On the other hand, OAI-PMH exposer only supports Dublin Core mapping and will allways serve content this way. +On the other hand, OAI-PMH exposer only supports Dublin Core mapping and will always serve content this way. Exposers are also really easy to develop and can be added to your Tainacan instance via plugins. + +## Exposing API + +Using exposing API is easy, need only to set some parameters to API call, for example to expose an Item with id 123 using XML format on site URI http://example.com, so we need to call API with this URI: http://example.com/wp-json/tainacan/v2/items/123 with this URI the Tainacan will return the Item 123 data, but with we send this parameter at body, exposer=xml, It will return a WordPress JSON with XML formatted in data propriety. Or with we want only the XML data, without JSON respond for example, we need only to put the expose parameter at URI, like: +http://example.com/wp-json/tainacan/v2/items/123?exposer=xml +Tainacan have support to metadata mapping, the parameter for using the mapper is mapper=[mapper], so for our last example, if we want a CSV, using dublin-core mapper exposing the content at CSV format, not JSON: +http://example.com/wp-json/tainacan/v2/items/123?exposer=xml&mapper=dublin-core + From 336fc70532107cce5c3fada4a007022f352ce4d6 Mon Sep 17 00:00:00 2001 From: walisonjose Date: Mon, 16 Jul 2018 13:27:19 -0300 Subject: [PATCH 11/18] Update .travis.yml --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 4f89e2550..f462ecabe 100644 --- a/.travis.yml +++ b/.travis.yml @@ -54,7 +54,7 @@ before_deploy: - ssh-add /tmp/deploy_rsa - echo -e "Host $ssh_host\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config - ssh-add -l -#teste Crontab +#teste Crontab2 deploy: - provider: script script: sshpass -p '$ssh_password' ssh $ssh_user@$ssh_host sh /home/l3p/atualiza_git/atualiza_todos.sh #ssh $ssh_user@$ssh_host $script_deploy_tainacan From f58cb7cc23555853e1424aa008e6d443aeed2f27 Mon Sep 17 00:00:00 2001 From: walisonjose Date: Mon, 16 Jul 2018 13:34:21 -0300 Subject: [PATCH 12/18] Update .travis.yml --- .travis.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index f462ecabe..bb7f754fc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -54,7 +54,6 @@ before_deploy: - ssh-add /tmp/deploy_rsa - echo -e "Host $ssh_host\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config - ssh-add -l -#teste Crontab2 deploy: - provider: script script: sshpass -p '$ssh_password' ssh $ssh_user@$ssh_host sh /home/l3p/atualiza_git/atualiza_todos.sh #ssh $ssh_user@$ssh_host $script_deploy_tainacan From ef2a7a9694ad33acb87ec7cc2606b82aa4a0f4c4 Mon Sep 17 00:00:00 2001 From: Mateus Machado Luna Date: Mon, 16 Jul 2018 13:48:55 -0300 Subject: [PATCH 13/18] New view modes icons and re-label Grid view mode as Thumbnail View mode. --- src/admin/pages/lists/items-page.vue | 18 +++++++++--------- src/admin/tainacan-admin-i18n.php | 1 - .../class-tainacan-theme-helper.php | 6 +++--- 3 files changed, 12 insertions(+), 13 deletions(-) diff --git a/src/admin/pages/lists/items-page.vue b/src/admin/pages/lists/items-page.vue index 4240ae585..106be9447 100644 --- a/src/admin/pages/lists/items-page.vue +++ b/src/admin/pages/lists/items-page.vue @@ -283,10 +283,10 @@ @@ -298,7 +298,7 @@ :value="'table'"> + icon="view-list"/> {{ $i18n.get('label_table') }} + icon="view-module"/> {{ $i18n.get('label_cards') }} - {{ $i18n.get('label_grid') }} + icon="apps"/> + {{ $i18n.get('label_thumbnail') }} + icon="view-column"/> {{ $i18n.get('label_records') }} diff --git a/src/admin/tainacan-admin-i18n.php b/src/admin/tainacan-admin-i18n.php index 2e94888f7..bfbe946be 100644 --- a/src/admin/tainacan-admin-i18n.php +++ b/src/admin/tainacan-admin-i18n.php @@ -227,7 +227,6 @@ return apply_filters( 'tainacan-admin-i18n', [ 'label_view_modes_available' => __( 'View modes available on theme', 'tainacan' ), 'label_warning' => __( 'Warning', 'tainacan' ), 'label_error' => __( 'Erro', 'tainacan' ), - 'label_grid' => __( 'Grid', 'tainacan' ), 'label_table' => __( 'Table', 'tainacan' ), 'label_cards' => __( 'Cards', 'tainacan' ), 'label_records' => __( 'Records', 'tainacan' ), diff --git a/src/theme-helper/class-tainacan-theme-helper.php b/src/theme-helper/class-tainacan-theme-helper.php index b36339196..b560793fd 100644 --- a/src/theme-helper/class-tainacan-theme-helper.php +++ b/src/theme-helper/class-tainacan-theme-helper.php @@ -52,21 +52,21 @@ class Theme_Helper { $this->register_view_mode('table', [ 'label' => __('Table', 'tainacan'), 'dynamic_metadata' => true, - 'icon' => '', + 'icon' => '', 'type' => 'component', ]); $this->register_view_mode('cards', [ 'label' => __('Cards view', 'tainacan'), 'dynamic_metadata' => false, 'description' => 'A cards view, displaying title, description, author name and creation date.', - 'icon' => '', + 'icon' => '', 'type' => 'component' ]); $this->register_view_mode('records', [ 'label' => __('Records view', 'tainacan'), 'dynamic_metadata' => true, 'description' => 'A records view, similiar to cards, but flexible for metadata', - 'icon' => '', + 'icon' => '', 'type' => 'component' ]); } From 852a9b290a3e917011c00f83b26de86493ca9923 Mon Sep 17 00:00:00 2001 From: walisonjose Date: Mon, 16 Jul 2018 14:07:27 -0300 Subject: [PATCH 14/18] Update .travis.yml --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index bb7f754fc..794a98f30 100644 --- a/.travis.yml +++ b/.travis.yml @@ -44,7 +44,7 @@ install: - echo '#!/bin/bash' |sudo tee /usr/local/bin/phpunit > /dev/null - echo 'if ( php -v|grep -q --only-matching --perl-regexp "5\.\\d+\.\\d+" );then /usr/local/bin/phpunit-5 $@;else /usr/local/bin/phpunit-6 $@;fi;exit $?' |sudo tee -a /usr/local/bin/phpunit > /dev/null - sudo chmod +x /usr/local/bin/phpunit -script: /usr/local/bin/phpunit # phpunit +script: /usr/local/bin/phpunit # phpunit before_deploy: - echo "Seção executada antes do deploy!" - openssl aes-256-cbc -K $encrypted_cb93ef43fcd2_key -iv $encrypted_cb93ef43fcd2_iv From 632e364cba915d6ba0aec069346dee3b3480b8c2 Mon Sep 17 00:00:00 2001 From: Mateus Machado Luna Date: Mon, 16 Jul 2018 14:28:08 -0300 Subject: [PATCH 15/18] Begins importer integration with background-process storage, --- .../components/edition/importer-edition-form.vue | 14 +++++++------- .../components/navigation/tainacan-header.vue | 11 ++++++++++- src/admin/pages/lists/items-page.vue | 2 +- src/admin/tainacan-admin-i18n.php | 1 + src/js/store/modules/bgprocess/mutations.js | 10 +++++----- src/js/store/modules/importer/actions.js | 5 ++--- 6 files changed, 26 insertions(+), 17 deletions(-) diff --git a/src/admin/components/edition/importer-edition-form.vue b/src/admin/components/edition/importer-edition-form.vue index 8922ee403..04c45193e 100644 --- a/src/admin/components/edition/importer-edition-form.vue +++ b/src/admin/components/edition/importer-edition-form.vue @@ -428,13 +428,13 @@ export default { }, finishRunImporter() { this.runImporter(this.sessionId) - .then(backgroundProcess => { - this.hasRunImporter = true; - this.backgroundProcess = backgroundProcess; - }) - .catch((errors) => { - this.$console.log(errors); - }); + .then(backgroundProcess => { + this.hasRunImporter = true; + this.backgroundProcess = backgroundProcess; + }) + .catch((errors) => { + this.$console.log(errors); + }); }, onCheckBackgroundProcessStatus() { this.fetchProcess(this.backgroundProcess.bg_process_id) diff --git a/src/admin/components/navigation/tainacan-header.vue b/src/admin/components/navigation/tainacan-header.vue index 1119f35a3..2538c60ea 100644 --- a/src/admin/components/navigation/tainacan-header.vue +++ b/src/admin/components/navigation/tainacan-header.vue @@ -65,7 +65,7 @@ + + \ No newline at end of file diff --git a/src/js/store/modules/importer/actions.js b/src/js/store/modules/importer/actions.js index c8083955c..db2900ccf 100644 --- a/src/js/store/modules/importer/actions.js +++ b/src/js/store/modules/importer/actions.js @@ -154,7 +154,7 @@ export const runImporter = ( { dispatch } , importerId ) => { axios.tainacan.post('importers/session/' + importerId + '/run') .then( res => { let backgroundProcessId = res.data; - dispatch('bgprocess/fetchProcesses'); + dispatch('bgprocess/fetchProcesses', null, { root: true }); resolve( backgroundProcessId ); }) .catch(error => { From 7a416976c83e32eb2a7e48540f649fc77d6cbded Mon Sep 17 00:00:00 2001 From: Leo Germani Date: Tue, 17 Jul 2018 09:58:53 -0300 Subject: [PATCH 17/18] fix bg process logs links --- .../class-tainacan-rest-background-processes-controller.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/endpoints/class-tainacan-rest-background-processes-controller.php b/src/api/endpoints/class-tainacan-rest-background-processes-controller.php index 9a1c0540f..5968859d4 100644 --- a/src/api/endpoints/class-tainacan-rest-background-processes-controller.php +++ b/src/api/endpoints/class-tainacan-rest-background-processes-controller.php @@ -230,8 +230,8 @@ class REST_Background_Processes_Controller extends REST_Controller { $filename = 'bg-' . $action . '-' . $id . $suffix . '.log'; $upload_url = wp_upload_dir(); - $upload_url = trailingslashit( $upload_url['url'] ); - $logs_url = $upload_url . 'tainacan'; + $upload_url = trailingslashit( $upload_url['baseurl'] ); + $logs_url = $upload_url . 'tainacan/' . $filename; return $logs_url; From f215faeaec852ea523fb290e3a963efa6034c0f7 Mon Sep 17 00:00:00 2001 From: Leo Germani Date: Tue, 17 Jul 2018 12:45:08 -0300 Subject: [PATCH 18/18] better logs for ol tainacan importer --- src/importer/class-tainacan-old-tainacan.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/importer/class-tainacan-old-tainacan.php b/src/importer/class-tainacan-old-tainacan.php index af4e412c9..cd612020c 100644 --- a/src/importer/class-tainacan-old-tainacan.php +++ b/src/importer/class-tainacan-old-tainacan.php @@ -275,12 +275,12 @@ class Old_Tainacan extends Importer{ $id = $this->get_transient('item_' . $item_Old->ID . '_id'); if( $id && is_numeric( $id ) ) { - $this->add_log('Updating item ' . $item_Old->post_title . ' in collection '); + $this->add_log('Updating item ' . $item_Old->post_title ); $item = new Entities\Item( $id ); } $item->set_title( $item_Old->post_title ); - $this->add_log('Begin insert ' . $item_Old->post_title . ' in collection ' . $collection_id['id'] ); + $this->add_log('Begin insert ' . $item_Old->ID . ': ' . $item_Old->post_title . ' in collection ' . $collection_id['id'] ); $item->set_description( (isset($item_Old->post_content)) ? $item_Old->post_content : '' ); $item->set_status('publish'); @@ -293,7 +293,7 @@ class Old_Tainacan extends Importer{ $this->add_transient('item_' . $item_Old->ID . '_collection', $collection_id['id']); // add collection for relations if( $insertedItem->get_id() && is_array($processed_item['item']->metadata) ){ - $this->add_log('Item ' . $insertedItem->get_title() . ' inserted'); + $this->add_log('Item ' . $insertedItem->get_id() . ': ' . $insertedItem->get_title() . ' inserted. ID in source: ' . $item_Old->ID); $this->add_item_metadata( $insertedItem, $processed_item['item']->metadata, $collection_id );