Code for the Middle Mekong Archaeology Project (MMAP) — managing its metadata, images, and search. This repository collects three independent codebases, each in its own top-level directory:
| Directory | What it is |
|---|---|
blacklight/ |
Ruby on Rails / Blacklight web app: the public search interface over the MMAP Solr index. |
mmap-solr/ |
Shell/Python scripts to build and refresh the Solr core from the Postgres database, and to manage images and their derivatives. |
pg-editor/ |
A small Flask web app for browsing and editing the MMAP Postgres tables directly in the browser. |
Each directory has its own README with setup and usage details.
- The authoritative data lives in a Postgres database, edited via
pg-editor. mmap-solrreads Postgres (e.g.tblSite) to build/refresh the Solr core and to generate image derivatives.blacklightis the Rails web app that searches the Solr core.
# Refresh the Solr core and image derivatives (from tblSite in Postgres)
cd mmap-solr
./update_mmap.sh
# make_derivatives.sh creates a parallel dir of smaller images
./make_derivatives.sh --clean --size 640 --quality 70 ORIGINAL_DIR DERIVATIVES_DIR