-
Notifications
You must be signed in to change notification settings - Fork 35
Lists
In the breeding process, the maintenance of lists is crucially important: for example, a breeder may want to keep a list of selected accessions, a list of accessions for planting, or a list of plots of interest.
Breedbase has a built-in list manager that can accommodate some of these use cases. In addition, lists in Breedbase are used like variables to feed data into different tools.
The use of lists requires the user to be logged in. The list link appears on the right hand side of the toolbar, next to where to login button was located before login. By default, a list generated by a user can only be seen by that user. A list can be made public, in which case any logged in user on the system can see them.
Clicking on the lists
link brings up the list pane, which lists all the available lists for that user in the system, gives their type, number of elements, etc., and buttons for each list to perform some actions, for example, downloading the list, editing the list, or deleting the list.
A number of tools, such as the generation of new field layouts, require that a list of accessions be provided. In Breedbase, such lists are provided directly by the list manager. For example, the field layout tools shows all the current lists for the user in a drop down menu by name, and the user can simply select a list from the menu.
Lists are stored in the sgn_people.list
table, with list elements stored in sgn_people.list_item
table. From backend code, the CXGN::List
object should handle all list-related queries.
For the user interface, a number of list menus can be generated from Javascript using the get_select_box() function in CXGN/BreedersToolbox/HTMLSelect.js.