Skip to content
This repository has been archived by the owner on Oct 2, 2019. It is now read-only.

change the presentation of keywords, theme, and references #21

Open
gbinal opened this issue Nov 26, 2013 · 3 comments
Open

change the presentation of keywords, theme, and references #21

gbinal opened this issue Nov 26, 2013 · 3 comments
Labels

Comments

@gbinal
Copy link
Contributor

gbinal commented Nov 26, 2013

From Issue #20, the actionable deliverable would be to change the way that the generator parses the contents of the keywords, theme, and references field so that they can be entered into the field with commas but then presented in the json as an array of strings. See below.

The generator makes every field "standard JSON" i.e.

'{ "keywords":"this, that, the other" }'

This is not compliant with the standard, which has more specific requirements for how to represent the objects. For example:

'{ "keywords": ["this", "that", "the other"] }'


@gbinal
Copy link
Contributor Author

gbinal commented Nov 26, 2013

Actually - note the clarification that Charles made on issue 20. We should factor in his points.

@cew821
Copy link
Contributor

cew821 commented Nov 27, 2013

@kinlane's to-do list was:

  • Check for comma separate and convert to array.
  • Then on display, display simple and named arrays.
  • And of course export as arrays properly.

@cew821
Copy link
Contributor

cew821 commented Nov 27, 2013

The fields where "special" handling (mostly string needs to be put into an array of strings) needs to happen are:

  • bureauCode
  • programCode
  • keywords
  • theme
  • references
  • language

Also, dataQuality needs to be a boolean, not a string, i.e. true not "true"

@gbinal gbinal added bug and removed bug labels Mar 26, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants