Changeset 2449354
- Timestamp:
- 01/03/2021 10:07:21 AM (5 years ago)
- Location:
- display-your-zenodo-community
- Files:
-
- 8 edited
- 14 copied
-
tags/1.2.0 (copied) (copied from display-your-zenodo-community/trunk)
-
tags/1.2.0/AUTHORS (copied) (copied from display-your-zenodo-community/trunk/AUTHORS)
-
tags/1.2.0/CHANGELOG.md (copied) (copied from display-your-zenodo-community/trunk/CHANGELOG.md) (1 diff)
-
tags/1.2.0/README.md (copied) (copied from display-your-zenodo-community/trunk/README.md) (1 diff)
-
tags/1.2.0/README.txt (copied) (copied from display-your-zenodo-community/trunk/README.txt) (3 diffs)
-
tags/1.2.0/admin (copied) (copied from display-your-zenodo-community/trunk/admin)
-
tags/1.2.0/admin/class-display-your-zenodo-community-admin.php (copied) (copied from display-your-zenodo-community/trunk/admin/class-display-your-zenodo-community-admin.php) (2 diffs)
-
tags/1.2.0/admin/partials/display-your-zenodo-community-admin-display.php (copied) (copied from display-your-zenodo-community/trunk/admin/partials/display-your-zenodo-community-admin-display.php) (2 diffs)
-
tags/1.2.0/includes (copied) (copied from display-your-zenodo-community/trunk/includes)
-
tags/1.2.0/includes/class-display-your-zenodo-community.php (copied) (copied from display-your-zenodo-community/trunk/includes/class-display-your-zenodo-community.php) (2 diffs)
-
tags/1.2.0/public (copied) (copied from display-your-zenodo-community/trunk/public)
-
tags/1.2.0/public/class-display-your-zenodo-community-public.php (copied) (copied from display-your-zenodo-community/trunk/public/class-display-your-zenodo-community-public.php) (3 diffs)
-
tags/1.2.0/public/images (copied) (copied from display-your-zenodo-community/trunk/public/images)
-
tags/1.2.0/zenodo-plugin.php (copied) (copied from display-your-zenodo-community/trunk/zenodo-plugin.php) (1 diff)
-
trunk/CHANGELOG.md (modified) (1 diff)
-
trunk/README.md (modified) (1 diff)
-
trunk/README.txt (modified) (3 diffs)
-
trunk/admin/class-display-your-zenodo-community-admin.php (modified) (2 diffs)
-
trunk/admin/partials/display-your-zenodo-community-admin-display.php (modified) (2 diffs)
-
trunk/includes/class-display-your-zenodo-community.php (modified) (2 diffs)
-
trunk/public/class-display-your-zenodo-community-public.php (modified) (3 diffs)
-
trunk/zenodo-plugin.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
display-your-zenodo-community/tags/1.2.0/CHANGELOG.md
r2333508 r2449354 5 5 and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). 6 6 7 ## [Unreleased] 7 ## [1.2.0] - 2021-01-03 8 ### Added 9 - Administrators can add a keyword for limiting the results. This is for example to select a subset of the publication for a certain project within an institution. 10 - Administrators can choose the number of publications shown per page (default is 10) 11 ### Changed 12 * Fixed a bug that would make the plugin query Zenodo at the init stage of all pages 8 13 9 14 ## [1.1.0] - 2020-07-01 -
display-your-zenodo-community/tags/1.2.0/README.md
r2333508 r2449354 17 17 18 18 A very simple administration page (in Settings -> Zenodo) to choose your Zenodo community (e.g. `dariah` or `operaseu 19 `) or choose your personal ORCID. 19 `) or choose your personal ORCID. For administrators, possibility as well to search for a subset (with keywords) of 20 the publications, as well as possibility to choose the number of publication shown per page. 20 21 On the page you want to present the Zenodo data, add the shortcode `[display-your-zenodo-community]` to see the publications. 21 22 # How does it work? -
display-your-zenodo-community/tags/1.2.0/README.txt
r2439787 r2449354 6 6 Tested up to: 5.6 7 7 Requires PHP: 5.6.35 8 Stable tag: 1. 1.08 Stable tag: 1.2.0 9 9 License: Apache License - 2.0 10 10 License URI: http://www.apache.org/licenses/LICENSE-2.0 … … 29 29 30 30 A very simple administration page (in Settings -> Zenodo) to choose your Zenodo community (e.g. `dariah` or `operaseu`). 31 For administrators, possibility as well to search for a subset (with keywords) of the publications, as well as possibility to choose the number of publication shown per page. 31 32 On the page you want to present the Zenodo data, add the shortcode `[display-your-zenodo-community]` to see the publications. 32 33 … … 44 45 45 46 == Changelog == 47 48 = 1.2.0 = 49 * Administrators can add a keyword for limiting the results. This is for example to select a subset of the publication for a certain project within an institution. 50 * Administrators can choose the number of publications shown per page (default is 10) 51 * Fixed a bug that would make the plugin query Zenodo at the init stage of all pages 46 52 47 53 = 1.1.0 = -
display-your-zenodo-community/tags/1.2.0/admin/class-display-your-zenodo-community-admin.php
r2333508 r2449354 127 127 */ 128 128 public function options_update() { 129 register_setting( $this->plugin_name, $this->plugin_name, array( 'sanitize_callback' => array( $this, 'validate' ), 'default' => array( 'id_community_orcid' => '', 'choice' => '' ) ) );129 register_setting( $this->plugin_name, $this->plugin_name, array( 'sanitize_callback' => array( $this, 'validate' ), 'default' => array( 'id_community_orcid' => '', 'choice' => '', 'extra_keyword' => '', 'number_publications' => 10 ) ) ); 130 130 } 131 131 /** … … 140 140 sanitize_text_field($input['id_community_orcid']) : ''; 141 141 $valid['choice'] = sanitize_text_field($input['choice']); 142 $valid['extra_keyword'] = (isset($input['extra_keyword']) && !empty($input['extra_keyword'])) ? 143 sanitize_text_field($input['extra_keyword']) : ''; 144 $valid['number_publications'] = (isset($input['number_publications']) && !empty($input['number_publications'])) ? 145 sanitize_text_field($input['number_publications']) : 10; 142 146 return $valid; 143 147 } -
display-your-zenodo-community/tags/1.2.0/admin/partials/display-your-zenodo-community-admin-display.php
r2333508 r2449354 32 32 //Grab all options 33 33 $display_your_zenodo_community_options = get_option( $this->plugin_name ); 34 $choice = $display_your_zenodo_community_options['choice']; 35 $id_community_orcid = $display_your_zenodo_community_options['id_community_orcid']; 34 $choice = $id_community_orcid = $extra_keyword = ""; 35 $number_publications = 10; 36 if( array_key_exists( 'choice', $display_your_zenodo_community_options ) ) { 37 $choice = $display_your_zenodo_community_options['choice']; 38 } 39 if( array_key_exists( 'id_community_orcid', $display_your_zenodo_community_options ) ) { 40 $id_community_orcid = $display_your_zenodo_community_options['id_community_orcid']; 41 } 42 if( array_key_exists( 'extra_keyword', $display_your_zenodo_community_options ) ) { 43 $extra_keyword = $display_your_zenodo_community_options['extra_keyword']; 44 } 45 if( array_key_exists( 'number_publications', $display_your_zenodo_community_options ) ) { 46 $number_publications = $display_your_zenodo_community_options['number_publications']; 47 } 36 48 37 49 $html = "<tr> … … 57 69 </td> 58 70 </tr>"; 71 $html .= "<tr> 72 <th scope=\"row\"> 73 <label for=\"" . $this->plugin_name . "-extra-keyword\">" . translate('Refine search with keywords (tags in Zenodo e.g. TRIPLE)', 74 $this->plugin_name) . "</label> 75 </th> 76 <td> 77 <input name=\"" . $this->plugin_name . "[extra_keyword]\" id=\"" . $this->plugin_name 78 . "-extra-keyword\" value=\"" . $extra_keyword . "\" type=\"text\"> 79 </td> 80 </tr>"; 81 $html .= "<tr> 82 <th scope=\"row\"> 83 <label for=\"" . $this->plugin_name . "-number-publications\">" . translate('Number of publications shown per page (default in Zenodo is 10)', 84 $this->plugin_name) . "</label> 85 </th> 86 <td> 87 <input name=\"" . $this->plugin_name . "[number_publications]\" id=\"" . $this->plugin_name 88 . "-number-publications\" value=\"" . $number_publications . "\" type=\"number\" min=\"1\" max=\"100\"> 89 </td> 90 </tr>"; 59 91 60 92 settings_fields( $this->plugin_name ); -
display-your-zenodo-community/tags/1.2.0/includes/class-display-your-zenodo-community.php
r2333508 r2449354 54 54 $this->version = ZENODO_PLUGIN_VERSION; 55 55 } else { 56 $this->version = '1. 1.0';56 $this->version = '1.2.0'; 57 57 } 58 58 $this->plugin_name = 'display-your-zenodo-community'; … … 143 143 $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_scripts' ); 144 144 145 $this->loader->add_filter( 'init', $plugin_public, 'zp_retrieve_json' );146 145 $this->loader->add_filter( 'query_vars', $plugin_public, 'zp_query_vars' ); 147 146 } -
display-your-zenodo-community/tags/1.2.0/public/class-display-your-zenodo-community-public.php
r2333508 r2449354 96 96 */ 97 97 public function display_zenodo_data() { 98 $display_your_zenodo_community_options = get_option( $this->plugin_name ); 99 $choice = $display_your_zenodo_community_options['choice']; 100 $id_community_orcid = $display_your_zenodo_community_options['id_community_orcid']; 98 $display_your_zenodo_community_options = get_option( $this->plugin_name ); 99 $number_publications = 10; 100 if( array_key_exists( 'number_publications', $display_your_zenodo_community_options ) ) { 101 $number_publications = $display_your_zenodo_community_options['number_publications']; 102 } 101 103 102 104 $page = 1; … … 105 107 } 106 108 $html = "<div id=\"display-your-zenodo-community\">"; 107 $result_api = $this->zp_retrieve_json( $page );109 $result_api = $this->zp_retrieve_json( $page, $display_your_zenodo_community_options ); 108 110 $nb_pages = 1; 109 111 if( isset( $result_api->aggregations->access_right->buckets[0]->doc_count ) ) { 110 $nb_pages = ceil( $result_api->aggregations->access_right->buckets[0]->doc_count / 10);112 $nb_pages = ceil( $result_api->aggregations->access_right->buckets[0]->doc_count / $number_publications ); 111 113 $html .= "<hr>"; 112 114 $html .= "<div class=\"counter-doc\">"; 113 115 $html .= "<span class=\"wphal-nbtot\">"; 114 116 $html .= $result_api->aggregations->access_right->buckets[0]->doc_count; 115 $html .= "</span>" . " documents (from " . ($choice=='community'?"Community \"":"ORCID \"") . 116 $id_community_orcid . "\")"; 117 $html .= "</span>" . " documents"; 117 118 $html .= "</div>"; 118 119 } … … 218 219 * @since 1.0.0 219 220 */ 220 public function zp_retrieve_json( $page = 1 ) { 221 $display_your_zenodo_community_options = get_option( $this->plugin_name ); 222 $choice = $display_your_zenodo_community_options['choice']; 223 $id_community_orcid = $display_your_zenodo_community_options['id_community_orcid']; 224 225 $zenodo_api_url = ""; 221 public function zp_retrieve_json( $page = 1, $display_your_zenodo_community_options ) { 222 $choice = $id_community_orcid = $extra_keyword = ""; 223 $number_publications = 10; 224 if( array_key_exists( 'choice', $display_your_zenodo_community_options ) ) { 225 $choice = $display_your_zenodo_community_options['choice']; 226 } 227 if( array_key_exists( 'id_community_orcid', $display_your_zenodo_community_options ) ) { 228 $id_community_orcid = $display_your_zenodo_community_options['id_community_orcid']; 229 } 230 if( array_key_exists( 'extra_keyword', $display_your_zenodo_community_options ) ) { 231 $extra_keyword = $display_your_zenodo_community_options['extra_keyword']; 232 } 233 if( array_key_exists( 'number_publications', $display_your_zenodo_community_options ) ) { 234 $number_publications = $display_your_zenodo_community_options['number_publications']; 235 } 236 237 $zenodo_api_url = "https://zenodo.org/api/records/?sort=mostrecent&size=" .$number_publications . "&page=" . $page . "&"; 238 $zenodo_api_query = ""; 226 239 if( $choice == 'community' ) { 227 $zenodo_api_url = "https://zenodo.org/api/records/?sort=mostrecent&size=10&communities=" . $id_community_orcid; 228 $zenodo_api_url .= "&page=" . $page; 240 $zenodo_api_query = "communities=" . $id_community_orcid; 241 if( $extra_keyword !== '' ) { 242 $zenodo_api_query .= "&q=keywords:%22" . $extra_keyword . "%22"; 243 } 229 244 } elseif ( $choice == 'orcid' ) { 230 $zenodo_api_url = "https://zenodo.org/api/records/?q=creators.orcid:%22" . $id_community_orcid . "%22"; 231 $zenodo_api_url .= "&page=" . $page; 232 } 245 $zenodo_api_query = "q=(creators.orcid:%22" . $id_community_orcid . "%22"; 246 if( $extra_keyword !== '' ) { 247 $zenodo_api_query .= " AND keywords:%22" . $extra_keyword . "%22)"; 248 } else { 249 $zenodo_api_query .= ")"; 250 } 251 } 252 $zenodo_api_url .= $zenodo_api_query; 233 253 if( $id_community_orcid !== '' && $zenodo_api_url !== '' ) { 234 254 $request = wp_remote_get( $zenodo_api_url ); -
display-your-zenodo-community/tags/1.2.0/zenodo-plugin.php
r2333508 r2449354 17 17 * Plugin URI: https://github.com/dariah-eric/display-your-zenodo-community 18 18 * Description: This plugin allows user to view their community data from Zenodo on WordPress 19 * Version: 1. 1.019 * Version: 1.2.0 20 20 * Author: DARIAH-EU 21 21 * Author URI: https://www.dariah.eu -
display-your-zenodo-community/trunk/CHANGELOG.md
r2333508 r2449354 5 5 and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). 6 6 7 ## [Unreleased] 7 ## [1.2.0] - 2021-01-03 8 ### Added 9 - Administrators can add a keyword for limiting the results. This is for example to select a subset of the publication for a certain project within an institution. 10 - Administrators can choose the number of publications shown per page (default is 10) 11 ### Changed 12 * Fixed a bug that would make the plugin query Zenodo at the init stage of all pages 8 13 9 14 ## [1.1.0] - 2020-07-01 -
display-your-zenodo-community/trunk/README.md
r2333508 r2449354 17 17 18 18 A very simple administration page (in Settings -> Zenodo) to choose your Zenodo community (e.g. `dariah` or `operaseu 19 `) or choose your personal ORCID. 19 `) or choose your personal ORCID. For administrators, possibility as well to search for a subset (with keywords) of 20 the publications, as well as possibility to choose the number of publication shown per page. 20 21 On the page you want to present the Zenodo data, add the shortcode `[display-your-zenodo-community]` to see the publications. 21 22 # How does it work? -
display-your-zenodo-community/trunk/README.txt
r2439787 r2449354 6 6 Tested up to: 5.6 7 7 Requires PHP: 5.6.35 8 Stable tag: 1. 1.08 Stable tag: 1.2.0 9 9 License: Apache License - 2.0 10 10 License URI: http://www.apache.org/licenses/LICENSE-2.0 … … 29 29 30 30 A very simple administration page (in Settings -> Zenodo) to choose your Zenodo community (e.g. `dariah` or `operaseu`). 31 For administrators, possibility as well to search for a subset (with keywords) of the publications, as well as possibility to choose the number of publication shown per page. 31 32 On the page you want to present the Zenodo data, add the shortcode `[display-your-zenodo-community]` to see the publications. 32 33 … … 44 45 45 46 == Changelog == 47 48 = 1.2.0 = 49 * Administrators can add a keyword for limiting the results. This is for example to select a subset of the publication for a certain project within an institution. 50 * Administrators can choose the number of publications shown per page (default is 10) 51 * Fixed a bug that would make the plugin query Zenodo at the init stage of all pages 46 52 47 53 = 1.1.0 = -
display-your-zenodo-community/trunk/admin/class-display-your-zenodo-community-admin.php
r2333508 r2449354 127 127 */ 128 128 public function options_update() { 129 register_setting( $this->plugin_name, $this->plugin_name, array( 'sanitize_callback' => array( $this, 'validate' ), 'default' => array( 'id_community_orcid' => '', 'choice' => '' ) ) );129 register_setting( $this->plugin_name, $this->plugin_name, array( 'sanitize_callback' => array( $this, 'validate' ), 'default' => array( 'id_community_orcid' => '', 'choice' => '', 'extra_keyword' => '', 'number_publications' => 10 ) ) ); 130 130 } 131 131 /** … … 140 140 sanitize_text_field($input['id_community_orcid']) : ''; 141 141 $valid['choice'] = sanitize_text_field($input['choice']); 142 $valid['extra_keyword'] = (isset($input['extra_keyword']) && !empty($input['extra_keyword'])) ? 143 sanitize_text_field($input['extra_keyword']) : ''; 144 $valid['number_publications'] = (isset($input['number_publications']) && !empty($input['number_publications'])) ? 145 sanitize_text_field($input['number_publications']) : 10; 142 146 return $valid; 143 147 } -
display-your-zenodo-community/trunk/admin/partials/display-your-zenodo-community-admin-display.php
r2333508 r2449354 32 32 //Grab all options 33 33 $display_your_zenodo_community_options = get_option( $this->plugin_name ); 34 $choice = $display_your_zenodo_community_options['choice']; 35 $id_community_orcid = $display_your_zenodo_community_options['id_community_orcid']; 34 $choice = $id_community_orcid = $extra_keyword = ""; 35 $number_publications = 10; 36 if( array_key_exists( 'choice', $display_your_zenodo_community_options ) ) { 37 $choice = $display_your_zenodo_community_options['choice']; 38 } 39 if( array_key_exists( 'id_community_orcid', $display_your_zenodo_community_options ) ) { 40 $id_community_orcid = $display_your_zenodo_community_options['id_community_orcid']; 41 } 42 if( array_key_exists( 'extra_keyword', $display_your_zenodo_community_options ) ) { 43 $extra_keyword = $display_your_zenodo_community_options['extra_keyword']; 44 } 45 if( array_key_exists( 'number_publications', $display_your_zenodo_community_options ) ) { 46 $number_publications = $display_your_zenodo_community_options['number_publications']; 47 } 36 48 37 49 $html = "<tr> … … 57 69 </td> 58 70 </tr>"; 71 $html .= "<tr> 72 <th scope=\"row\"> 73 <label for=\"" . $this->plugin_name . "-extra-keyword\">" . translate('Refine search with keywords (tags in Zenodo e.g. TRIPLE)', 74 $this->plugin_name) . "</label> 75 </th> 76 <td> 77 <input name=\"" . $this->plugin_name . "[extra_keyword]\" id=\"" . $this->plugin_name 78 . "-extra-keyword\" value=\"" . $extra_keyword . "\" type=\"text\"> 79 </td> 80 </tr>"; 81 $html .= "<tr> 82 <th scope=\"row\"> 83 <label for=\"" . $this->plugin_name . "-number-publications\">" . translate('Number of publications shown per page (default in Zenodo is 10)', 84 $this->plugin_name) . "</label> 85 </th> 86 <td> 87 <input name=\"" . $this->plugin_name . "[number_publications]\" id=\"" . $this->plugin_name 88 . "-number-publications\" value=\"" . $number_publications . "\" type=\"number\" min=\"1\" max=\"100\"> 89 </td> 90 </tr>"; 59 91 60 92 settings_fields( $this->plugin_name ); -
display-your-zenodo-community/trunk/includes/class-display-your-zenodo-community.php
r2333508 r2449354 54 54 $this->version = ZENODO_PLUGIN_VERSION; 55 55 } else { 56 $this->version = '1. 1.0';56 $this->version = '1.2.0'; 57 57 } 58 58 $this->plugin_name = 'display-your-zenodo-community'; … … 143 143 $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_scripts' ); 144 144 145 $this->loader->add_filter( 'init', $plugin_public, 'zp_retrieve_json' );146 145 $this->loader->add_filter( 'query_vars', $plugin_public, 'zp_query_vars' ); 147 146 } -
display-your-zenodo-community/trunk/public/class-display-your-zenodo-community-public.php
r2333508 r2449354 96 96 */ 97 97 public function display_zenodo_data() { 98 $display_your_zenodo_community_options = get_option( $this->plugin_name ); 99 $choice = $display_your_zenodo_community_options['choice']; 100 $id_community_orcid = $display_your_zenodo_community_options['id_community_orcid']; 98 $display_your_zenodo_community_options = get_option( $this->plugin_name ); 99 $number_publications = 10; 100 if( array_key_exists( 'number_publications', $display_your_zenodo_community_options ) ) { 101 $number_publications = $display_your_zenodo_community_options['number_publications']; 102 } 101 103 102 104 $page = 1; … … 105 107 } 106 108 $html = "<div id=\"display-your-zenodo-community\">"; 107 $result_api = $this->zp_retrieve_json( $page );109 $result_api = $this->zp_retrieve_json( $page, $display_your_zenodo_community_options ); 108 110 $nb_pages = 1; 109 111 if( isset( $result_api->aggregations->access_right->buckets[0]->doc_count ) ) { 110 $nb_pages = ceil( $result_api->aggregations->access_right->buckets[0]->doc_count / 10);112 $nb_pages = ceil( $result_api->aggregations->access_right->buckets[0]->doc_count / $number_publications ); 111 113 $html .= "<hr>"; 112 114 $html .= "<div class=\"counter-doc\">"; 113 115 $html .= "<span class=\"wphal-nbtot\">"; 114 116 $html .= $result_api->aggregations->access_right->buckets[0]->doc_count; 115 $html .= "</span>" . " documents (from " . ($choice=='community'?"Community \"":"ORCID \"") . 116 $id_community_orcid . "\")"; 117 $html .= "</span>" . " documents"; 117 118 $html .= "</div>"; 118 119 } … … 218 219 * @since 1.0.0 219 220 */ 220 public function zp_retrieve_json( $page = 1 ) { 221 $display_your_zenodo_community_options = get_option( $this->plugin_name ); 222 $choice = $display_your_zenodo_community_options['choice']; 223 $id_community_orcid = $display_your_zenodo_community_options['id_community_orcid']; 224 225 $zenodo_api_url = ""; 221 public function zp_retrieve_json( $page = 1, $display_your_zenodo_community_options ) { 222 $choice = $id_community_orcid = $extra_keyword = ""; 223 $number_publications = 10; 224 if( array_key_exists( 'choice', $display_your_zenodo_community_options ) ) { 225 $choice = $display_your_zenodo_community_options['choice']; 226 } 227 if( array_key_exists( 'id_community_orcid', $display_your_zenodo_community_options ) ) { 228 $id_community_orcid = $display_your_zenodo_community_options['id_community_orcid']; 229 } 230 if( array_key_exists( 'extra_keyword', $display_your_zenodo_community_options ) ) { 231 $extra_keyword = $display_your_zenodo_community_options['extra_keyword']; 232 } 233 if( array_key_exists( 'number_publications', $display_your_zenodo_community_options ) ) { 234 $number_publications = $display_your_zenodo_community_options['number_publications']; 235 } 236 237 $zenodo_api_url = "https://zenodo.org/api/records/?sort=mostrecent&size=" .$number_publications . "&page=" . $page . "&"; 238 $zenodo_api_query = ""; 226 239 if( $choice == 'community' ) { 227 $zenodo_api_url = "https://zenodo.org/api/records/?sort=mostrecent&size=10&communities=" . $id_community_orcid; 228 $zenodo_api_url .= "&page=" . $page; 240 $zenodo_api_query = "communities=" . $id_community_orcid; 241 if( $extra_keyword !== '' ) { 242 $zenodo_api_query .= "&q=keywords:%22" . $extra_keyword . "%22"; 243 } 229 244 } elseif ( $choice == 'orcid' ) { 230 $zenodo_api_url = "https://zenodo.org/api/records/?q=creators.orcid:%22" . $id_community_orcid . "%22"; 231 $zenodo_api_url .= "&page=" . $page; 232 } 245 $zenodo_api_query = "q=(creators.orcid:%22" . $id_community_orcid . "%22"; 246 if( $extra_keyword !== '' ) { 247 $zenodo_api_query .= " AND keywords:%22" . $extra_keyword . "%22)"; 248 } else { 249 $zenodo_api_query .= ")"; 250 } 251 } 252 $zenodo_api_url .= $zenodo_api_query; 233 253 if( $id_community_orcid !== '' && $zenodo_api_url !== '' ) { 234 254 $request = wp_remote_get( $zenodo_api_url ); -
display-your-zenodo-community/trunk/zenodo-plugin.php
r2333508 r2449354 17 17 * Plugin URI: https://github.com/dariah-eric/display-your-zenodo-community 18 18 * Description: This plugin allows user to view their community data from Zenodo on WordPress 19 * Version: 1. 1.019 * Version: 1.2.0 20 20 * Author: DARIAH-EU 21 21 * Author URI: https://www.dariah.eu
Note: See TracChangeset
for help on using the changeset viewer.