-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement RIS.toMendeley to convert bibliographic records to
Mendeley references
- Loading branch information
1 parent
9f7641c
commit 494098f
Showing
15 changed files
with
4,571 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Some RIS fields have specific formatting rules. | ||
# Default is to set the field value to the field name | ||
def generate_value: | ||
if . == "A1" or . == "A2" or . == "A3" or . == "A4" or . == "AU" or . == "TA" then | ||
"\(.)Doe, \(.)John" | ||
elif . == "PY" then | ||
"1666" | ||
elif . == "DA" then | ||
"1969/07/20" | ||
elif . == "RP" then | ||
"IN FILE" | ||
else | ||
. | ||
end; | ||
|
||
.fields as $f | ||
| .types[] | ||
| ["TY - \(.)"] + ($f | map("\(.) - \(. | generate_value)")) + ["ER - \n"] | ||
| join("\n") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
{ | ||
"//1": "Used to generate a .ris file with all types and fields to see how different reference managers handle RIS records", | ||
"//2": "The original list of types and fields comes from https://web.archive.org/web/20120526103719/http://refman.com/support/risformat_intro.asp", | ||
"//3": "However some database providers have defined other fields. These can be included here too.", | ||
"types": [ | ||
"ABST", | ||
"ADVS", | ||
"AGGR", | ||
"ANCIENT", | ||
"ART", | ||
"BILL", | ||
"BLOG", | ||
"BOOK", | ||
"CASE", | ||
"CHAP", | ||
"CHART", | ||
"CLSWK", | ||
"COMP", | ||
"CONF", | ||
"CPAPER", | ||
"CTLG", | ||
"DATA", | ||
"DBASE", | ||
"DICT", | ||
"EBOOK", | ||
"ECHAP", | ||
"EDBOOK", | ||
"EJOUR", | ||
"ELEC", | ||
"ENCYC", | ||
"EQUA", | ||
"FIGURE", | ||
"GEN", | ||
"GOVDOC", | ||
"GRANT", | ||
"HEAR", | ||
"ICOMM", | ||
"INPR", | ||
"JFULL", | ||
"JOUR", | ||
"LEGAL", | ||
"MANSCPT", | ||
"MAP", | ||
"MGZN", | ||
"MPCT", | ||
"MULTI", | ||
"MUSIC", | ||
"NEWS", | ||
"PAMP", | ||
"PAT", | ||
"PCOMM", | ||
"RPRT", | ||
"SER", | ||
"SLIDE", | ||
"SOUND", | ||
"STAND", | ||
"STAT", | ||
"THES", | ||
"UNBILL", | ||
"UNPB", | ||
"VIDEO" | ||
], | ||
"fields": [ | ||
"A1", | ||
"A2", | ||
"A3", | ||
"A4", | ||
"AB", | ||
"AD", | ||
"AN", | ||
"AU", | ||
"C1", | ||
"C2", | ||
"C3", | ||
"C4", | ||
"C5", | ||
"C6", | ||
"C7", | ||
"C8", | ||
"CA", | ||
"CN", | ||
"CT", | ||
"CY", | ||
"DA", | ||
"DB", | ||
"DO", | ||
"DP", | ||
"ET", | ||
"IS", | ||
"J2", | ||
"KW", | ||
"L1", | ||
"L4", | ||
"LA", | ||
"LB", | ||
"M1", | ||
"M2", | ||
"M3", | ||
"N1", | ||
"NV", | ||
"OP", | ||
"PB", | ||
"PY", | ||
"RI", | ||
"RN", | ||
"RP", | ||
"SE", | ||
"SN", | ||
"SP", | ||
"ST", | ||
"SV", | ||
"T2", | ||
"T3", | ||
"TA", | ||
"TI", | ||
"TT", | ||
"UR", | ||
"VL", | ||
"Y2" | ||
] | ||
} |
Oops, something went wrong.