Git Product home page Git Product logo

verbrannte-buecher.de's Introduction

Front-end for verbrannte-buecher.de

License

Code for the Front-end of verbrannte-buecher.de

(C) 2023-2024 Moses Mendelssohn Center for European-Jewish Studies (MMZ)
    Daniel Burckhardt


This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.

A public copy of the site must not give the impression of being
operated by the MMZ.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

Third Party Code

This projects builds on numerous third-party projects under a variety of Open Source Licenses. Please check composer.json for these dependencies.

The XSLT-Stylesheets are based on the files from https://github.com/haoess/dta-tools/tree/master/stylesheets

Installation

Requirements

Adjust Local Settings

  • vi .env.local (not commited)

Database

  • bin/console doctrine:database:create
  • bin/console doctrine:schema:create

Directory Permissions for cache and logs

  • sudo setfacl -R -m u:www-data:rwX ./var

  • sudo setfacl -dR -m u:www-data:rwX ./var

  • sudo setfacl -R -m u:www-data:rwX ./public/viewer

  • sudo setfacl -dR -m u:www-data:rwX ./public/viewer

SCSS compilation

In a prod environment, generate public/css/base.css and public/css/print.css

  • ./bin/console scss:compile

Adding and updating Content

TEI files and page facsimiles are located in data in the corresponding tei or img/source-xxxxx folders.

Follow the following commands to add the first source to the site:

Add the author (if set) to the Person table:

./bin/console article:author --insert-missing data/tei/source-00001.de.xml

Add the source

./bin/console article:header --insert-missing data/tei/source-00001.de.xml

Refresh the source (this will fetch every persName / orgName / placeName with GND or TGN identifier)

./bin/console article:refresh data/tei/source-00001.de.xml

If we have a source with page facsimile as hinted by

<classCode scheme="http://juedische-geschichte-online.net/doku/#genre">Quelle:Text</classCode>

We can now generate the tiles

./bin/console source:tiles data/tei/source-00001.de.xml

(convert from the ImageMagick packaged is called to generate the tiles in public/viewer/source-00001/)

And generate the METS-container needed for iview

./bin/console source:mets data/tei/source-00001.de.xml > public/viewer/source-00001/source-00001.de.mets.xml

You can now preview the source at

http://HOST/quelle/source-1

If you make changes, you can update all the metadata by running again

./bin/console article:refresh data/tei/source-00001.de.xml

If you are happy with the display, you can publish it:

./bin/console article:header --publish data/tei/source-00001.de.xml

It should now show up connected to the author.

Generate Facsimile from PDF

mkdir data/img/source-00001
# -scene 1 for starting at f0001.jpg
convert  -limit memory 10MB -limit map 10MB -density 300 public/viewer/source-00001/source-00001.pdf -quality 95 -scene 1 data/img/source-00001/f%04d.jpg

Updating Zotero Bibliography

./bin/console zotero:fetch-collection > data/verbrannte-buecher.json

Development Notes

Local Web Server

Tweaking the site

Translate messages and routes

./bin/console translation:extract de --dir=./src/ --dir=vendor/igdj/tei-edition-bundle --output-dir=./translations --enable-extractor=jms_i18n_routing

verbrannte-buecher.de's People

Contributors

burki avatar

Stargazers

mathieukuttler avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.