You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It should be easy to modify surf to accommodate other datasets, such as (say) Lok Sabha.
The dependency on any specific dataset should be minimal, and captured in some configuration variables in Config.java (this is set to some default, will be settable from surf.properties and may even be settable by the user at run time).
e.g.
e.g. in Config.java, we have added:
public static String[] columnsToDisplay = new String[]{"Name", "Sex", "Year", "Constituency", "Party", "State", "Position", "Votes"};
public static String mappedIdColumn = "pid"; // name of column into which output id's will be written
public static String primaryColumn = "Name"; // name of primary column that is being merged
public static String secondaryColumn = "AC_no"; // name of secondary column by which fields can be grouped (may or may not be visible on screen)
public static String filterColumn = "Position"; // name of column on which filter can be set. (should be expandable to accommodate multiple columns)
public static String[] filterColumnValues = new String[]{"1", "2", "3"}; // allowed values for filterColumn when set
The rest of the code should be driven only by these variables instead of being hard-coded to certain column names. HTML code, CSS selectors, etc. should also not reflect hard-coded fields, to the extent possible.
The name "incumbency" need not appear anywhere. It can simply be called Merge.
The text was updated successfully, but these errors were encountered:
It should be easy to modify surf to accommodate other datasets, such as (say) Lok Sabha.
The dependency on any specific dataset should be minimal, and captured in some configuration variables in Config.java (this is set to some default, will be settable from surf.properties and may even be settable by the user at run time).
e.g.
e.g. in Config.java, we have added:
The rest of the code should be driven only by these variables instead of being hard-coded to certain column names. HTML code, CSS selectors, etc. should also not reflect hard-coded fields, to the extent possible.
The name "incumbency" need not appear anywhere. It can simply be called Merge.
The text was updated successfully, but these errors were encountered: