Skip to content

Commit

Permalink
scripts: OAIServer minimal configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
  • Loading branch information
jirikuncar committed Mar 23, 2016
1 parent 561cc90 commit d0841cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion scripts/create-instance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ JSONSCHEMAS_HOST='http://${INVENIO_WEB_HOST}:5000'
EOF
`
echo "${JSONSCHEMAS_CONF}" >> ../../var/${INVENIO_WEB_INSTANCE}-instance/${INVENIO_WEB_INSTANCE}.cfg

echo "OAISERVER_RECORD_INDEX='marc21'" >> ../../var/${INVENIO_WEB_INSTANCE}-instance/${INVENIO_WEB_INSTANCE}.cfg
echo "OAISERVER_ID_PREFIX='oai:${INVENIO_WEB_INSTANCE}:recid/'" >> ../../var/${INVENIO_WEB_INSTANCE}-instance/${INVENIO_WEB_INSTANCE}.cfg
# sphinxdoc-customise-instance-end

# sphinxdoc-run-npm-begin
Expand Down
2 changes: 1 addition & 1 deletion scripts/populate-instance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ print(pkg_resources.resource_filename('invenio_records', \
SCHEMA="http://${INVENIO_WEB_HOST}/schema/marc21/bibliographic/bd-v1.0.0.json"
# convert demo records from MARC21 to JSON and load them:
demouuids=$(dojson -i $demomarc21pathname -l marcxml do marc21 schema ${SCHEMA} | \
${INVENIO_WEB_INSTANCE} records create --pid-minter recid)
${INVENIO_WEB_INSTANCE} records create --pid-minter recid --pid-minter oaiid)
# sphinxdoc-populate-with-demo-records-end

# sphinxdoc-index-all-records-begin
Expand Down

0 comments on commit d0841cb

Please sign in to comment.