diff options
author | Episteme Health Inc <ehi-git@epistemehealth.com> | 2020-07-26 05:14:42 +0300 |
---|---|---|
committer | Episteme Health Inc <ehi-git@epistemehealth.com> | 2020-07-26 05:14:42 +0300 |
commit | fa887c82c76d1183aee9a69ebc39e9b9a3bd06aa (patch) | |
tree | bb3d2fb17a89f79bf988b4be7af64dc37d6b0e3f | |
parent | 47a6f7377391706cc8ea83acad4bac11541a8eba (diff) |
Implement COinS
-rw-r--r-- | README.md | 3 | ||||
-rw-r--r-- | layouts/article/single.html | 1 | ||||
-rw-r--r-- | layouts/partials/COinS.html | 1 | ||||
-rw-r--r-- | layouts/partials/url-encode.html | 1 |
4 files changed, 5 insertions, 1 deletions
@@ -17,6 +17,7 @@ The theme can replicate the journal front end, including homepage, tables of con Article pages will: * Show article details, including authors, abstract, funding, keywords, and references * Provide the article's citation in 10 different options for in-browser display or for export in RIS, Endnote, Bib, and CSL-JSON formats. +* Embed article citation details in meta tags (Dublin Core and for Google Scholar) and COinS (for Zotero). * Allow for viewing for PDF and XML galleys using eLife lens * Display the Crossmark logo if crossmark_enabled is set to `true` in config.toml. @@ -69,7 +70,7 @@ PDF and XML galleys can be viewed in browser, with JATS XML galleys rendering us One of the use cases for this theme is to generate a static mirror of the journal. Pages therefore have params for `canonicalurl` and canonical galleys, so that those pages can be rendered with `rel="canonical"` tags for search engines. -In `config.toml`, the `mirrorfor` param is used to designate the base URL for the journal. If `mirrorfor` is no `rel="canonical"` tags will be used. +In `config.toml`, the `mirrorfor` param is used to designate the base URL for the journal. If `mirrorfor` is not set then no `rel="canonical"` tags will be used. # Support and Future Development diff --git a/layouts/article/single.html b/layouts/article/single.html index d9f6762..164a36d 100644 --- a/layouts/article/single.html +++ b/layouts/article/single.html @@ -18,5 +18,6 @@ {{ partial "footer.html" . }} {{ partial "citation-export-script.html" . }} {{ partial "javascript-libraries.html" . }} +{{ partial "COinS.html" . }} </body> </html>
\ No newline at end of file diff --git a/layouts/partials/COinS.html b/layouts/partials/COinS.html new file mode 100644 index 0000000..19007fc --- /dev/null +++ b/layouts/partials/COinS.html @@ -0,0 +1 @@ +<span class="Z3988" title="ctx_ver=Z39.88-2004&rft_id={{ .Permalink }}&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.title={{ $jtitle := partial "url-encode.html" .Site.Title }}{{ $jtitle }}&rft.jtitle={{ $jtitle }}&rft.atitle={{ partial "url-encode.html" .Title }}&rft.artnum={{ partial "url-encode.html" .Params.articleID }}&rft.stitle=&rft.volume={{ partial "url-encode.html" .Params.volume }}{{ with .Params.issue }}&rft.issue={{ partial "url-encode.html" . }}{{ end }}{{ range first 1 .Params.authors }}{{ with .given_name }}&rft.aufirst={{ . }}{{ end }}{{ with .surname }}&rft.aulast={{ . }}{{ end }}{{ end }}{{ range .Params.authors }}&rft.au={{ if and ( .given_name ) ( .surname ) }}{{ .given_name }}%20{{ .surname }}{{ else }}{{ with .given_name }}{{ . }}{{ end }}{{ with .surname }}{{ . }}{{ end }}{{ end }}{{ end }}{{ with .Date }}&rft.date={{ dateFormat "2006-01-02" . }}{{ end }}{{ with .Params.doi }}&rft_id=info%3Adoi%2F{{ partial "url-encode.html" . }}{{ end }}{{ with .Params.firstpage }}&rft.pages={{ . }}{{ with $.Params.lastpage }}-{{ . }}{{ end }}{{ end }}{{ with .Site.Params.printISSN }}&rft.issn={{ . }}{{ end }}{{ with .Site.Params.eISSN }}&rft.eissn={{ . }}{{ end }}"></span>
\ No newline at end of file diff --git a/layouts/partials/url-encode.html b/layouts/partials/url-encode.html new file mode 100644 index 0000000..0f8593e --- /dev/null +++ b/layouts/partials/url-encode.html @@ -0,0 +1 @@ +{{ $txt := . }}{{ $txt = replace $txt "%" "%25" }}{{ $txt = replace $txt " " "%20" }}{{ $txt = replace $txt "!" "%21" }}{{ $txt = replace $txt "#" "%23" }}{{ $txt = replace $txt "$" "%24" }}{{ $txt = replace $txt "&" "%26" }}{{ $txt = replace $txt "'" "%27" }}{{ $txt = replace $txt "(" "%28" }}{{ $txt = replace $txt ")" "%29" }}{{ $txt = replace $txt "*" "%2A" }}{{ $txt = replace $txt "+" "%2B" }}{{ $txt = replace $txt "," "%2C" }}{{ $txt = replace $txt "-" "%2D" }}{{ $txt = replace $txt "/" "%2F" }}{{ $txt = replace $txt ":" "%3A" }}{{ $txt = replace $txt ";" "%3B" }}{{ $txt = replace $txt "<" "%3C" }}{{ $txt = replace $txt "=" "%3D" }}{{ $txt = replace $txt ">" "%3E" }}{{ $txt = replace $txt "?" "%3F" }}{{ $txt = replace $txt "@" "%40" }}{{ $txt = replace $txt "[" "%5B" }}{{ $txt = replace $txt "\\" "%5C" }}{{ $txt = replace $txt "]" "%5D" }}{{ $txt = replace $txt "^" "%5E" }}{{ $txt = replace $txt "_" "%5F" }}{{ $txt = replace $txt "`" "%60" }}{{ $txt = replace $txt "{" "%7B" }}{{ $txt = replace $txt "|" "%7C" }}{{ $txt = replace $txt "}" "%7D" }}{{ $txt = replace $txt "~" "%7E" }}{{ $txt = replace $txt "`" "%E2%82%AC" }}{{ $txt = replace $txt "‚" "%E2%80%9A" }}{{ $txt = replace $txt "„" "%E2%80%9E" }}{{ $txt = replace $txt "…" "%E2%80%A6" }}{{ $txt = replace $txt "†" "%E2%80%A0" }}{{ $txt = replace $txt "‡" "%E2%80%A1" }}{{ $txt = replace $txt "ˆ" "%CB%86" }}{{ $txt = replace $txt "‘" "%E2%80%98" }}{{ $txt = replace $txt "’" "%E2%80%99" }}{{ $txt = replace $txt "“" "%E2%80%9C" }}{{ $txt = replace $txt "”" "%E2%80%9D" }}{{ $txt = replace $txt "–" "%E2%80%93" }}{{ $txt = replace $txt "—" "%E2%80%94" }}{{ $txt = replace $txt "˜" "%CB%9C" }}{{ $txt = replace $txt "™" "%E2%84" }}{{ $txt = replace $txt "š" "%C5%A1" }}{{ $txt = replace $txt "›" "%E2%80" }}{{ $txt = replace $txt "œ" "%C5%93" }}{{ $txt = replace $txt "ž" "%C5%BE" }}{{ $txt = replace $txt "Ÿ" "%C5%B8" }}{{ $txt = replace $txt "¡" "%C2%A1" }}{{ $txt = replace $txt "¢" "%C2%A2" }}{{ $txt = replace $txt "£" "%C2%A3" }}{{ $txt = replace $txt "¤" "%C2%A4" }}{{ $txt = replace $txt "¥" "%C2%A5" }}{{ $txt = replace $txt "¦" "%C2%A6" }}{{ $txt = replace $txt "§" "%C2%A7" }}{{ $txt = replace $txt "¨" "%C2%A8" }}{{ $txt = replace $txt "©" "%C2%A9" }}{{ $txt = replace $txt "ª" "%C2%AA" }}{{ $txt = replace $txt "«" "%C2%AB" }}{{ $txt = replace $txt "¬" "%C2%AC" }}{{ $txt = replace $txt "" "%C2%AD" }}{{ $txt = replace $txt "®" "%C2%AE" }}{{ $txt = replace $txt "¯" "%C2%AF" }}{{ $txt = replace $txt "°" "%C2%B0" }}{{ $txt = replace $txt "±" "%C2%B1" }}{{ $txt = replace $txt "²" "%C2%B2" }}{{ $txt = replace $txt "³" "%C2%B3" }}{{ $txt = replace $txt "´" "%C2%B4" }}{{ $txt = replace $txt "µ" "%C2%B5" }}{{ $txt = replace $txt "¶" "%C2%B6" }}{{ $txt = replace $txt "·" "%C2%B7" }}{{ $txt = replace $txt "¸" "%C2%B8" }}{{ $txt = replace $txt "¹" "%C2%B9" }}{{ $txt = replace $txt "º" "%C2%BA" }}{{ $txt = replace $txt "»" "%C2%BB" }}{{ $txt = replace $txt "¼" "%C2%BC" }}{{ $txt = replace $txt "½" "%C2%BD" }}{{ $txt = replace $txt "¾" "%C2%BE" }}{{ $txt = replace $txt "¿" "%C2%BF" }}{{ $txt = replace $txt "À" "%C3%80" }}{{ $txt = replace $txt "Á" "%C3%81" }}{{ $txt = replace $txt "Â" "%C3%82" }}{{ $txt = replace $txt "Ã" "%C3%83" }}{{ $txt = replace $txt "Ä" "%C3%84" }}{{ $txt = replace $txt "Å" "%C3%85" }}{{ $txt = replace $txt "Æ" "%C3%86" }}{{ $txt = replace $txt "Ç" "%C3%87" }}{{ $txt = replace $txt "È" "%C3%88" }}{{ $txt = replace $txt "É" "%C3%89" }}{{ $txt = replace $txt "Ê" "%C3%8A" }}{{ $txt = replace $txt "Ë" "%C3%8B" }}{{ $txt = replace $txt "Ì" "%C3%8C" }}{{ $txt = replace $txt "Í" "%C3%8D" }}{{ $txt = replace $txt "Î" "%C3%8E" }}{{ $txt = replace $txt "Ï" "%C3%8F" }}{{ $txt = replace $txt "Ð" "%C3%90" }}{{ $txt = replace $txt "Ñ" "%C3%91" }}{{ $txt = replace $txt "Ò" "%C3%92" }}{{ $txt = replace $txt "Ó" "%C3%93" }}{{ $txt = replace $txt "Ô" "%C3%94" }}{{ $txt = replace $txt "Õ" "%C3%95" }}{{ $txt = replace $txt "Ö" "%C3%96" }}{{ $txt = replace $txt "×" "%C3%97" }}{{ $txt = replace $txt "Ø" "%C3%98" }}{{ $txt = replace $txt "Ù" "%C3%99" }}{{ $txt = replace $txt "Ú" "%C3%9A" }}{{ $txt = replace $txt "Û" "%C3%9B" }}{{ $txt = replace $txt "Ü" "%C3%9C" }}{{ $txt = replace $txt "Ý" "%C3%9D" }}{{ $txt = replace $txt "Þ" "%C3%9E" }}{{ $txt = replace $txt "ß" "%C3%9F" }}{{ $txt = replace $txt "à" "%C3%A0" }}{{ $txt = replace $txt "á" "%C3%A1" }}{{ $txt = replace $txt "â" "%C3%A2" }}{{ $txt = replace $txt "ã" "%C3%A3" }}{{ $txt = replace $txt "ä" "%C3%A4" }}{{ $txt = replace $txt "å" "%C3%A5" }}{{ $txt = replace $txt "æ" "%C3%A6" }}{{ $txt = replace $txt "ç" "%C3%A7" }}{{ $txt = replace $txt "è" "%C3%A8" }}{{ $txt = replace $txt "é" "%C3%A9" }}{{ $txt = replace $txt "ê" "%C3%AA" }}{{ $txt = replace $txt "ë" "%C3%AB" }}{{ $txt = replace $txt "ì" "%C3%AC" }}{{ $txt = replace $txt "í" "%C3%AD" }}{{ $txt = replace $txt "î" "%C3%AE" }}{{ $txt = replace $txt "ï" "%C3%AF" }}{{ $txt = replace $txt "ð" "%C3%B0" }}{{ $txt = replace $txt "ñ" "%C3%B1" }}{{ $txt = replace $txt "ò" "%C3%B2" }}{{ $txt = replace $txt "ó" "%C3%B3" }}{{ $txt = replace $txt "ô" "%C3%B4" }}{{ $txt = replace $txt "õ" "%C3%B5" }}{{ $txt = replace $txt "ö" "%C3%B6" }}{{ $txt = replace $txt "÷" "%C3%B7" }}{{ $txt = replace $txt "ø" "%C3%B8" }}{{ $txt = replace $txt "ù" "%C3%B9" }}{{ $txt = replace $txt "ú" "%C3%BA" }}{{ $txt = replace $txt "û" "%C3%BB" }}{{ $txt = replace $txt "ü" "%C3%BC" }}{{ $txt = replace $txt "ý" "%C3%BD" }}{{ $txt = replace $txt "þ" "%C3%BE" }}{{ $txt = replace $txt "ÿ" "%C3%BF" }}{{ $txt = replace $txt "Α" "%CE%91" }}{{ $txt = replace $txt "Β" "%CE%92" }}{{ $txt = replace $txt "Γ" "%CE%93" }}{{ $txt = replace $txt "Δ" "%CE%94" }}{{ $txt = replace $txt "Ε" "%CE%95" }}{{ $txt = replace $txt "Ζ" "%CE%96" }}{{ $txt = replace $txt "Η" "%CE%97" }}{{ $txt = replace $txt "Θ" "%CE%98" }}{{ $txt = replace $txt "Ι" "%CE%99" }}{{ $txt = replace $txt "Κ" "%CE%9A" }}{{ $txt = replace $txt "Λ" "%CE%9B" }}{{ $txt = replace $txt "Μ" "%CE%9C" }}{{ $txt = replace $txt "Ν" "%CE%9D" }}{{ $txt = replace $txt "Ξ" "%CE%9E" }}{{ $txt = replace $txt "Ο" "%CE%9F" }}{{ $txt = replace $txt "Π" "%CE%A0" }}{{ $txt = replace $txt "Ρ" "%CE%A1" }}{{ $txt = replace $txt "Σ" "%CE%A3" }}{{ $txt = replace $txt "Τ" "%CE%A4" }}{{ $txt = replace $txt "Υ" "%CE%A5" }}{{ $txt = replace $txt "ϒ" "%CF%92" }}{{ $txt = replace $txt "Φ" "%CE%A6" }}{{ $txt = replace $txt "Χ" "%CE%A7" }}{{ $txt = replace $txt "Ψ" "%CE%A8" }}{{ $txt = replace $txt "Ω" "%CE%A9" }}{{ $txt = replace $txt "α" "%CE%B1" }}{{ $txt = replace $txt "β" "%CE%B2" }}{{ $txt = replace $txt "γ" "%CE%B3" }}{{ $txt = replace $txt "δ" "%CE%B4" }}{{ $txt = replace $txt "ε" "%CE%B5" }}{{ $txt = replace $txt "ζ" "%CE%B6" }}{{ $txt = replace $txt "η" "%CE%B7" }}{{ $txt = replace $txt "θ" "%CE%B8" }}{{ $txt = replace $txt "ϑ" "%CF%91" }}{{ $txt = replace $txt "ι" "%CE%B9" }}{{ $txt = replace $txt "κ" "%CE%BA" }}{{ $txt = replace $txt "λ" "%CE%BB" }}{{ $txt = replace $txt "μ" "%CE%BC" }}{{ $txt = replace $txt "ν" "%CE%BD" }}{{ $txt = replace $txt "ξ" "%CE%BE" }}{{ $txt = replace $txt "ο" "%CE%BF" }}{{ $txt = replace $txt "π" "%CF%80" }}{{ $txt = replace $txt "ϖ" "%CF%96" }}{{ $txt = replace $txt "ρ" "%CF%81" }}{{ $txt = replace $txt "ς" "%CF%82" }}{{ $txt = replace $txt "σ" "%CF%83" }}{{ $txt = replace $txt "τ" "%CF%84" }}{{ $txt = replace $txt "υ" "%CF%85" }}{{ $txt = replace $txt "φ" "%CF%86" }}{{ $txt = replace $txt "χ" "%CF%87" }}{{ $txt = replace $txt "ψ" "%CF%88" }}{{ $txt = replace $txt "ω" "%CF%89" }}{{ $txt }}
\ No newline at end of file |