File tree Expand file tree Collapse file tree 3 files changed +31
-0
lines changed
logic/importer/fileformat
test/java/org/jabref/logic/importer/fileformat Expand file tree Collapse file tree 3 files changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -182,6 +182,14 @@ public ParserResult importDatabase(BufferedReader reader) throws IOException {
182182 fields .put (FieldName .EDITION , value );
183183 } else if ("SN" .equals (tag )) {
184184 fields .put (FieldName .ISSN , value );
185+ } else if ("L1" .equals (tag )) {
186+ fields .put (FieldName .PDF , value );
187+ } else if ("L2" .equals (tag )) {
188+ fields .put (FieldName .FULLTEXTLINK , value );
189+ } else if ("L3" .equals (tag )) {
190+ fields .put (FieldName .RELATED , value );
191+ } else if ("L4" .equals (tag )) {
192+ fields .put (FieldName .IMAGE , value );
185193 } else if ("VL" .equals (tag )) {
186194 fields .put (FieldName .VOLUME , value );
187195 } else if ("N2" .equals (tag ) || "AB" .equals (tag )) {
Original file line number Diff line number Diff line change @@ -62,11 +62,13 @@ public class FieldName {
6262 public static final String EVENTTITLE = "eventtitle" ;
6363 public static final String EVENTTITLEADDON = "eventtitleaddon" ;
6464 public static final String FILE = "file" ;
65+ public static final String FULLTEXTLINK = "fulltextlink" ;
6566 public static final String FOREWORD = "foreword" ;
6667 public static final String FOLDER = "folder" ;
6768 public static final String GENDER = "gender" ;
6869 public static final String HOLDER = "holder" ;
6970 public static final String HOWPUBLISHED = "howpublished" ;
71+ public static final String IMAGE = "image" ;
7072 public static final String INSTITUTION = "institution" ;
7173 public static final String INTRODUCTION = "introduction" ;
7274 public static final String ISBN = "isbn" ;
Original file line number Diff line number Diff line change 1+ package org .jabref .logic .importer .fileformat ;
2+
3+ import org .jabref .logic .importer .ImportFormatPreferences ;
4+
5+ import org .junit .Before ;
6+ import org .mockito .Answers ;
7+
8+ import static org .mockito .Mockito .mock ;
9+
10+ /**
11+ * Created by Lucas on 18/07/2017.
12+ */
13+ public class MyBibtexImportTest {
14+ private BibtexImporter importer ;
15+
16+
17+ @ Before
18+ public void setUp () {
19+ importer = new BibtexImporter (mock (ImportFormatPreferences .class , Answers .RETURNS_DEEP_STUBS ));
20+ }
21+ }
You can’t perform that action at this time.
0 commit comments