Merge branch 'master' into develop

This commit is contained in:
Leo Germani 2019-05-31 11:11:45 -03:00
commit 1656d4a2d6
5 changed files with 7 additions and 5 deletions

View File

@ -27,6 +27,7 @@ class Csv extends Exposer {
); );
$items = $response->get_data(); $items = $response->get_data();
$items = is_array($items) && isset($items['items']) ? $items['items'] : [];
if (sizeof($items) > 0) { if (sizeof($items) > 0) {

View File

@ -27,6 +27,7 @@ class Html extends Exposer {
$response->set_headers( ['Content-Type: text/html; charset=' . get_option( 'blog_charset' )] ); $response->set_headers( ['Content-Type: text/html; charset=' . get_option( 'blog_charset' )] );
$items = $response->get_data(); $items = $response->get_data();
$items = is_array($items) && isset($items['items']) ? $items['items'] : [];
$html = ' $html = '
<!DOCTYPE html> <!DOCTYPE html>

View File

@ -181,7 +181,7 @@ class OAIPMH_List_Records extends OAIPMH_Expose {
foreach ($maps as $key => $val) { foreach ($maps as $key => $val) {
if( $val && is_object($val) ) if( $val && is_object($val) )
$this->xml_creater->addChild($this->working_node, $key, html_entity_decode($val->get_value())); $this->xml_creater->addChild($this->working_node, $key, html_entity_decode($val->get_value_as_string()));
else else
$this->xml_creater->addChild($this->working_node, $key, ''); $this->xml_creater->addChild($this->working_node, $key, '');
} }

View File

@ -2,9 +2,9 @@
Contributors: andrebenedito, daltonmartins, fabianobn, jacsonp, leogermani, weryques, wetah, eduardohumberto, ravipassos, jessicafpx, marinagiolo, omarceloavila Contributors: andrebenedito, daltonmartins, fabianobn, jacsonp, leogermani, weryques, wetah, eduardohumberto, ravipassos, jessicafpx, marinagiolo, omarceloavila
Tags: museums, libraries, archives, GLAM, collections, repository Tags: museums, libraries, archives, GLAM, collections, repository
Requires at least: 4.8 Requires at least: 4.8
Tested up to: 5.2 Tested up to: 5.2.1
Requires PHP: 5.6 Requires PHP: 5.6
Stable tag: 0.9 Stable tag: 0.9.1
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

@ -4,13 +4,13 @@ Plugin Name: Tainacan
Plugin URI: https://tainacan.org/ Plugin URI: https://tainacan.org/
Description: powerfull 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 respository platform. Description: powerfull 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 respository platform.
Author: Media Lab / UFG Author: Media Lab / UFG
Version: 0.9 Version: 0.9.1
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.9'; const TAINACAN_VERSION = '0.9.1';
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__);