Publink is a web-based toolkit for digital publishing workflows, developed with support from the Deutsche Forschungsgemeinschaft (Bonn, DE) — Grant No. 501142032 (view grant).
Designed to address bottlenecks in the publishing pipeline at the Bibliotheca Hertziana, Publink is also suitable for broader digital publishing use cases.
Live demo: publink.humanitiesconnect.pub
- Import articles from JATS format
- Upload and download multiple file formats
- Edit article metadata
- Attach galley files to articles
- Export articles in OJS format for upload to an OJS server
- Export article data back to JATS format
- Render articles as HTML via TEI Publisher (JATS XML → styled HTML)
- Reference resolution and augmentation via CrossRef, Alma, and Google Books
- Import/export references in BibTeX format
- Export article reference data to DataCite
- IIIF annotation store and server
- Integration with the Mirador annotation tool (custom build included)
- Job queue infrastructure for offline task processing
Publink is built on MySQL / PHP / HTML / JavaScript and backed by a relational database that persists user data and content.
| Component | Description |
|---|---|
| MySQL database | Persists all user and article data |
| PHP object model | Classes representing system entities (articles, references, pages, etc.) |
| Page classes | Inherit from class.htmlPage.php; render HTML responses server-side |
| Utility classes | Includes Database.php for database abstraction |
| PHP scripts | Entry points accessible to users |
PHP classes are organized into six packages under /src (Composer package: biblhertz/publink; PHP namespaces Biblhertz\Publink and Biblhertz\Article):
| Package | Description |
|---|---|
annotation |
Classes for image annotation |
article |
Object model for articles |
components |
Reusable web page components |
om |
General site object model |
pages |
Page templates |
utilities |
Utility and helper classes |
Each page request is treated as a discrete, stateless event:
- The client sends a request to the server
- A page object is instantiated
- The entity object model is exercised to build page components
- HTML/CSS/JavaScript is generated via the page object's
getPage()method - The server returns the HTML to the client
Publink runs in a four-container Docker environment:
| Container | Role |
|---|---|
web |
Front-end web server (nginx) |
php |
PHP processing engine (php-fpm) |
mysql |
Relational database |
beanstalkd |
Job queue |
tei-publisher |
JATS XML → HTML rendering via eXist-db/TEI Publisher (optional) |
Configuration files are located in:
/docker/nginx— nginx config/docker/php— PHP config/docker/mysql— MySQL config/docker— Dockerfiles (nginx.Dockerfile,php.Dockerfile,mysql.Dockerfile) anddocker-compose.yml
For full installation instructions — including standard setup, Windows, rootless Docker, configuration reference, and troubleshooting — see the Installation Guide.
The file /src/config.ini contains all global configuration settings. These are loaded at page instantiation as static variables in the Config class. Each variable is documented with an explanation inside the config file.
A custom build of the Mirador image viewer is bundled with Publink for annotation tasks. It is compiled and injected into the nginx container when the init script runs.
After installation, run the test suite inside the PHP container:
docker exec -it php bash
/var/www/vendor/bin/phpunitUploaded and generated files are persisted in the bind mount ./local-data (host path relative to docker/) and survive container restarts.
Run these from the /publink/docker directory:
| Script | Description |
|---|---|
dbbackup.sh |
Saves a timestamped database dump to ./db_backup/ and copies it to ./mysql/bibliotheca.sql so it is loaded on the next container start |
stop.sh |
Backs up the database and stops all containers. Volumes and images are preserved. |
start.sh |
Tears down all containers and images, rebuilds from scratch, and starts the stack. |
restart.sh |
Backs up the database, tears down all containers and images, rebuilds, and starts the stack. |
mysql has no persistent Docker volume by design — its data lives only in
the running container's own writable layer, so recreating that container
discards it, and the next start reseeds fresh from mysql/bibliotheca.sql.
start.sh/restart.sh already back up before tearing anything down, but if
you run docker compose build/up/down manually (e.g. during
development) instead of using those scripts, run ./dbbackup.sh first —
that's the only thing standing between you and losing whatever's in the
database right now.
When no database schema changes are involved:
- Back up the document archive:
/publink/docker/local-data - Save the latest database:
./stop.sh - Copy the database dump from
/publink/docker/db_backupto a safe location - Once everything is safely backed up, delete the
publinkdirectory - Clone the new version from GitHub
- Copy the saved database to
/publink/docker/mysql/bibliotheca.sql - Copy the saved file archive back to
/publink/docker/local-data - Make the init script executable and run it:
chmod +x init.sh && ./init.sh
Other components in the same digital-publishing pipeline:
| Project | Description |
|---|---|
| iiif-editorial-toolkit | Standalone browser-based tools for building/managing IIIF manifests, plus a JATS-to-manifest generator script |
| PubLinkSMS | IIIF manifest REST server used to publish and serve manifests, linked to OJS publications |
| jats_to_ojs | PHP CLI converting JATS XML articles into OJS native XML for import |
| jats_refactoring | Editorial scripts for fixing JATS references and converting JATS/BibTeX to InDesign XML |
- Bastianello, E., Tomlinson, C. D. & Adamou, A. (2024). PubLink: Editorial Workflow for Digital Scholarly Publications in the Humanities. Proceedings of the 35th ACM Conference on Hypertext and Social Media.
- Bastianello, E. & Tomlinson, C. D. (2026). Bridging Digital and Publishing in the Humanities: Connecting Editorial Workflows through Open Standards. Proceedings of the 37th ACM Conference on Hypertext.
Detailed documentation is available in the /documentation directory:
database_tables.docx— relational database schemaframework.docx— system architecture and operation
Originally developed by Chris Tomlinson (@hawkenbury).
GPL-3.0-or-later — see LICENSE / docs/COPYING. This project incorporates GPL-3.0 schema files (docker/publink/xsd/ojs/) from the Open Journal Systems (PKP) project, copyright Simon Fraser University and John Willinsky.