Merge tag '0.21.2' into develop

release 0.21.2
This commit is contained in:
vnmedeiros 2024-05-03 17:48:26 -03:00
commit 6eaa1d34e5
6 changed files with 14 additions and 11 deletions

View File

@ -4,7 +4,7 @@ Tags: museums, archives, GLAM, collections, repository
Requires at least: 5.9 Requires at least: 5.9
Tested up to: 6.5 Tested up to: 6.5
Requires PHP: 7.0 Requires PHP: 7.0
Stable tag: 0.21.1 Stable tag: 0.21.2
License: GPLv2 or later License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html License URI: http://www.gnu.org/licenses/gpl-3.0.html

View File

@ -5,17 +5,17 @@ Plugin URI: https://tainacan.org/
Description: Open source, powerful and flexible repository platform for WordPress. Manage and publish you digital collections as easily as publishing a post to your blog, while having all the tools of a professional repository platform. Description: Open source, powerful and flexible repository platform for WordPress. Manage and publish you digital collections as easily as publishing a post to your blog, while having all the tools of a professional repository platform.
Author: Tainacan.org Author: Tainacan.org
Author URI: https://tainacan.org/ Author URI: https://tainacan.org/
Version: 0.21.1 Version: 0.21.2
Requires at least: 5.9 Requires at least: 5.9
Tested up to: 6.5 Tested up to: 6.5
Requires PHP: 7.0 Requires PHP: 7.0
Stable tag: 0.21.1 Stable tag: 0.21.2
Text Domain: tainacan Text Domain: tainacan
License: GPLv2 or later License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/ */
const TAINACAN_VERSION = '0.21.1'; const TAINACAN_VERSION = '0.21.2';
defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
$TAINACAN_BASE_URL = plugins_url('', __FILE__); $TAINACAN_BASE_URL = plugins_url('', __FILE__);

View File

@ -1230,7 +1230,7 @@ export default {
// Sends info to iframe containing item edition form and other use cases // Sends info to iframe containing item edition form and other use cases
parent.postMessage({ parent.postMessage({
type: 'itemEditionMessage', type: 'itemEditionMessage',
item: this.$adminOptions.itemEditionMode ? this.item : null item: this.$adminOptions.itemEditionMode ? JSON.parse(JSON.stringify(this.item)) : null
}, },
tainacan_plugin.admin_url); tainacan_plugin.admin_url);
@ -1241,7 +1241,7 @@ export default {
webkit.messageHandlers && webkit.messageHandlers &&
webkit.messageHandlers.cordova_iab webkit.messageHandlers.cordova_iab
) )
webkit.messageHandlers.cordova_iab.postMessage(JSON.stringify({ 'type': 'item_updated', 'item': this.item })); webkit.messageHandlers.cordova_iab.postMessage(JSON.stringify({ 'type': 'item_updated', 'item': JSON.parse(JSON.stringify(this.item)) }));
}) })
.catch((errors) => { .catch((errors) => {
@ -1885,7 +1885,7 @@ export default {
webkit.messageHandlers && webkit.messageHandlers &&
webkit.messageHandlers.cordova_iab webkit.messageHandlers.cordova_iab
) )
webkit.messageHandlers.cordova_iab.postMessage(JSON.stringify({ 'type': 'exited_from_navigation', 'item': this.item })); webkit.messageHandlers.cordova_iab.postMessage(JSON.stringify({ 'type': 'exited_from_navigation', 'item': JSON.parse(JSON.stringify(this.item)) }));
}, },
isSectionHidden(sectionId) { isSectionHidden(sectionId) {
return this.conditionalSections[sectionId] && this.conditionalSections[sectionId].hide; return this.conditionalSections[sectionId] && this.conditionalSections[sectionId].hide;

View File

@ -451,8 +451,11 @@
valuesAsHtml: this.getItemMetadataValuesAsHtml(data.item), valuesAsHtml: this.getItemMetadataValuesAsHtml(data.item),
img: data.item.thumbnail ? data.item.thumbnail : '' img: data.item.thumbnail ? data.item.thumbnail : ''
}); });
this.onInput(this.selected); this.onInput(this.selected);
if ( this.itemMetadatum.metadatum.multiple != 'yes' )
this.activeTab = 1;
} }
} }
} }

View File

@ -128,7 +128,7 @@
:disabled="bulkEditionProcedures[criterion].isDone" :disabled="bulkEditionProcedures[criterion].isDone"
class="tainacan-bulk-edition-field tainacan-bulk-edition-field-last" class="tainacan-bulk-edition-field tainacan-bulk-edition-field-last"
:placeholder="$i18n.get('instruction_select_a_status2')" :placeholder="$i18n.get('instruction_select_a_status2')"
@update:model-update:value="($event) => addToBulkEditionProcedures($event, 'newValue', criterion)"> @update:model-value="($event) => addToBulkEditionProcedures($event, 'newValue', criterion)">
<option <option
v-for="(statusOption, index) of $statusHelper.getStatuses().filter(option => { return option.value != 'trash' })" v-for="(statusOption, index) of $statusHelper.getStatuses().filter(option => { return option.value != 'trash' })"
:key="index" :key="index"
@ -144,7 +144,7 @@
:disabled="bulkEditionProcedures[criterion].isDone" :disabled="bulkEditionProcedures[criterion].isDone"
class="tainacan-bulk-edition-field tainacan-bulk-edition-field-last" class="tainacan-bulk-edition-field tainacan-bulk-edition-field-last"
:placeholder="$i18n.get('instruction_select_a_comments_status')" :placeholder="$i18n.get('instruction_select_a_comments_status')"
@update:model-update:value="($event) => addToBulkEditionProcedures($event, 'newValue', criterion)"> @update:model-value="($event) => addToBulkEditionProcedures($event, 'newValue', criterion)">
<option <option
v-for="(statusOption, index) of $commentsStatusHelper.getStatuses()" v-for="(statusOption, index) of $commentsStatusHelper.getStatuses()"
:key="index" :key="index"

View File

@ -513,7 +513,7 @@
:help-info-bellow-label="helpInfoBellowLabel" :help-info-bellow-label="helpInfoBellowLabel"
:is-collapsed="metadataCollapses[index]" :is-collapsed="metadataCollapses[index]"
:enumerate-metadatum="metadataSections.length > 1 && collectionItemMetadataEnumeration === 'yes' ? ( (Number(sectionIndex) + 1) + '.' + (Number(getMetadatumOrderInSection(sectionIndex, itemMetadatum.metadatum)) + 1) ) : false" :enumerate-metadatum="metadataSections.length > 1 && collectionItemMetadataEnumeration === 'yes' ? ( (Number(sectionIndex) + 1) + '.' + (Number(getMetadatumOrderInSection(sectionIndex, itemMetadatum.metadatum)) + 1) ) : false"
@update:model-value="updateItemMetadataValue" @input="updateItemMetadataValue"
@change-collapse="onChangeCollapse($event, index)" /> @change-collapse="onChangeCollapse($event, index)" />
<!-- JS-side hook for extra content --> <!-- JS-side hook for extra content -->