Sorting
From DLXS Documentation
(→Sorting Groups of Collections) |
(→Image Class) |
||
Line 11: | Line 11: | ||
==Image Class== | ==Image Class== | ||
- | Image Class collections have customizable <code>sortflds</code>. | + | Image Class collections have customizable <code>sortflds</code>. Display labels for sort fields may be customized as well. See contextual Collmgr documentation for more information about each field. |
==Sorting Groups of Collections== | ==Sorting Groups of Collections== |
Revision as of 15:10, 21 August 2009
Sorting is available in all classes and is controlled by the collmgr sortflds
field. Sorting is configurable by collection in all classes.
Contents |
Text Class
The possible values for sorting in Text Class are "occur", "datea", "dated", "author", "title", "freq", which correspond to the pulldown menu items: "not sorted", "date ascending", "date descending", "author", "title", "frequency". The menu items will appear in the order listed in the collmgr field. It is best to place "occur" first as the default behavior is unsorted. You must have maps for maindate, mainauthor, and maintitle to support date, author, and title sorting.
Finding Aids
The possible values for sorting in Finding Aids Class are "occur", "title", "creator", "freq" which correspond to the pulldown menu items: "not sorted", "title", "creator","frequency". The menu items will appear in the order listed in the collmgr field. It is best to place "occur" first as the default behavior is unsorted. You must have maps for mainauthor and maintitle to support creator and title sorting.
Image Class
Image Class collections have customizable sortflds
. Display labels for sort fields may be customized as well. See contextual Collmgr documentation for more information about each field.
Sorting Groups of Collections
Sorting on groups behaves differently in Image Class than it does in Text and Finding Aids Classes. In Image Class, the sort fields are set through the group's collmgr entry, with appropriate sortfld
and field_labels
set as they are in a collection.
In Finding Aids Class and Text Class, sorting is determined by the middleware, using the common set of fields available for all collections in a group. For reasons as yet undetermined, users with different browsers/operating systems may see sorting features differently on groups where the sortfld
values are in different orders. It may be prudent to ensure to ensure that the common sort options are in the same order in all the collections in the group, so that all users have a consistent experience. Additionally, options that may seem useless within a collection (title sorting with a set of collected works where each title is in the form "The Collected Works of a Famous Writer, Vol. 2," for example) may have more value with a group of assorted collections including those collected works.