Skip to content

A simple conversion tool for Judy made more complicated than it needs to be.

Notifications You must be signed in to change notification settings

metllord/ArchivistToolkitConvertor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Archivist Toolkit XML Creator

This is just a simple utility to convert a tab-delimited file to XML for Arcivist Toolkit. It is not generalized for other inputs yet.

I created this to make Judy's life easier. If you find it useful, feel free to use and change it.

Usage

1. Use Excel to ouput worksheets to tab delimited files. Save these files in a directory and place the convert.py in the same directory.

2. Run the command python convert.py. To convert one or more documents, specify that document as the argument. To convert the entire directory, pass '*' as the first arguement.

EX:

$ python convert.py SourceFile.tab OtherSource.tab (converts these two files)
$ python convert.py * (Converts all files in working directory)

3. The program will move the source files for the completed conversions to the 'completed' folder. The XML files will be placed in the working directory. If there are errors, they will be listed in errors.txt and the tab files will be kept in the working directory.

Requirements

File List

  • convert.py

Notes

This can be improved greatly. Right now, it will break if the tab file is in a different order. Also, the XML is not ever validated

To Do

  1. Generalize the input so it works with tab documents in different orders
  2. Validate the XML once generated
  3. Maybe skip the XML and write directly to the MySQL database
  4. Create a names import feature.

About

A simple conversion tool for Judy made more complicated than it needs to be.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages