How To Contribute

Before getting started

We are happy that you want to contribute to extending this collection! First, please ask yourself a few questions:

  • Is the data you can contribute pertinent to this project?
  • Perhaps it is already included in the collection? Conduct a search to check on this.
  • If you are uncertain, send us an inquiry by E-Mail to Prof. Dr. Cornelia Horn.

Requirements

  • Github-Account
  • XML-Editor

In order to contribute

  1. clone the repository https://github.com/cobdh/collection
  2. create a separate branch
  3. add a file with your data in data/editors/xxx.xml
  4. add your contribution to data/bibl and data/persons
  5. run formatter and checks
  6. create a pull request to integrate your changes
  7. wait for feedback and resolve the requested changes

Templates

templates/editor

templates/person

templates/book

templates/bookSection

templates/article

Tools

The following tools make working with xml-files inside cobdh-project easier. These tools require python. Use `python -mpip install cob_dev` to install the dev- package.

cob_persons

Generate entries for persons based on the bibliographic database.

  1. cd to data/persons
  2. run cob_persons data/bibl to generate new persons

cob_format

Run formatter to ensure standarized source code.

  1. cd to project directory
  2. cob_format . --ext html --ext xml to format html and xml files

cob_split

Split a single xml file into separate xml-files by node-name.

  1. cd to data/bibl
  2. cob_split --src base.xml --node .//biblStruct

cob_enrich

Inject TEI-Header into a single file or multiple files inside a directory.

  • cob_enrich [file or directory]

cob_bibl

Fix invalid xml ids of bibl data.

  • cob_bibl data/bibl

cob_crawl

List all hyperlinks which are provided by cobdh.org.

  • cob_craw