Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

A script to transform fragment database exported from FileMaker to JSON format.

License

Notifications You must be signed in to change notification settings

ElectronicBabylonianLiterature/fragmentarium-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fragmentarium-parser

Build Status Test Coverage Maintainability JavaScript Style Guide

A script to transform fragment database exported from FileMaker to JSON format.

Usage:

node index.js <path to the CSV file>

The CSV must contain a header and have the following columns:

_id,cdliNumber,bmIdNumber,accession,genre,fincke,publication,joins,subcollection,description,length,width,thickness,collection,script,date,folios,record,transliteration,notes,museum
  • joins is parsed to and array with + or \u000b as separator.
  • folios is parsed to an array with as separator.
  • record is parsed to an array of objects with as separator for array entries and as separator for object properties. The resulting objects will have properties user, date, and type.
  • \u000b outside joins is parsed to \n.
  • \u000b in the beginning of string is omitted.

Scripts

  • scripts/expandFolioNumbers.js expands folio numbers in range format (e.g. 08927-8) to individual entries.

About

A script to transform fragment database exported from FileMaker to JSON format.

Resources

License

Stars

Watchers

Forks

Packages

No packages published