@@ -79,6 +79,122 @@ See the complete [map for each type of RIS reference](./resources/fields-map.csv
7979
8080See [ list of reference types] ( ./resources/types.csv ) . Based on https://en.wikipedia.org/wiki/RIS_(file_format) .
8181
82+ ## Mendeley
83+
84+ Bibliographic records in RIS format can be converted to Mendeley references:
85+
86+ ``` javascript
87+ RIS .toMendeley (`
88+ TY - JOUR
89+ TI - Mission to the Moon
90+ AU - Armstrong, Neil
91+ DA - 1969/07/20
92+ ER -
93+ ` );
94+ // => [{ type: 'journal'
95+ // => , authors: [{last_name: 'Armstrong', first_name: 'Neil'}]
96+ // => , accessed: '1969-07-20'
97+ // => , title: 'Mission to the Moon' }]
98+ ```
99+
100+ ** Warning:** not all RIS fields can be mapped to a Mendeley fields. The following tables show which RIS fields are supported by Mendeley.
101+
102+ ** Warning:** each Mendeley references is validated before it is returned. If one field in the reference is invalid the _ entire_ reference is discarded. e.g.,
103+
104+
105+ ``` javascript
106+ RIS .toMendeley (`
107+ TY - JOUR
108+ AU - Armstrong, Neil
109+ DA - 1969/07/20
110+ ER -
111+ ` );
112+ // => []
113+ // In Mendeley all references MUST have a title!
114+ ```
115+
116+ ### All Records
117+
118+ | RIS | Mendeley |
119+ | :----| :-----------------|
120+ | A1 | authors |
121+ | A2 | editors |
122+ | A3 | authors |
123+ | A4 | authors |
124+ | AB | abstract |
125+ | AN | identifiers.pmid |
126+ | AU | authors |
127+ | CY | city |
128+ | DA | accessed |
129+ | DO | identifiers.doi |
130+ | ET | edition |
131+ | IS | issue |
132+ | KW | keywords |
133+ | L1 | websites |
134+ | L4 | websites |
135+ | LA | language |
136+ | LB | tags |
137+ | N1 | notes |
138+ | PB | publisher |
139+ | PY | year |
140+ | RN | notes |
141+ | SE | chapter |
142+ | SN | identifiers.isbn |
143+ | SP | pages |
144+ | ST | short_title |
145+ | T2 | source |
146+ | T3 | series |
147+ | TA | authors |
148+ | TI | title |
149+ | UR | websites |
150+ | VL | volume |
151+
152+ ### PAT Records
153+
154+ | RIS | Mendeley |
155+ | :----| :--------------------------|
156+ | C6 | patent_legal_status |
157+ | M1 | patent_application_number |
158+
159+ ### JOUR & JFULL Records
160+
161+ | RIS | Mendeley |
162+ | :----| :-----------------|
163+ | SN | identifiers.issn |
164+
165+ ### RPRT Records
166+
167+ | RIS | Mendeley |
168+ | :----| :-----------------|
169+ | VL | series_number |
170+
171+ ### Types Conversion
172+
173+ | RIS | Mendeley |
174+ | :----------| :-----------------------|
175+ | BILL | bill |
176+ | BOOK | book |
177+ | CASE | case |
178+ | CHAP | book_section |
179+ | COMP | computer_program |
180+ | CONF | conference_proceedings |
181+ | ENCYC | encyclopedia_article |
182+ | GEN | generic |
183+ | HEAR | hearing |
184+ | ICOMM | web_page |
185+ | JFULL | journal |
186+ | JOUR | journal |
187+ | MGZN | magazine_article |
188+ | MPCT | film |
189+ | NEWS | newspaper_article |
190+ | PAT | patent |
191+ | RPRT | report |
192+ | STAT | statute |
193+ | THES | thesis |
194+ | UNPB | working_paper |
195+ | * Others* | generic |
196+
197+
82198## Development
83199
84200The following command will:
0 commit comments