Toggle menu
QCLab
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:ORCID Work: Difference between revisions

Template page
Created page with "# [https://doi.org/{{{doi}}} {{{title}}}], ''{{{journal}}}'' ({{{year}}})"
 
No edit summary
Line 1: Line 1:
# [https://doi.org/{{{doi}}} {{{title}}}], ''{{{journal}}}'' ({{{year}}})
{{#get_web_data:
  url=https://api.crossref.org/works/{{{doi}}}?mailto=you@example.com
|format=JSON with JSONPath
|data=cr_given=$.message.author[*].given,
      cr_family=$.message.author[*].family,
      cr_volume=$.message.volume,
      cr_pages=$.message.page,
      cr_article=$.message.article-number
|cache seconds=2592000
}}
# {{#display_external_table:template=ORCID Author|data=given=cr_given,family=cr_family|delimiter=, }}, ''{{{journal}}}'' '''{{#external_value:cr_volume}}''', {{#if:{{#external_value:cr_pages}}|{{#external_value:cr_pages}}|{{#external_value:cr_article}}}} ({{{year}}}), "{{{title}}}." [https://doi.org/{{{doi}}} doi:{{{doi}}}]

Revision as of 08:43, 22 October 2026

Error while fetching data from URL https://api.crossref.org/works/{{{doi}}}?mailto=you@example.com: $2.
There was a problem during the HTTP request: 404 Not Found
Error while fetching data from URL https://api.crossref.org/works/{{{doi}}}?mailto=you@example.com:
Resource not found.
.
Could not get URL https://api.crossref.org/works/{{{doi}}}?mailto=you@example.com after 3 tries.
  1. , {{{journal}}} Error: no local variable "cr_volume" has been set., Error: no local variable "cr_pages" has been set. ({{{year}}}), "{{{title}}}." doi:{{{doi}}}