PubMan Func Spec Sorting

From MPDLMediaWiki
Revision as of 13:08, 26 February 2008 by Uat (talk | contribs) (→‎Default system sorting: added edoc sorting)
Jump to navigation Jump to search

by metadata elements and item data[edit]

The system supports the sorting of the item list according to one of the following metadata elements:

  • Date (most recent)
  • Title
  • Genre
  • Creator – Person.FamilyName or Organization.Name of the first Creator
  • PublishingInfo – Organisation.Name
  • ReviewMethod
  • Source.Creator – Person.FamilyName or Organization.Name of the first Source.Creator
  • Source.Title
  • Event.Title

and the following item data:

  • Last Modified, descending
  • Collection
  • State
  • Owner

The system must support sorting in respect of case insensitivity and special characters (e.g. ä, ö, ü, ß, é, ê, è).

Default system sorting[edit]

By default, system sorting is by date (descending)

TODO: Clarify what are the rules for sorting when the metadata for sorting is not populated? (e.g. Journal has no dates at all. Where are this displayed in ascending/descending sorting order by Date?)--Natasa 11:35, 18 December 2007 (CET)

We should use same logic as done for eDoc. I got this as reply from vlad/nicole, in case "year" is not filled:--Ulla 14:08, 26 February 2008 (CET)

The sorting is following (according to appearance order):

1) if genre ( is Thesis or PhD-Thesis or Habilitation ) and dateaccept is filled then sort by dateaccept

2) if year is filled then sort by dateaccept

3) if datemodified is filled then sort by datemodified

4) if dateofevent is filled then sort by dateofevent

5) sort by dateofevent 1901-01-01

6) sort by the length of the date, generated in 1)-5)