@@ -53,11 +53,6 @@ public class BibtexFields {
5353 public static final String OWNER = "owner" ;
5454 public static final String TIMESTAMP = "timestamp" ; // it's also definied at the JabRefPreferences class
5555 private static final String ENTRYTYPE = "entrytype" ;
56-
57- /*
58- * some extra field definitions
59- */
60- private static final String ADDITIONAL_FIELDS = "/resource/fields/fields.xml" ;
6156
6257 public static final String // Using this when I have no database open or when I read
6358 // non bibtex file formats (used by the ImportFormatReader.java)
@@ -244,9 +239,6 @@ private BibtexFields()
244239 dummy .setDisplayable (false );
245240 add (dummy );
246241
247- // read external field definitions
248- readXML (ADDITIONAL_FIELDS );
249-
250242 // collect all public fields for the PUBLIC_FIELDS array
251243 Vector <String > pFields = new Vector <String >(fieldSet .size ());
252244 for (BibtexSingleField sField : fieldSet .values ()) {
@@ -302,34 +294,6 @@ private void add(BibtexSingleField field)
302294 fieldSet .put (key , field );
303295 }
304296
305- /** read a xml definiton file and put only NEW fields into the field list */
306- private void readXML (String resName )
307- {
308- TXMLReader reader = new TXMLReader (resName );
309- if (reader .isReady ())
310- {
311- // get a list of all fields
312- NodeList fieldNodes = reader .getNodes ("field" );
313-
314- int tagsCount = fieldNodes .getLength ();
315- for (int t = 0 ; t < tagsCount ; t ++)
316- {
317- Element entry = (Element ) fieldNodes .item (t );
318- String fName = reader .readStringAttribute (entry , "name" , null );
319- if (fName != null ) // something found ?
320- {
321- fName = fName .toLowerCase ();
322- BibtexSingleField dummy = fieldSet .get (fName );
323- if (dummy == null ) // unknown field
324- {
325- dummy = new BibtexSingleField (reader , entry );
326- fieldSet .put (fName , dummy );
327- }
328- }
329- }
330- }
331- }
332-
333297 // --------------------------------------------------------------------------
334298 // the "static area"
335299 // --------------------------------------------------------------------------
0 commit comments