From: SourceForge.net <no...@so...> - 2011-05-17 01:09:28
|
Bugs item #3303076, was opened at 2011-05-16 21:09 Message generated for change (Tracker Item Submitted) made by sfrgpiel You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=1126676&aid=3303076&group_id=248804 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: ui Group: None Status: Open Priority: 7 Private: No Submitted By: William Piel (sfrgpiel) Assigned to: hshyket (hshyket) Summary: Search on ISO 8601 date styles Initial Comment: Currently, the API allows the user to search by date, e.g.: http://treebase-dev.nescent.org/treebase-web/phylows/study/find?query=prism.creationDate>"May 5, 2011"&format=rss1 http://treebase-dev.nescent.org/treebase-web/phylows/study/find?query=prism.modificationDate>"May 5, 2011"&format=rss1 http://treebase-dev.nescent.org/treebase-web/phylows/study/find?query=prism.publicationDate>"May 5, 2011"&format=rss1 However, CQL usually expects the date format to conform to ISO 8601: http://www.loc.gov/standards/sru/resources/cql-context-set-v1-2.html This date style already works for our OAI-PMH service, e.g.: http://treebase.org/treebase-web/top/oai?verb=ListRecords&metadataPrefix=oai_dc&from=2011-05-05T00:00:00Z Let's expand the date format in the API -- if anything it avoids needing to put the date in quotes. The issue is to configure the DateFormat object correctly which is done in the StudySearchController, at lines 311, 332 and 350. You can probably pass date formatting templates to the factory that returns a date parser through the getInstance() call. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=1126676&aid=3303076&group_id=248804 |