Skip to content

Commit

Permalink
Update 1.8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
kookma committed Jun 5, 2022
1 parent f660a5d commit cebf42b
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 17 deletions.
18 changes: 9 additions & 9 deletions docs/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions packaged/refnotes.tid

Large diffs are not rendered by default.

9 changes: 8 additions & 1 deletion source/refnotes/macros/bibtex/process-entries.tid
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
created: 20210405065852415
modified: 20220602134628455
modified: 20220604205143425
tags: $:/tags/Macro
title: $:/plugins/kookma/refnotes/macros/bibtex/process-entries
type: text/vnd.tiddlywiki
Expand All @@ -12,6 +12,12 @@ type: text/vnd.tiddlywiki
</$vars>
\end

\define correct-doi()
<$list filter="[<currentTiddler>has[bibtex-doi]get[bibtex-doi]!prefix[https://doi.org]]" variable=null>
<$action-setfield $field="bibtex-doi" $value={{{ [{!!bibtex-doi}addprefix[https://doi.org/]] }}}/>
</$list>
\end

\define tag-entries()
<!-- change entry type to lower case -->
<$action-setfield $tiddler=<<currentTiddler>> bibtex-entry-type={{{[<currentTiddler>get[bibtex-entry-type]lowercase[]]}}} />
Expand All @@ -28,6 +34,7 @@ type: text/vnd.tiddlywiki
<$list filter="[has[bibtex-title]!tag[bibtex-entry]]">
<<tag-entries>>
<<title-slugify>>
<<correct-doi>>
</$list>
</$action-confirm>
</$wikify>
Expand Down
2 changes: 1 addition & 1 deletion source/refnotes/plugin.info
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Refnotes",
"description": "references, citations, footnotes and abbreviations in Tiddlywiki",
"author": "Mohammad Rahmani",
"version": "1.8.2",
"version": "1.8.3",
"core-version": ">=5.2.0",
"source": "https://github.com/kookma/TW-Refnotes",
"list": "readme license history",
Expand Down
4 changes: 2 additions & 2 deletions source/refnotes/templates/reflist/apa/article.tid
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
created: 20210406035737424
list: article
modified: 20220604082000162
modified: 20220604195935448
tags: $:/tags/Refnotes/ReflistTemplate
title: $:/plugins/kookma/refnotes/templates/reflist/apa/article
type: text/vnd.tiddlywiki

<$wikify name=bibtexEntryTiddler text=<<reference>> >
<$set name=currentTiddler tiddler=<<bibtexEntryTiddler>> field=title emptyValue="RefNotFound">
<$reveal type="nomatch" default="RefNotFound" text=<<currentTiddler>> >
<li><$link to=<<bibtexEntryTiddler>>><<show-authors-in-references>></$link> (<$text text={{{ [{!!bibtex-year}!is[blank]] :else[[n.d.]] }}}/>). <$text text={{{ [{!!bibtex-title}lowercase[]sentencecase[]] }}} />. <span style="font-style:italic"><$view field="bibtex-journal"/></span>. <$view field="bibtex-volume"/>. <$view field="bibtex-pages"/>. <a href={{{[<currentTiddler>get[bibtex-doi]]}}}><$view field="bibtex-doi"/></a></li>
<li><$link to=<<bibtexEntryTiddler>>><<show-authors-in-references>></$link> (<$text text={{{ [{!!bibtex-year}!is[blank]] :else[[n.d.]] }}}/>). <$text text={{{ [{!!bibtex-title}lowercase[]sentencecase[]] }}} />. <span style="font-style:italic"><$view field="bibtex-journal"/></span>. <$view field="bibtex-volume"/>. <$view field="bibtex-pages"/>. <a href={{{[<currentTiddler>get[bibtex-doi]!prefix[https://doi.org/]addprefix[https://doi.org/]else{!!bibtex-doi}]}}} target=_blank><$view field="bibtex-doi"/></a></li>
</$reveal>
<$reveal type="match" default="RefNotFound" text=<<currentTiddler>> >
<li>Reference <b><$text text=<<reference>>/></b> NOT FOUND. Check your input.</li>
Expand Down
2 changes: 1 addition & 1 deletion source/refnotes/viewtemplates/helper.tid
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
created: 20210405112132790
modified: 20220603134028039
modified: 20220604200709606
tags: $:/tags/Refnotes/Template
title: $:/plugins/kookma/refnotes/viewtemplates/helper
type: text/vnd.tiddlywiki
Expand Down

0 comments on commit cebf42b

Please sign in to comment.