Beispiel #1
0
class Photo(object):
    workflow = [
        authorize_user(),
        render_form(PhotoForm),
        wait_for_submission(),
        export_marc_from_json(),
        create_record_from_marc()
    ]
    dep_type = "Photo"
    plural = "Photos"
    group = "Multimedia & Arts"
    enabled = True
Beispiel #2
0
class Thesis(object):
    workflow = [
        authorize_user(),
        render_form(ThesisForm),
        wait_for_submission(),
        export_marc_from_json(),
        create_record_from_marc()
    ]
    dep_type = "Thesis"
    plural = "Theses"
    group = "Articles & Preprints"
    enabled = True
Beispiel #3
0
from invenio.webdeposit_workflow_utils import authorize_user, \
                                              render_form, \
                                              wait_for_submission, \
                                              export_marc_from_json, \
                                              create_record_from_marc

__all__ = ['Article']

ArticleForm = forms['ArticleForm']
PhotoForm = forms['PhotoForm']

dep_type = "Article"
plural = "Articles"
group = "Articles & Preprints"
wf = [
    authorize_user(),
    render_form(ArticleForm),
    wait_for_submission(),
    export_marc_from_json(),
    create_record_from_marc()
]

# form = get_metadata_creation_form_from_doctype(doc_type)  # # This will use BibField to create a simple form which is the concatenation of all the fields neeeded for doc_type "Article"

Article = {
    "dep_type": dep_type,
    "workflow": wf,
    "plural": plural,
    "group": group,
    "enabled": True
}