based on Omeka version 3.x
- Run
yarn install
to install prettier locally (needed only for code formatting; if you have a global install of prettier you can use that instead). - Install ddev.
- Run
make prepare-site
. This will copy each of the the example config files into a new file without the.example
extension. - Put a most recent DB dump SQL file in the
db
directory- Command to dump database is:
mysqldump <DB_NAME> --user <DB_USER> --password > ~/db-dump-<DATE>.sql --no-tablespaces
- Import database by running
ddev import-db --src=<db-dump>
- Be sure to check
db.ini
that database prefix matches what it was on server where you exported DB dump!
- Command to dump database is:
- Optional: Put a version of the files directory in
htdocs/files
- Run
ddev start
- Visit https://from-the-rock-wall.ddev.site in your browser to view the site.
- You may need to reset the admin password, which can be done by running
UPDATE omeka_users SET password=sha1(concat(salt, \'password\')) WHERE username=\'adminmcjc\';
within a SQL console. - After running that command, the admin user will be
adminmcjc
with passwordpassword
.
Run yarn run watch
to watch sass build locally.
The following plugins are required:
- Archive Repertory
- Clean Url - using a schema of
/collections/collection-identifier/item-identifier
- COinS
- Contribution
- CSVExport
- CSV Import
- Derivative Images
- Element Types
- Exhibit Builder
- Guest User
- HTML5 Media
- Item Relations
- Simple Pages
- Simple Vocab
- Taxonomy
The following manual changes have been made to plugin code:
- Guest User -- comment out two lines to remove header bar (see https://omeka.org/classic/docs/Plugins/GuestUser/)
The MCJCDeployment
plug-in serves as an all-purpose container for overrides and database migrations, and also enables Rollbar error notifications.
Some of the migrations tweak aspects of the default Omeka field set-up, so if you're starting a fresh install of this codebase
you'll need to force the migrations to run by manually setting the MCJCDeployment
version number to 2.1.0
.
The plugin also provides a few custom view handlers and overrides which are needed for the berlin_mcjc
theme to function; these are:
ExhibitAttachment.php
- completely copies theplugins/ExhibitBuilder/helpers/ExhibitAttachment.php
code except for forcing the$forceImage
parameter to always have a value offalse
so that in-line HTML5 players display on exhibit pages. This view handler overrides theExhibitBuilder
one purely by virtue of the fact that the Zend view handler stack is last-in, first-out, so theMCJCDeployment
plugin views handler directory is searched beforeExhibitBuilder
.McjcFileMarkup.php
- copies the default file markup handler except for customizing the behavior of tape log, transcript, and abstract PDFs. This handler is called explicitly in theberlin_mcjc
theme code.
The MCJCDeployment plugin provides Rollbar error notification functionality by default; in order for this to work the option log.rollbar_access_token
needs to be set to
a valid access token inside application/config.ini
.
The MCJC Oral History Trust website uses the Berlin MCJC theme.
The theme custom.php
contains a number of custom functions which are used in the theme templates. Functions are documented in-line and generally prefixed with mcjc_
.
Some of these functions largely copy code from the Omeka core functions, so if errors appear after the Omeka version is updated check here to see if the core function code changes need to be propagated.
SCSS files are located in css/sass/
. To avoid editing Berlin base theme SCSS
files, we have added custom SCSS partials that mimic the style of the base theme
files.
Styles for all screen sizes are located in _screen
and _screen-custom
.
Styles for screens at 768px and smaller are located in _768max
and
_768max-custom
. Custom variables are located in _base-custom
.
The docker-compose
file contains configuration for running Compass in a container
automatically on local dev. See readme in the berlin_mcjc
theme directory for manual info.
Production compass config is located in themes/berlin_mcjc/config.rb
.
Omeka template files can be customized by copying them to the corresponding
directory within the theme. For example, to customize
htdocs/application/views/scripts/items/show.php
, copy the file into
htdocs/themes/berlin_mcjc/items
. The file located in the theme will
override the original.
The Lity library is used to enable lightbox
overlays for image files. Lity was used in place of Lightbox because Lightbox
does not support PDFs. The library is included on item show pages via the
custom template located in items/show.php
(relative to the theme).
The .circleci/config.yml
file currently auto-deploys develop branch to staging
and production to fromtherockwall.org.
After updating Omeka, check that the following modifications are still present:
- Add pagination data to collections->showAction
- Custom MCJC theme located in admin/themes folder. All this does is implement the contents of this PR, so once that is merged the custom theme can be removed.
- Use AWS support branch of this fork of Archive Repertory until this PR is merged.
- Use This fork for custom AWS S3 adapter until this PR is merged