Home / Plugins / Portable Export & Import
Portable Export & Import
Full-system portable export and import for AtoM. Export complete instances with 15 entity types, SHA-256 checksummed manifests, and self-documenting packages. Import archives into fresh instances with ID remapping, merge/replace/dry-run modes. Also supports offline HTML viewer export for CD/USB/ZIP distribution.
| Category | Export |
|---|---|
| Package | ahgPortableExportPlugin |
| Version | 3.0.0 |
| Status | Installs from source. Clean-database install not yet verified. |
| Requires | Core |
| Licence | AGPL-3.0-or-later |
| Install | From the source repository: see Installation below. No packaged download yet. |
Full-system portable export and import for AtoM. Export complete instances with 15 entity types, SHA-256 checksummed manifests, and self-documenting packages. Import archives into fresh instances with ID remapping, merge/replace/dry-run modes. Also supports offline HTML viewer export for CD/USB/ZIP distribution.
Features
- Self-contained HTML/JS viewer for offline catalogue access
- Archive export: 15 entity types (descriptions, authorities, taxonomies, rights, accessions, physical objects, events, notes, relations, digital objects, repositories, object term relations, settings, users, menus)
- Archive import: merge, replace, or dry-run modes with full ID remapping
- Self-documenting packages: README.md + schema documentation in manifest
- SHA-256 checksummed manifest for all exported files
- FK-dependency-ordered import pipeline (taxonomies → repositories → descriptions → etc.)
- Dry-run estimate (record counts + estimated package size)
- Export and import verification CLI: portable:verify, portable:import --mode=dry_run
- Export full or partial catalogue (fonds, repository, custom scope)
- Client-side search with FlexSearch
- Hierarchical tree navigation (MPPT-ordered)
- Digital object inline viewing (images, PDFs)
- Edit mode with researcher exchange format
- CLI commands: portable:export, portable:import, portable:verify, portable:cleanup
- Admin UI with background processing and progress tracking (export + import)
Requirements
| Component | Version |
|---|---|
| atom framework | >=2.0.0 |
| atom | >=2.8 |
| php | >=8.1 |
Installation
This plugin requires atom-framework. It is not optional: the framework provides AhgController, AtomFramework\* and the routing and settings services that this plugin builds on.
# 1. Fetch into the AtoM plugins directory as a REAL DIRECTORY.
# A symlink fails the prefix test in pluginsAction.class.php and the
# plugin is then invisible in the stock admin UI with no error shown.
cd <atom-root>/plugins
git clone --depth 1 --filter=blob:none --sparse \
https://github.com/ArchiveHeritageGroup/atom-ahg-plugins.git tmp-fetch
cd tmp-fetch && git sparse-checkout set ahgPortableExportPlugin && cd ..
mv tmp-fetch/ahgPortableExportPlugin ./ahgPortableExportPlugin && rm -rf tmp-fetch
# 2. Apply the schema with the framework's installer. It stops on the first
# error, reports it, and checks every declared table exists. Never use a
# plain `mysql < install.sql`: it can stop half way without saying so.
cd <atom-root>
php atom-framework/bin/install-plugin-schema.php \
--database=<database> --user=<user> --password=<password> --plugin=ahgPortableExportPlugin
# 3. Enable it, then clear the cache and reload PHP-FPM.
cd <atom-root>
php symfony cc
sudo systemctl reload php8.3-fpmEnabling differs by instance shape. Check which list governs:
grep -c 'loadPluginsFromDatabase' <atom-root>/config/ProjectConfiguration.class.php0(stock AtoM): plugins load from the serialisedpluginsrow insetting_i18n. Theatom_plugintable is inert and the admin screen can show a plugin as enabled that does not load.1or more (AHG):atom_pluginis the source of truth.
Verify against whichever list governs, not against the admin screen.
Try it
This feature is for signed-in staff, so it is not open on the public demo.
Source and README on GitHub · Questions: support@theahg.co.za or WhatsApp