Skip to content

Update NormedPerson to serialization logic similar to NormedPublication #137

Description

@rickjohnson

Similar to NormedPublication, do the following

  • Create JSON mapping file for person similar to normedPublicationObjectToCSVMap.json
  • Convert loadPerson to static method in NormedPerson.ts and rename to loadFromCSV so that it would be called in the form NormedPerson.loadFromCSV with returning NormedPerson[]. Use JSON mapping file in load
  • Create writeToCSV static method in NormedPerson.ts takes NormedPerson[] and filepath as parameters, using JSON mapping
  • Convert NormedPerson from and a Typescript interface to a Typescript class similar to NormedPublication
  • Convert usages of loadPerson in other scripts to use new method
  • Move queryNormalizedPeople methods into NormedPerson.ts (perhaps rename to loadFromDB ?)
  • Audit the db attribute names in DB and NormedPerson to see if they can be normalized together
  • For unit tests that use loadPerson convert to use new methods and json mapping
  • Update unit tests accordinly

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions