Created
November 21, 2017 18:11
-
-
Save david-caro/d535c1fa5559190f4a820011bee50ab2 to your computer and use it in GitHub Desktop.
Example of how to initialize an OAIHarvestConf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from invenio_oaiharvester.models import OAIHarvestConfig | |
new_conf = OAIHarvestConfig( | |
name='pos', | |
metadataprefix='pos-ext_dc', | |
setspecs='', | |
baseurl='https://pos.sissa.it/cgi-bin/oai/oai-script-spires-extended.cgi', | |
) | |
from invenio_db import db | |
db.session.add(new_conf) | |
db.session.commit() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment