search - StanfordBioinformatics/pulsar_lims GitHub Wiki
The Search form
This page is for the search box at the top and middle of the application layout. The user can search for any record by using its Record ID. This identifier is shown on a record's page in a field by the same name. For example, the Record ID for a Library record whose id is 15 is L-15.
Under the hood
Each model has a constant called ABBR, which stands for "abbreviation". For example, given the Library model, we have Library.ABBR = "L"
. A Record ID is simply the concatenation of a model's abbreviation, a "-", and the value of a record's id. This calculated attribute is not stored in the database.