srnsw / api.records.nsw.gov.au

State Records NSW API
http://api.records.nsw.gov.au
GNU Affero General Public License v3.0
3 stars 0 forks source link

Dates need modifying for MODS/RDF_Zotero views #11

Closed richardlehane closed 13 years ago

richardlehane commented 13 years ago

Since moving over to SQL Server the old date fields in the SQLITE DB are now datetime fields. This is generally fine but is mucking up the Zotero output for series and items (comes thru as 00:00:00 UTC).

Suggest adding new start_date_simple and end_date_simple methods to the Entity model (so all entities inherit) that would produce dates in format YYYY-MM-DD. The MODS/RDF_Zotero views for Items and Series could then call these methods.

richardlehane commented 13 years ago

Fixed with this commit-

https://github.com/srnsw/api.records.nsw.gov.au/commit/8e40e04a840877ae9647bab9242f374793d7abcc