This plugin populates the date expression from the begin and end date on save. If the date expression field is already populated, the plugin has no effect.
- In the Dates subrecord, enter begin and/or end dates.
- Save the record.
The date expression field as well as the date expression portion of the record title will update on save.
- Go to https://github.com/archivesspace/archivesspace/releases
- For the archivesspace release you'd like to test, download the archivesspace-docker zip file
- Unzip the file
- cd into the uncompressed archivesspace-docker directory
- In
config/config.rb, uncomment the array of plugins and adddate_builder cd pluginsgit clone [email protected]:pulibrary/date_builder.gitdocker compose up -d- Enter the docker container:
docker compose exec -it app bash - Navigate into
archivesspaceand initialize the plugin:./scripts/initialize-plugin.sh date_builder - Wait for aspace to come up. It will take several minutes.
- Go to http://localhost/staff
- Log in with credentials: admin / admin
- Create or modify records with dates. Note that if the date has no expression, but does have a begin and/or end date, the expression will be automatically filled in after you save the record.
bundle installbundle exec rspec