| 1 |
=== HAL === |
| 2 |
Contributors: friz, ccsd |
| 3 |
Tags: publication, HAL, archive |
| 4 |
Requires at least: 5.0 |
| 5 |
Tested up to: 5.1.1 |
| 6 |
PHP Version: 7.0 or higher |
| 7 |
Stable tag: 2.0.10 |
| 8 |
License: GPLv2 or later |
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html |
| 10 |
|
| 11 |
Create a page with publications of an author or a structure in relation with HAL and a widget of recent publications of an author or a structure. |
| 12 |
|
| 13 |
== Description == |
| 14 |
|
| 15 |
This is the first plugin of HAL. |
| 16 |
The HAL plugin allows authors or structures to display in their own blog their publications. |
| 17 |
HAL plugin data are directly related to [HAL website](https://hal.archives-ouvertes.fr/). |
| 18 |
|
| 19 |
== Installation == |
| 20 |
|
| 21 |
= Requires : = |
| 22 |
* PHP 7.0 or higher |
| 23 |
* WordPress 5.0 or higher |
| 24 |
* cURL extension on php.ini |
| 25 |
|
| 26 |
= Installation procedure : = |
| 27 |
|
| 28 |
1. Desactivate plugin if you have the previous version installed. |
| 29 |
2. Unzip "HAL" archive and put all files into a folder like "/wp-content/plugins/hal" directory. |
| 30 |
3. Activate "HAL" plugin via 'Plugins' menu in WordPress admin menu. |
| 31 |
|
| 32 |
= For the page : = |
| 33 |
|
| 34 |
Detailed instructions are [here](https://doc.archives-ouvertes.fr/afficher-une-liste-de-publications-dans-wordpress/), to go simple : |
| 35 |
|
| 36 |
4. Go to the "Hal" menu item and select parameters to display options needed in your blog. |
| 37 |
5. Create your page and add the shortcode [cv-hal] to see publications and metadata. |
| 38 |
|
| 39 |
NB : the shortcode could use parameters for example [cv-hal id=2497 type=structId_i], check FAQ for more info. |
| 40 |
|
| 41 |
(see [HAL API documentation](https://api.archives-ouvertes.fr/docs/search) for more details) |
| 42 |
= For the widget : = |
| 43 |
|
| 44 |
4. Go to the menu "Appearance", "Widgets" to configure the widget "Lastest Publications". |
| 45 |
|
| 46 |
== Frequently Asked Questions == |
| 47 |
|
| 48 |
= How can I contact the support ? = |
| 49 |
|
| 50 |
You can contact the support at this address : [https://support.ccsd.cnrs.fr/](https://support.ccsd.cnrs.fr/) |
| 51 |
|
| 52 |
= How to display the page on the site ? = |
| 53 |
|
| 54 |
You need to create your own page with wordpress and put the shortcode [cv-hal] on the content. |
| 55 |
|
| 56 |
= What can i do to personalize my page ? = |
| 57 |
|
| 58 |
You can display multiple page with different IDs with parameters on the shortcode, example : [cv-hal id=184 type=authStructId_i] |
| 59 |
|
| 60 |
Type of identifier are : |
| 61 |
|
| 62 |
* IdHal = authIdHal_s |
| 63 |
* Structure Id = structId_i |
| 64 |
* AuthorStructure Id = authStructId_i |
| 65 |
* Author Id = authId_i |
| 66 |
* ANR Project Id = anrProjectId_i |
| 67 |
* European Project Id = europeanProjectId_i |
| 68 |
* Collection Id = collCode_s |
| 69 |
|
| 70 |
You can add in the shortcode "contact=yes" or "contact=no" to recover HAL Contact. |
| 71 |
|
| 72 |
You can add a new shortcode [nb-doc] to display the number of documents. |
| 73 |
|
| 74 |
= Error Code = |
| 75 |
|
| 76 |
* CURL : You need to enable extension PHP php_curl. You can do it through the repository **Apache/bin** and edit the file **php.ini** then uncomment the line **;extension=php_curl.dll** |
| 77 |
|
| 78 |
== Screenshots == |
| 79 |
|
| 80 |
1. Screenshot page settings in admin menu |
| 81 |
2. Screenshot widget settings in admin menu |
| 82 |
3. Screenshot example page client |
| 83 |
|
| 84 |
== Changelog == |
| 85 |
= 2.0.10 = |
| 86 |
* Release Date - May 2020 |
| 87 |
|
| 88 |
Code: |
| 89 |
|
| 90 |
* Patch for pagination works, thanx to @yoannspace |
| 91 |
|
| 92 |
= 2.0.9 = |
| 93 |
* Release Date 6 Dec 2019 |
| 94 |
|
| 95 |
Code: |
| 96 |
|
| 97 |
* Can use WP_PROXY* options, all curl call are now done in a sub |
| 98 |
* Fix Warnings |
| 99 |
* Reformat code |
| 100 |
* Fix some HTML code |
| 101 |
|
| 102 |
= 2.0.8 = |
| 103 |
*Release Date - 25 March 2019* |
| 104 |
|
| 105 |
Code : |
| 106 |
|
| 107 |
* Fix warning PHP 7.3 |
| 108 |
|
| 109 |
= 2.0.7 = |
| 110 |
*Release Date - 11 January 2019* |
| 111 |
|
| 112 |
Page & Widget : |
| 113 |
|
| 114 |
* Using a filter date more precise to display last publications |
| 115 |
|
| 116 |
= 2.0.6 = |
| 117 |
*Release Date - 28 September 2018* |
| 118 |
|
| 119 |
Page & Widget : |
| 120 |
|
| 121 |
* Add the identifier authId_i for author |
| 122 |
|
| 123 |
|
| 124 |
= 2.0.5 = |
| 125 |
*Release Date - 14 February 2017* |
| 126 |
|
| 127 |
Code : |
| 128 |
|
| 129 |
* Code modification |
| 130 |
|
| 131 |
= 2.0.4 = |
| 132 |
*Release Date - 3 February 2017* |
| 133 |
|
| 134 |
Page : |
| 135 |
|
| 136 |
* Add/Change type of Id : Struct Id = structId_i (all structures) / AuthorStruct Id = authStructId_i (structures directly linked with the author) |
| 137 |
If you had some questions about this modification, contact the developer. |
| 138 |
|
| 139 |
= 2.0.3 = |
| 140 |
*Release Date - 24 January 2017* |
| 141 |
|
| 142 |
Page : |
| 143 |
|
| 144 |
* CSS modifications |
| 145 |
|
| 146 |
= 2.0.2 = |
| 147 |
*Release Date - 07 December 2016* |
| 148 |
|
| 149 |
Page : |
| 150 |
|
| 151 |
* Libraries jQplot and PieRenderer are load if the metadata "Disciplines" is checked ! |
| 152 |
|
| 153 |
= 2.0.1 = |
| 154 |
*Release Date - 28 July 2016* |
| 155 |
|
| 156 |
General : |
| 157 |
|
| 158 |
* Fix minor bugs |
| 159 |
|
| 160 |
= 2.0 = |
| 161 |
*Release Date - 23 March 2016* |
| 162 |
|
| 163 |
General : |
| 164 |
|
| 165 |
* **New** Add a shortcode [nb-doc] who return number of documents (same utilisation as [cv-hal]) |
| 166 |
|
| 167 |
Page : |
| 168 |
|
| 169 |
* Add possibility to display in "Contact" informations about a researcher with an IdHAL |
| 170 |
|
| 171 |
|
| 172 |
= 1.4.4 = |
| 173 |
*Release Date - 18 March 2016* |
| 174 |
|
| 175 |
Page : |
| 176 |
|
| 177 |
* **Important :** Fix bug Publications with DocType ! |
| 178 |
* Add class CSS for each DocType block (Example : grp-div-ART) |
| 179 |
|
| 180 |
= 1.4.3 = |
| 181 |
*Release Date - 16 March 2016* |
| 182 |
|
| 183 |
Page : |
| 184 |
|
| 185 |
* Fix bug about synchronisation of metadata with HAL |
| 186 |
* Fix bug about button with theme Sixteen (CSS) |
| 187 |
|
| 188 |
= 1.4.2 = |
| 189 |
*Release Date - 7 March 2016* |
| 190 |
|
| 191 |
Page : |
| 192 |
|
| 193 |
* Delete the curl request to the API for DocType |
| 194 |
* Create new repository JSON with DocType => Improving performance |
| 195 |
|
| 196 |
= 1.4.1 = |
| 197 |
*Release Date - 17 February 2016* |
| 198 |
|
| 199 |
Widget : |
| 200 |
|
| 201 |
* Citation Full change to Citation Ref (shorter) |
| 202 |
|
| 203 |
Page : |
| 204 |
|
| 205 |
* **Important :** Now you can give parameters to the shortcode [cv-hal] to display multiple pages on your website with different IDs. If the shortcode doesn't have parameters, he will take parameters from the settings page of the plugin. |
| 206 |
Example : [cv-hal] => Settings Page Plugin ; [cv-hal id=184 type=authStructId_i] => Identifier Structure 184 |
| 207 |
|
| 208 |
* Bug fixed on link URL in Metadata |
| 209 |
* Improve the performance of the page |
| 210 |
|
| 211 |
= 1.4 = |
| 212 |
*Release Date - 9 February 2016* |
| 213 |
|
| 214 |
Widget : |
| 215 |
|
| 216 |
* Add a verification about curl extension in php config |
| 217 |
* New interface to personalize your widget : Number of documents to show, Display type (Title or Citation) |
| 218 |
* Multiple Ids are allowed (separated by ",") |
| 219 |
|
| 220 |
Page : |
| 221 |
|
| 222 |
* Add a verification about curl extension in php config |
| 223 |
* Minor change on the interface "Publications" |
| 224 |
* Add traduction on Typdoc |
| 225 |
* Typdoc in the good order (ART, COMM, etc...) |
| 226 |
* Add class or id for each item |
| 227 |
* You can add a stylesheet in the repository "css" and call it "cvhal.css" to surcharge the css of the plugin and personalize your page. **Deleted** |
| 228 |
|
| 229 |
= 1.3 = |
| 230 |
*Release Date - 21 January 2016* |
| 231 |
|
| 232 |
* Add USER_AGENT for curl |
| 233 |
* Add conditions to call the API HAL |
| 234 |
|
| 235 |
= 1.2 = |
| 236 |
*Release Date - 15 January 2016* |
| 237 |
|
| 238 |
* Correct some bugs |
| 239 |
|
| 240 |
= 1.1 = |
| 241 |
*Release Date - 7 September 2015* |
| 242 |
|
| 243 |
* Bootstrap library deleted |
| 244 |
* New appearance for the plugin |
| 245 |
|
| 246 |
== Upgrade Notice == |
| 247 |
|
| 248 |
Nothing for the moment... |
| 249 |
|