uqlibrary/fez — pull request #19 by danielbush (2014-11-25 04:55:30+00:00)
Title: Master api date multiple values

Hi,
Bunch of commits.

Commits marked TIDYUP are cosmetic.
Commits marked FIX or FEATURE are changes.

Main issues are date handling and internal author id's (author_suggestor).

For the dates, the API was looking for this type of format
eg

2002
02
02

So I've put that into the xml template when we GET edit_metadata so that returned xml with all the xsd_display_field's can be used and POSTed back and not cause date parsing issues.

Happy to revise this as required.

I'm wondering if we should perhaps move the api templating for xsd_display fields to its own template, atm we're using and modifying the xml template here: workflow/enter_metadata.tpl.xml .

For the internal author id's
* I've relaxed the suppression of author_suggestor in the edit metadata output so it shows up as an xsdmf_display_field entry in the xml
* and I've included the xsdmf_attached_xsdmf_id so id's can be related to their parent.
For the author ids (fez_author.aut_id) the API user can GET edit_metadata (initiating a worfklow session) and then set them in the result xml output eg:

6346
123
0

which should correspond to the parent of this attached xsdmf field, ie a corresponding list of author names
eg

6351
Smith, Richard
Adams, Matthew

I've only been looking at edit scenarios (of existing records).

Regards,
Daniel