Skip to content
This repository was archived by the owner on Jul 14, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion bin/docker-start
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,15 @@ export HOME=/home/app
yarn config set -- --modules-folder "/home/app/node_modules"
yarn install

apt-get clean && rm -rf /var/lib/apt/lists/;
apt-get update
apt-cache search yaz;
apt-get install -y yaz libyaz4 libyaz4-dev;
#yaz-config --help
# cat /usr/local/bundle/extensions/x86_64-linux/2.5.0/zoom-0.5.0/gem_make.out

bundle config build.nokogiri --use-system-libraries && \
bundle install --path=/home/app/gems --with mysql aws test
bundle install --path=/home/app/gems --with mysql aws test zoom

bundle exec rake db:create

Expand Down
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,13 @@ services:
- DATABASE_URL=mysql2://root:mysecretpassword@db:3306/
- SETTINGS__DROPBOX__PATH=/masterfiles
- SETTINGS__DROPBOX__UPLOAD_URI=./masterfiles
- SETTINGS__BIB_RETRIEVER__PROTOCOL=z39.50
- SETTINGS__BIB_RETRIEVER__HOST=
- SETTINGS__BIB_RETRIEVER__PORT=2200
- SETTINGS__BIB_RETRIEVER__DATABASE=Unicorn
- SETTINGS__BIB_RETRIEVER__ATTRIBUTE=12
- SETTINGS__BIB_RETRIEVER__RETRIEVER_CLASS=Avalon::BibRetriever::Zoom
- SETTINGS__BIB_RETRIEVER__RETRIEVER_CLASS_REQUIRE=avalon/bib_retriever/zoom
- EMAIL_COMMENTS
- EMAIL_NOTIFICATION
- EMAIL_SUPPORT
Expand Down
2 changes: 1 addition & 1 deletion lib/avalon/batch/entry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def media_object
end
# Sometimes we want to override the bib import data for some of the
# required fields (particularly if import data doesn't pass validations)
mo.assign_attributes(fields.slice(:language, :topical_subject, :genre))
mo.assign_attributes(fields.slice(:language, :topical_subject, :genre, :terms_of_use))
Comment on lines 48 to +50
Copy link
Author

@jefferya jefferya Mar 22, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UAL added :terms_of_use as a required field. This change allows overriding :terms_of_use bib import data via the associated field in the batch ingest manifest.

else
begin
mo.assign_attributes(media_object_fields)
Expand Down