Skip to content

Adds delete bibstem to run.py command line options

Latest
Compare
Choose a tag to compare
@seasidesparrow seasidesparrow released this 08 May 21:09
fa95000

If the user wants to delete a bibstem, you not only have to delete the bibstem from master, but also delete records from auxiliary tables (names, idents, etc) with the same masterid.

This code adds the -ds STEM option to run.py so that the user can delete a bibstem via the command line in the journalsdb container.

  • It will take all records from auxiliary tables (like idents, abbrevs, whatever), write them to table_hist, and then delete them
  • It will then copy the master record for STEM to master_hist, and then delete it from master

You will get error messages if:

  • the bibstem you type on the command line is not an EXACT lexical match to a bibstem in journals.master, including capitalization; you will be given a suggested bibstem if there's a case-insensitive match, but it won't delete it.
  • you have ANY tables checked out (master, idents, etc). You MUST check in all tables before running this command.