Skip to content

software for public archive "Rostock Lichtenhagen 1992"

License

Notifications You must be signed in to change notification settings

zettrik/archive-lichtenhagen-1992

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Invenio

Installation & Setup


Scripts and documentation for building an finding aid of an zotero export with mkdocs

Installation & Setup

  • apt install mkdocs
  • mkdocs new lh92-index
  • vi lh92-index/mkdocs.yml
  • vi lh92-index/docs/index.md
  • export collection in zotero as csv file
  • python script generates sites with markdown syntax
    • convert tif files in jpg
    • text recognition for all images
  • mkdocs serve #for tesing purpose
  • mkdocs build
  • copy static html files to webserver

better navigation

themes

pip3 search mkdocs | grep theme

or build your own: https://www.mkdocs.org/user-guide/styling-your-docs/

web app


Scripts and documentation for building an finding aid with Zotero and Zot_Bib_Web

Documentation

Installation

apt install python3-venv
python3 -m venv lh-py3env
git clone https://github.com/davidswelt/zot_bib_web.git
cd zot_bib_web
cp settings_example.py settings.py ## adapt to your needs
source lh-py3nv/bin/activate
pip3 install pyzotero

Workflow

  • collect content in Zotero
  • generate index for content:
source lh-py3nv/bin/activate
cd zot_bib_web
./zot.py
  • take a look at the generated html file

Scripts and documentation for building an webarchive with Zotero and Drupal

Documentation

Workflow

  • collect content in Zotero
  • export Zotero content in csv format
  • convert tif files in jpg
  • text recognition for all images
  • generate index for content
  • import index in Drupal

Zotero export and conversation

  • on Debian9 you'll need tesseract, imagemagick (convert), rsync, screen
  • sync Zotero database
  • export the library to /data/zotero/lichtenhagen.csv
cd /data/archiv-lichtenhagen-1992
git pull
cd helper-scripts
./file-count.sh
./file-convert.sh (takes approx. 1h)
./file-ocr.sh (can start while conversion is still running; takes approx. 12h)
rsync -avz --delete --delete-excluded --exclude='*.tif' --bwlimit=2M /data/zotero/ archive-server:/data/zotero-export/ (takes approx. 1h)

Drupal 8

Installation

aptitude install php7.0 php7.0-fpm php7.0-gd php7.0-mysql php7.0-mbstring phpunit
su webuser
wget https://getcomposer.org/installer
php installer
php composer.phar
composer create-project drupal-composer/drupal-project:8.x-dev archiv.lichtenhagen-1992.de --stability dev 

composer require drupal/ctools
composer update drupal/core --with-dependencies
  • create database & set password for db user
  • configure DNS an point your browser to new domain
  • fill out forms

Fine tuning

  • for composer to work fine set higher php memory_limit
  • install drush:
composer require drush/drush
../vendor/bin/drush

Import and index creation

Elasticsearch samples

curl -X PUT 'localhost:9200/foo/bar/2' -d '{ "titel": "hahu", "autor": "bla" }' curl -X GET 'localhost:9200/_search' -d '{ "query": { "match_all": {} }}' curl -X GET 'localhost:9200/_aliases?pretty=1' curl -X GET 'localhost:9200/_stats?pretty=1'

Test elasticsearch


Links

ocr and pdf/a

search engine

About

software for public archive "Rostock Lichtenhagen 1992"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published