Skip to content

Latest commit

 

History

History

DE-12

Bayerische Staatsbibliothek / Münchener DigitalisierungsZentrum (MDZ)

  • Vinzenz, Ferrer, Heiliger: Hienach hebt an ein wunderberlicher tractat... von dem ende der weltt (1486), Original, mit Volltext
  • Franck, Sebastian: Chronica, Zeytbuch und geschychtbibel ... (1531), Original

URL examples

It looks like not all books of MDZ have a METS link. The above METS link also does not always works. Here is another alternative: https://www.zvdd.de/dms/load/mets-xml/?PPN=urn:nbn:de:bvb:12-bsb00034304-6.

Useful commands for data handling

# Fix names of ALTO files to match image names.
for f in $(grep -l fileIdent *.xml); do t=$(grep fileIdent $f|sed s/.*iiif.image.v2.//|sed s/.full.*/.xml/); mv -iv $f $t; done

# Create virtual Python3 environment and install OCR-D.
cd d-gt/
python3 -m venv venv
source venv/bin/activate
pip install -U pip wheel ocrd

# Add ALTO files to METS files.
ocrd --log-level INFO workspace bulk-add -r 'alto/.*_0*(?P<pageid>[^/]+).xml' -G FULLTEXT --file-id 'fulltext-{{ pageid }}' --page-id='div{{ pageid }}' --mimetype text/xml alto/*.xml

perl -pi -e 's/LOCTYPE="OTHER" OTHERLOCTYPE="FILE"/LOCTYPE="URL"/' mets.xml
perl -pi -e s,alto,https://ub-backup.bib.uni-mannheim.de/~stweil/d-gt/data/DE-12/urn:nbn:de:bvb:12-bsb00034304-6/alto, mets.xml