ApacePublisher is small server built with the Golang Echo framework that automates pushing metadata from ArchivesSpace to other services, currently ArchivesWest and OCLC. Future workflows will include OregonDigital and Alma.
The ids listed as a parameter refer to the final component in the ArchivesSpace URI, e.g. in the case of a resource: /repositories/2/resources/3476, the id is 3476. Endpoints:
/ead/convert/:id
/ead/validate/:id
/ead/upload/:id
/oclc/:id
/oclc/validate/:id
Running directly on local system
go get <package>
for the packages in go.mod OR wait for the system to tell you what needs to be installed in the next stepgo run main.go
Docker
docker-compose up
docker-compose exec server bash
go run main.go
NOTE for local development: connecting to the UO ArchivesSpace API requires being on the VPN.
Docker (required)
as above, with one additional step, run: register-app .
(generates docker-compose.staging.yml)
docker compose -f docker-compose.staging.yml up server
go build
sudo systemctl stop aspace-pub
sudo systemctl start aspace-pub
logging: journalctl -fu aspace_publisher
NOTE this service is only reachable from campus or while on the VPN.