DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:pubmed2020

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:pubmed2020 [2020-12-22 13:15] – [Specific commands] eric.maeker@gmail.complugin:pubmed2020 [2023-01-12 06:52] (current) – [Authors and licence] 2a01:e34:efb1:3b80:9cb7:a35:3efe:6fdc
Line 6: Line 6:
 email      : eric.maeker@gmail.com email      : eric.maeker@gmail.com
 type       : syntax, render type       : syntax, render
-lastupdate : 2020-06-05+lastupdate : 2023-01-13
 compatible : Greebo, Frusterick Manners, Elenor Of Tsort, Detritus compatible : Greebo, Frusterick Manners, Elenor Of Tsort, Detritus
 similar    : pubmed similar    : pubmed
Line 29: Line 29:
   * Code was rewritten in 2020 due to PubMed new API (see [[https://api.ncbi.nlm.nih.gov/lit/ctxp|updateCtx]])   * Code was rewritten in 2020 due to PubMed new API (see [[https://api.ncbi.nlm.nih.gov/lit/ctxp|updateCtx]])
   * License : Public Domain   * License : Public Domain
-  * Current version : 2020-06-05+  * Current version : 2023-01-13
  
 ===== Examples/Usage ===== ===== Examples/Usage =====
Line 70: Line 70:
   * **You can require multiple citations at once (creating a nice HTML list):**   * **You can require multiple citations at once (creating a nice HTML list):**
     * For example this list uses the citations used as examples in the Vancouver referencing paper ''%%{{pmid>vancouver:19171717,12142303,12028325,12084862,12166575,15857727}}%%''     * For example this list uses the citations used as examples in the Vancouver referencing paper ''%%{{pmid>vancouver:19171717,12142303,12028325,12084862,12166575,15857727}}%%''
 +    * If you want to automatically sort ID, just start the list with the word //sort// : ''%%{{pmid>vancouver:sort,19171717,12142303,12028325,12084862,12166575,15857727}}%%''
  
   * **Including links to pubmed search page**   * **Including links to pubmed search page**
Line 81: Line 82:
 // Search of terms with options // Search of terms with options
 {{pmid>search:"Inappropriate Prescribing"[Mesh]|size=200|sort=pubdate}} {{pmid>search:"Inappropriate Prescribing"[Mesh]|size=200|sort=pubdate}}
 +// Search passing a specific title for the link (just use a # for the first param)
 +{{pmid>search:#My Link Title|"Inappropriate Prescribing"[Mesh]|size=200|sort=pubdate}}
 </code> </code>
  
Line 149: Line 152:
 |  **short**  |  %first_author%. %iso%. %pmid%. %pmcid% %journal_url% %pmc_url%  | |  **short**  |  %first_author%. %iso%. %pmid%. %pmcid% %journal_url% %pmc_url%  |
 |  **long**  |  %authors%. %title%. %iso%. %pmid%. %pmcid% %journal_url% %pmc_url%  | |  **long**  |  %authors%. %title%. %iso%. %pmid%. %pmcid% %journal_url% %pmc_url%  |
-|  **long_pdf**  |  %authors%. %title%. %iso%. %pmid%. %pmcid% %journal_url% %pmc_url% %localpdf% +|  **long_pdf**  |  %authors%. %title%. %iso%. %pmid%. %pmcid% %journal_url% %pmc_url% %localpdf% %tweet%  | 
-|  **long_abstract**  |  %authors%. %title%. %iso%. %pmid%. %pmcid% %journal_url% %pmc_url% %abstract% %abstractFr% +|  **long_abstract**  |  %authors%. %title%. %iso%. %pmid%. %pmcid% %journal_url% %pmc_url% %abstract% %abstractFr% %tweet%  | 
-|  **long_abstract_pdf**  |  %authors%. %title%. %iso%. %pmid%. %pmcid% %journal_url% %pmc_url% %abstract% %abstractFr% %localpdf% +|  **long_abstract_pdf**  |  %authors%. %title%. %iso%. %pmid%. %pmcid% %journal_url% %pmc_url% %abstract% %abstractFr% %localpdf% %tweet%  | 
-|  **long_tt**  |  %authors%. %title_tt%. %iso%. %pmid%. %pmcid% %journal_url% %pmc_url% +|  **long_tt**  |  %authors%. %title_tt%. %iso%. %pmid%. %pmcid% %journal_url% %pmc_url% %tweet%  | 
-|  **long_tt_pdf**  |  %authors%. %title_tt%. %iso%. %pmid%. %pmcid% %journal_url% %pmc_url% %localpdf% +|  **long_tt_pdf**  |  %authors%. %title_tt%. %iso%. %pmid%. %pmcid% %journal_url% %pmc_url% %localpdf% %tweet%  | 
-|  **long_tt_abstract**  |  %authors%. %title_tt%. %iso%. %pmid%. %pmcid% %journal_url% %pmc_url% %abstract% %abstractFr% +|  **long_tt_abstract**  |  %authors%. %title_tt%. %iso%. %pmid%. %pmcid% %journal_url% %pmc_url% %abstract% %abstractFr% %tweet%  | 
-|  **long_tt_abstract_pdf**  |  %authors%. %title_tt%. %iso%. %pmid%. %pmcid% %journal_url% %pmc_url% %abstract% %abstractFr% %localpdf%  |+|  **long_tt_abstract_pdf**  |  %authors%. %title_tt%. %iso%. %pmid%. %pmcid% %journal_url% %pmc_url% %abstract% %abstractFr% %localpdf% %tweet%  |
  
 ==== Defining citation format for one document ==== ==== Defining citation format for one document ====
Line 174: Line 177:
     * ''%%addtt%%'' add a translated to the raw medline data     * ''%%addtt%%'' add a translated to the raw medline data
       * ''%%{{pmid>addtt:123456789|translated title to add is this current string}}%%''       * ''%%{{pmid>addtt:123456789|translated title to add is this current string}}%%''
 +    * ''%%addhash%%'' add a hashtags to the raw medline data (used for the Tweet URLs)
 +      * ''%%{{pmid>addhash:123456789|MyHash1,MyHash2,MyHash3}}%%''
     * ''%%test%%'' only for devs     * ''%%test%%'' only for devs
     * ''%%raw_medline%%'' show the retrieved MedLine code. {{pmid>summaryxml:24073682}}     * ''%%raw_medline%%'' show the retrieved MedLine code. {{pmid>summaryxml:24073682}}
Line 191: Line 196:
     * Default authors limitation in Vancouver format     * Default authors limitation in Vancouver format
     * Default string replacement of authors over the Vancouver author limitation     * Default string replacement of authors over the Vancouver author limitation
 +    * Twitter user name to use in the Tweet URLs (via @UserName)
 +    * You use URL shorteners for the creation of the Twitter weblinks
  
 ===== Development ===== ===== Development =====
plugin/pubmed2020.1608639311.txt.gz · Last modified: 2020-12-22 13:15 by eric.maeker@gmail.com

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki