Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
description how to import publications.
  • Loading branch information
EsGeh authored and EsGeh committed Nov 27, 2019
1 parent a1bc48a commit b6d62e7
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -2,6 +2,7 @@
# manual entries:
/dependencies/
/runtime_data/
/res/publications/

# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
4 changes: 4 additions & 0 deletions Dockerfile
Expand Up @@ -10,6 +10,10 @@ RUN apt-get update && \
apt-get install -y --no-install-recommends \
libsasl2-dev python-dev libldap2-dev libssl-dev

RUN apt-get update && \
apt-get install -y --no-install-recommends \
graphicsmagick

# this is supposed to save memory:
RUN rm -rf /var/lib/apt/lists/*

Expand Down
32 changes: 31 additions & 1 deletion README.md
Expand Up @@ -41,7 +41,37 @@ Force recreating the docker image by adding `--build` e.g. if `Dockerfile` or `r

## Import Publications, Initialize CMS pages (TODO)

Not yet documented.
In order to publish a publication on the platform, the following 2 steps are necessary:

1. First you have to compile your publication to "django", using [EOASkripts](https://github.molgen.mpg.de/EditionOpenAccess/EOASkripts)

2. After that you have to import it to the platform.

For the example publication, this process goes as follows:

1. compiling the example

$ cd example_import
$ git_deps_py --store-dir ../dependencies
$ cd dependencies/EOASkripts
$ ./scripts/run.py && ./scripts/exec_in_container.py
$ $ process_eoa_latex.py -f input/example/eoatex/EOASample.tex
$ $ exit
$ ./scripts/stop.py
$ cd ..

2. import example to the platform

After you have compiled the publication to "django", you might want to import it into the platform.

$ cp -r example_import/EOASkripts/runtime/output/django res/publications/example
$ ./scripts/init.py
$ ./scripts/run.py && ./scripts/exec_in_container.py
$ $ python manage.py publicationimport $RES_DIR/publications/example
$ $ exit
$ ./scripts/stop.py

That's all.

## Run the Webserver

Expand Down
1 change: 1 addition & 0 deletions example_import/.gitignore
@@ -0,0 +1 @@
/dependencies/
1 change: 1 addition & 0 deletions example_import/EOASkripts
10 changes: 10 additions & 0 deletions example_import/dependencies.conf
@@ -0,0 +1,10 @@
[EOASkripts]

uri = https://github.molgen.mpg.de/EditionOpenAccess/EOASkripts.git
hash = 9d04815f50968f29fb2a0b869caced67dca28a26
init = bash -c "git_deps_py --store-dir ../ && ./scripts/init.py --build"

[eoa-publication-model]

uri = https://github.molgen.mpg.de/EditionOpenAccess/eoa-publication-model.git
hash = ea8a2eb99b22703f1ef92544352701f07c08d17e

0 comments on commit b6d62e7

Please sign in to comment.