Skip to content

Commit

Permalink
Dirty hack for #315 real solution with icons postponed
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-kolb committed Nov 23, 2015
1 parent 0888a8a commit 7d4f145
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/main/java/net/sf/jabref/gui/MainTableFormat.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
* Class defining the contents and column headers of the main table.
*/
public class MainTableFormat implements TableFormat<BibtexEntry> {

// Character separating field names that are to be used in sequence as
// fallbacks for a single column (e.g. "author/editor" to use editor where
// author is not set):
Expand All @@ -46,8 +45,7 @@ public class MainTableFormat implements TableFormat<BibtexEntry> {

// Values to gather iconImages for those columns
// These values are also used to put a heading into the table; see getColumnName(int)
private static final String[]
PDF = {"pdf", "ps"};
private static final String[] PDF = {"pdf", "ps"};
private static final String[] URL_FIRST = {"url", "doi"};
private static final String[] DOI_FIRST = {"doi", "url"};
public static final String[] CITESEER = {"citeseerurl"};
Expand Down Expand Up @@ -95,6 +93,9 @@ public String getColumnName(int col) {
if (Globals.prefs.getBoolean(JabRefPreferences.SHOW_ONE_LETTER_HEADING_FOR_ICON_COLUMNS)) {
return getIconTypeForColumn(col)[0].substring(0, 1).toUpperCase();
} else {
if(getIconTypeForColumn(col)[0].equals("ranking")) {
return EntryUtil.capitalizeFirst(getIconTypeForColumn(col)[0]);
}
return null;
}
} else // try to find an alternative fieldname (for display)
Expand All @@ -113,13 +114,7 @@ public String getColumnName(int col) {
}
}
return sb.toString();
/*String disName = BibtexFields.getFieldDisplayName(columns[col - padleft]) ;
if ( disName != null)
{
return disName ;
} */
}
//return Util.capitalizeFirst(columns[col - padleft]);
}

/**
Expand Down

0 comments on commit 7d4f145

Please sign in to comment.