inspirehep.modules.literaturesuggest package¶
Submodules¶
inspirehep.modules.literaturesuggest.bundles module¶
Bundles for author forms.
inspirehep.modules.literaturesuggest.ext module¶
LiteratureSuggest extension.
inspirehep.modules.literaturesuggest.forms module¶
Contains forms related to INSPIRE Literature suggestion.
-
class
inspirehep.modules.literaturesuggest.forms.
AuthorInlineForm
(*args, **kwargs)[source]¶ Bases:
inspirehep.modules.forms.form.INSPIREForm
Author inline form.
-
affiliation
= <UnboundField(TextField, (), {'widget': <inspirehep.modules.forms.field_widgets.ColumnInput object>, 'export_key': 'affiliation', 'widget_classes': 'form-control', 'autocomplete': 'affiliation', 'autocomplete_limit': 5, 'placeholder': 'Start typing for suggestions'})>¶
-
name
= <UnboundField(TextField, (), {'widget': <inspirehep.modules.forms.field_widgets.ColumnInput object>, 'export_key': 'full_name', 'widget_classes': 'form-control'})>¶
-
-
class
inspirehep.modules.literaturesuggest.forms.
CheckboxButton
(msg='')[source]¶ Bases:
object
Checkbox button.
-
class
inspirehep.modules.literaturesuggest.forms.
LiteratureForm
(*args, **kwargs)[source]¶ Bases:
inspirehep.modules.forms.form.INSPIREForm
Literature form fields.
-
abstract
= <UnboundField(TextAreaField, (), {'default': '', 'label': 'Abstract', 'export_key': 'abstract', 'widget_classes': 'form-control'})>¶
-
additional_url
= <UnboundField(TextField, (), {'label': 'Link to additional information (e.g. abstract)', 'validators': [<function no_pdf_validator>], 'placeholder': 'http://www.example.com/splash-page.html', 'description': 'Which page should we link from INSPIRE?', 'widget_classes': 'form-control'})>¶
-
arxiv_id
= <UnboundField(ArXivField, (), {'label': 'arXiv ID', 'export_key': 'arxiv_id', 'validators': [<function arxiv_syntax_validation>, <function duplicated_arxiv_id_validator>, <function arxiv_id_already_pending_in_holdingpen_validator>]})>¶
-
book_title
= <UnboundField(TextField, (), {'label': 'Book Title', 'widget_classes': 'form-control chapter-related'})>¶
-
categories_arXiv
= <UnboundField(TextField, (), {'widget': <wtforms.widgets.core.HiddenInput object>, 'export_key': 'categories'})>¶
-
collaboration
= <UnboundField(TextField, (), {'label': 'Collaboration', 'export_key': 'collaboration', 'widget_classes': 'form-control article-related'})>¶
-
conf_name
= <UnboundField(TextField, (), {'autocomplete': 'conference', 'label': 'Conference Information', 'placeholder': 'Start typing for suggestions', 'description': 'Conference name, acronym, place, date', 'widget_classes': 'form-control article-related'})>¶
-
conference_id
= <UnboundField(TextField, (), {'widget': <wtforms.widgets.core.HiddenInput object>, 'export_key': 'conference_id'})>¶
-
defense_date
= <UnboundField(TextField, (), {'label': 'Date of Defense', 'validators': [<function date_validator>], 'description': 'Format: YYYY-MM-DD, YYYY-MM or YYYY.', 'widget_classes': 'form-control thesis-related'})>¶
-
degree_type
= <UnboundField(SelectField, (), {'default': 'phd', 'label': 'Degree Type', 'widget_classes': 'form-control thesis-related'})>¶
-
doi
= <UnboundField(DOIField, (), {'processors': [], 'export_key': 'doi', 'label': 'DOI', 'validators': [<inspirehep.modules.forms.validation_utils.DOISyntaxValidator object>, <function duplicated_doi_validator>, <function doi_already_pending_in_holdingpen_validator>], 'placeholder': '', 'description': 'e.g. 10.1086/305772 or doi:10.1086/305772'})>¶
-
end_page
= <UnboundField(TextField, (), {'placeholder': 'End page of the chapter', 'widget_classes': 'form-control chapter-related'})>¶
-
experiment
= <UnboundField(TextField, (), {'autocomplete': 'experiment', 'placeholder': 'Start typing for suggestions', 'label': 'Experiment', 'export_key': 'experiment', 'widget_classes': 'form-control'})>¶
-
extra_comments
= <UnboundField(TextAreaField, (), {'label': 'Comments', 'description': 'Any extra comments related to your submission', 'widget_classes': 'form-control'})>¶
-
field_sizes
= {'thesis_date': 'col-xs-12 col-md-4', 'start_page': 'col-xs-12 col-md-3', 'degree_type': 'col-xs-12 col-md-3', 'publication_date': 'col-xs-12 col-md-4', 'wrap_nonpublic_note': 'col-md-9', 'publisher_name': 'col-xs-12 col-md-9', 'defense_date': 'col-xs-12 col-md-4', 'type_of_doc': 'col-xs-12 col-md-3', 'end_page': 'col-xs-12 col-md-3'}¶
-
find_book
= <UnboundField(TextField, (), {'label': 'Find Book', 'placeholder': 'Start typing for suggestions', 'description': 'Book name, ISBN, Publisher', 'widget_classes': 'form-control chapter-related'})>¶
-
groups
= [('Import information', ['arxiv_id', 'doi', 'import_buttons']), ('Document Type', ['type_of_doc']), ('Links', ['url', 'additional_url']), ('Publication Information', ['find_book', 'parent_book', 'book_title', 'start_page', 'end_page']), ('Basic Information', ['title', 'title_arXiv', 'categories_arXiv', 'language', 'other_language', 'title_translation', 'subject', 'authors', 'collaboration', 'experiment', 'abstract', 'report_numbers']), ('Thesis Information', ['degree_type', 'thesis_date', 'defense_date', 'institution', 'supervisors', 'license_url']), ('Publication Information', ['journal_title', 'volume', 'issue', 'year', 'page_range_article_id']), ('Publication Information', ['series_title', 'series_volume', 'publication_date', 'publisher_name', 'publication_place']), ('Conference Information', ['conf_name', 'conference_id'], {'classes': 'collapse'}), ('Proceedings Information (if not published in a journal)', ['nonpublic_note'], {'classes': 'collapse'}), ('References', ['references'], {'classes': 'collapse'}), ('Additional comments', ['extra_comments'], {'classes': 'collapse'})]¶
-
institution
= <UnboundField(TextField, (), {'autocomplete': 'affiliation', 'label': 'Institution', 'placeholder': 'Start typing for suggestions', 'widget_classes': 'form-control thesis-related'})>¶
-
issue
= <UnboundField(TextField, (), {'label': 'Issue', 'widget_classes': 'form-control article-related'})>¶
-
journal_title
= <UnboundField(TextField, (), {'autocomplete': 'journal', 'label': 'Journal Title', 'placeholder': 'Start typing for suggestions', 'widget_classes': 'form-control article-related'})>¶
-
language
= <UnboundField(LanguageField, (), {'default': 'en', 'label': 'Language', 'export_key': 'language', 'choices': [('zh', u'Chinese'), ('en', u'English'), ('fr', u'French'), ('de', u'German'), ('it', u'Italian'), ('ja', u'Japanese'), ('pt', u'Portuguese'), ('ru', u'Russian'), ('es', u'Spanish'), ('oth', 'Other')]})>¶
-
language_choices
= [('zh', u'Chinese'), ('en', u'English'), ('fr', u'French'), ('de', u'German'), ('it', u'Italian'), ('ja', u'Japanese'), ('pt', u'Portuguese'), ('ru', u'Russian'), ('es', u'Spanish'), ('oth', 'Other')]¶
-
license_url
= <UnboundField(TextField, (), {'widget': <wtforms.widgets.core.HiddenInput object>, 'export_key': 'license_url', 'label': 'License URL'})>¶
-
nonpublic_note
= <UnboundField(TextAreaField, (), {'widget': <function wrap_nonpublic_note>, 'label': 'Proceedings', 'description': 'Editors, title of proceedings, publisher, year of publication, page range, URL', 'widget_classes': 'form-control article-related'})>¶
-
note
= <UnboundField(TextAreaField, (), {'widget': <wtforms.widgets.core.HiddenInput object>, 'export_key': 'note'})>¶
-
other_language
= <UnboundField(LanguageField, (), {'label': 'Other Language', 'widget_classes': 'form-control', 'export_key': 'other_language', 'description': 'What is the language of the publication?', 'choices': [(u'ab', u'Abkhazian'), (u'aa', u'Afar'), (u'af', u'Afrikaans'), (u'ak', u'Akan'), (u'sq', u'Albanian'), (u'am', u'Amharic'), (u'ar', u'Arabic'), (u'an', u'Aragonese'), (u'hy', u'Armenian'), (u'as', u'Assamese'), (u'av', u'Avaric'), (u'ae', u'Avestan'), (u'ay', u'Aymara'), (u'az', u'Azerbaijani'), (u'bm', u'Bambara'), (u'bn', u'Bangla'), (u'ba', u'Bashkir'), (u'eu', u'Basque'), (u'be', u'Belarusian'), (u'bi', u'Bislama'), (u'bs', u'Bosnian'), (u'br', u'Breton'), (u'bg', u'Bulgarian'), (u'my', u'Burmese'), (u'ca', u'Catalan'), (u'ch', u'Chamorro'), (u'ce', u'Chechen'), (u'cu', u'Church Slavic'), (u'cv', u'Chuvash'), (u'kw', u'Cornish'), (u'co', u'Corsican'), (u'cr', u'Cree'), (u'hr', u'Croatian'), (u'cs', u'Czech'), (u'da', u'Danish'), (u'dv', u'Divehi'), (u'nl', u'Dutch'), (u'dz', u'Dzongkha'), (u'eo', u'Esperanto'), (u'et', u'Estonian'), (u'ee', u'Ewe'), (u'fo', u'Faroese'), (u'fj', u'Fijian'), (u'fi', u'Finnish'), (u'ff', u'Fulah'), (u'gl', u'Galician'), (u'lg', u'Ganda'), (u'ka', u'Georgian'), (u'el', u'Greek'), (u'gn', u'Guarani'), (u'gu', u'Gujarati'), (u'ht', u'Haitian Creole'), (u'ha', u'Hausa'), (u'he', u'Hebrew'), (u'hz', u'Herero'), (u'hi', u'Hindi'), (u'ho', u'Hiri Motu'), (u'hu', u'Hungarian'), (u'is', u'Icelandic'), (u'io', u'Ido'), (u'ig', u'Igbo'), (u'id', u'Indonesian'), (u'ia', u'Interlingua'), (u'ie', u'Interlingue'), (u'iu', u'Inuktitut'), (u'ik', u'Inupiaq'), (u'ga', u'Irish'), (u'jv', u'Javanese'), (u'kl', u'Kalaallisut'), (u'kn', u'Kannada'), (u'kr', u'Kanuri'), (u'ks', u'Kashmiri'), (u'kk', u'Kazakh'), (u'km', u'Khmer'), (u'ki', u'Kikuyu'), (u'rw', u'Kinyarwanda'), (u'kv', u'Komi'), (u'kg', u'Kongo'), (u'ko', u'Korean'), (u'kj', u'Kuanyama'), (u'ku', u'Kurdish'), (u'ky', u'Kyrgyz'), (u'lo', u'Lao'), (u'la', u'Latin'), (u'lv', u'Latvian'), (u'li', u'Limburgish'), (u'ln', u'Lingala'), (u'lt', u'Lithuanian'), (u'lu', u'Luba-Katanga'), (u'lb', u'Luxembourgish'), (u'mk', u'Macedonian'), (u'mg', u'Malagasy'), (u'ms', u'Malay'), (u'ml', u'Malayalam'), (u'mt', u'Maltese'), (u'gv', u'Manx'), (u'mi', u'Maori'), (u'mr', u'Marathi'), (u'mh', u'Marshallese'), (u'mn', u'Mongolian'), (u'na', u'Nauru'), (u'nv', u'Navajo'), (u'ng', u'Ndonga'), (u'ne', u'Nepali'), (u'nd', u'North Ndebele'), (u'se', u'Northern Sami'), (u'no', u'Norwegian'), (u'nb', u'Norwegian Bokm\xe5l'), (u'nn', u'Norwegian Nynorsk'), (u'ny', u'Nyanja'), (u'oc', u'Occitan'), (u'or', u'Odia'), (u'oj', u'Ojibwa'), (u'om', u'Oromo'), (u'os', u'Ossetic'), (u'pi', u'Pali'), (u'ps', u'Pashto'), (u'fa', u'Persian'), (u'pl', u'Polish'), (u'pa', u'Punjabi'), (u'qu', u'Quechua'), (u'ro', u'Romanian'), (u'rm', u'Romansh'), (u'rn', u'Rundi'), (u'sm', u'Samoan'), (u'sg', u'Sango'), (u'sa', u'Sanskrit'), (u'sc', u'Sardinian'), (u'gd', u'Scottish Gaelic'), (u'sr', u'Serbian'), (u'sh', u'Serbo-Croatian'), (u'sn', u'Shona'), (u'ii', u'Sichuan Yi'), (u'sd', u'Sindhi'), (u'si', u'Sinhala'), (u'sk', u'Slovak'), (u'sl', u'Slovenian'), (u'so', u'Somali'), (u'nr', u'South Ndebele'), (u'st', u'Southern Sotho'), (u'su', u'Sundanese'), (u'sw', u'Swahili'), (u'ss', u'Swati'), (u'sv', u'Swedish'), (u'tl', u'Tagalog'), (u'ty', u'Tahitian'), (u'tg', u'Tajik'), (u'ta', u'Tamil'), (u'tt', u'Tatar'), (u'te', u'Telugu'), (u'th', u'Thai'), (u'bo', u'Tibetan'), (u'ti', u'Tigrinya'), (u'to', u'Tongan'), (u'ts', u'Tsonga'), (u'tn', u'Tswana'), (u'tr', u'Turkish'), (u'tk', u'Turkmen'), (u'tw', u'Twi'), (u'uk', u'Ukrainian'), (u'ur', u'Urdu'), (u'ug', u'Uyghur'), (u'uz', u'Uzbek'), (u've', u'Venda'), (u'vi', u'Vietnamese'), (u'vo', u'Volap\xfck'), (u'wa', u'Walloon'), (u'cy', u'Welsh'), (u'fy', u'Western Frisian'), (u'wo', u'Wolof'), (u'xh', u'Xhosa'), (u'yi', u'Yiddish'), (u'yo', u'Yoruba'), (u'za', u'Zhuang'), (u'zu', u'Zulu')]})>¶
-
other_language_choices
= [(u'ab', u'Abkhazian'), (u'aa', u'Afar'), (u'af', u'Afrikaans'), (u'ak', u'Akan'), (u'sq', u'Albanian'), (u'am', u'Amharic'), (u'ar', u'Arabic'), (u'an', u'Aragonese'), (u'hy', u'Armenian'), (u'as', u'Assamese'), (u'av', u'Avaric'), (u'ae', u'Avestan'), (u'ay', u'Aymara'), (u'az', u'Azerbaijani'), (u'bm', u'Bambara'), (u'bn', u'Bangla'), (u'ba', u'Bashkir'), (u'eu', u'Basque'), (u'be', u'Belarusian'), (u'bi', u'Bislama'), (u'bs', u'Bosnian'), (u'br', u'Breton'), (u'bg', u'Bulgarian'), (u'my', u'Burmese'), (u'ca', u'Catalan'), (u'ch', u'Chamorro'), (u'ce', u'Chechen'), (u'cu', u'Church Slavic'), (u'cv', u'Chuvash'), (u'kw', u'Cornish'), (u'co', u'Corsican'), (u'cr', u'Cree'), (u'hr', u'Croatian'), (u'cs', u'Czech'), (u'da', u'Danish'), (u'dv', u'Divehi'), (u'nl', u'Dutch'), (u'dz', u'Dzongkha'), (u'eo', u'Esperanto'), (u'et', u'Estonian'), (u'ee', u'Ewe'), (u'fo', u'Faroese'), (u'fj', u'Fijian'), (u'fi', u'Finnish'), (u'ff', u'Fulah'), (u'gl', u'Galician'), (u'lg', u'Ganda'), (u'ka', u'Georgian'), (u'el', u'Greek'), (u'gn', u'Guarani'), (u'gu', u'Gujarati'), (u'ht', u'Haitian Creole'), (u'ha', u'Hausa'), (u'he', u'Hebrew'), (u'hz', u'Herero'), (u'hi', u'Hindi'), (u'ho', u'Hiri Motu'), (u'hu', u'Hungarian'), (u'is', u'Icelandic'), (u'io', u'Ido'), (u'ig', u'Igbo'), (u'id', u'Indonesian'), (u'ia', u'Interlingua'), (u'ie', u'Interlingue'), (u'iu', u'Inuktitut'), (u'ik', u'Inupiaq'), (u'ga', u'Irish'), (u'jv', u'Javanese'), (u'kl', u'Kalaallisut'), (u'kn', u'Kannada'), (u'kr', u'Kanuri'), (u'ks', u'Kashmiri'), (u'kk', u'Kazakh'), (u'km', u'Khmer'), (u'ki', u'Kikuyu'), (u'rw', u'Kinyarwanda'), (u'kv', u'Komi'), (u'kg', u'Kongo'), (u'ko', u'Korean'), (u'kj', u'Kuanyama'), (u'ku', u'Kurdish'), (u'ky', u'Kyrgyz'), (u'lo', u'Lao'), (u'la', u'Latin'), (u'lv', u'Latvian'), (u'li', u'Limburgish'), (u'ln', u'Lingala'), (u'lt', u'Lithuanian'), (u'lu', u'Luba-Katanga'), (u'lb', u'Luxembourgish'), (u'mk', u'Macedonian'), (u'mg', u'Malagasy'), (u'ms', u'Malay'), (u'ml', u'Malayalam'), (u'mt', u'Maltese'), (u'gv', u'Manx'), (u'mi', u'Maori'), (u'mr', u'Marathi'), (u'mh', u'Marshallese'), (u'mn', u'Mongolian'), (u'na', u'Nauru'), (u'nv', u'Navajo'), (u'ng', u'Ndonga'), (u'ne', u'Nepali'), (u'nd', u'North Ndebele'), (u'se', u'Northern Sami'), (u'no', u'Norwegian'), (u'nb', u'Norwegian Bokm\xe5l'), (u'nn', u'Norwegian Nynorsk'), (u'ny', u'Nyanja'), (u'oc', u'Occitan'), (u'or', u'Odia'), (u'oj', u'Ojibwa'), (u'om', u'Oromo'), (u'os', u'Ossetic'), (u'pi', u'Pali'), (u'ps', u'Pashto'), (u'fa', u'Persian'), (u'pl', u'Polish'), (u'pa', u'Punjabi'), (u'qu', u'Quechua'), (u'ro', u'Romanian'), (u'rm', u'Romansh'), (u'rn', u'Rundi'), (u'sm', u'Samoan'), (u'sg', u'Sango'), (u'sa', u'Sanskrit'), (u'sc', u'Sardinian'), (u'gd', u'Scottish Gaelic'), (u'sr', u'Serbian'), (u'sh', u'Serbo-Croatian'), (u'sn', u'Shona'), (u'ii', u'Sichuan Yi'), (u'sd', u'Sindhi'), (u'si', u'Sinhala'), (u'sk', u'Slovak'), (u'sl', u'Slovenian'), (u'so', u'Somali'), (u'nr', u'South Ndebele'), (u'st', u'Southern Sotho'), (u'su', u'Sundanese'), (u'sw', u'Swahili'), (u'ss', u'Swati'), (u'sv', u'Swedish'), (u'tl', u'Tagalog'), (u'ty', u'Tahitian'), (u'tg', u'Tajik'), (u'ta', u'Tamil'), (u'tt', u'Tatar'), (u'te', u'Telugu'), (u'th', u'Thai'), (u'bo', u'Tibetan'), (u'ti', u'Tigrinya'), (u'to', u'Tongan'), (u'ts', u'Tsonga'), (u'tn', u'Tswana'), (u'tr', u'Turkish'), (u'tk', u'Turkmen'), (u'tw', u'Twi'), (u'uk', u'Ukrainian'), (u'ur', u'Urdu'), (u'ug', u'Uyghur'), (u'uz', u'Uzbek'), (u've', u'Venda'), (u'vi', u'Vietnamese'), (u'vo', u'Volap\xfck'), (u'wa', u'Walloon'), (u'cy', u'Welsh'), (u'fy', u'Western Frisian'), (u'wo', u'Wolof'), (u'xh', u'Xhosa'), (u'yi', u'Yiddish'), (u'yo', u'Yoruba'), (u'za', u'Zhuang'), (u'zu', u'Zulu')]¶
-
page_range_article_id
= <UnboundField(TextField, (), {'label': 'Page Range/Article ID', 'description': 'e.g. 1-100', 'widget_classes': 'form-control article-related'})>¶
-
parent_book
= <UnboundField(TextField, (), {'widget': <wtforms.widgets.core.HiddenInput object>})>¶
-
preprint_created
= <UnboundField(TextField, (), {'widget': <wtforms.widgets.core.HiddenInput object>, 'export_key': 'preprint_created'})>¶
-
publication_date
= <UnboundField(TextField, (), {'label': 'Publication Date', 'widget_classes': 'form-control book-related', 'description': 'Format: YYYY-MM-DD, YYYY-MM or YYYY.', 'validators': [<function date_validator>]})>¶
-
publication_place
= <UnboundField(TextField, (), {'label': 'Publication Place', 'widget_classes': 'form-control book-related'})>¶
-
publisher_name
= <UnboundField(TextField, (), {'label': 'Publisher', 'widget_classes': 'form-control book-related'})>¶
-
references
= <UnboundField(TextAreaField, (), {'label': 'References', 'description': 'Please paste the references in plain text', 'widget_classes': 'form-control'})>¶
-
report_numbers
= <UnboundField(DynamicFieldList, (<UnboundField(FormField, (<class 'inspirehep.modules.literaturesuggest.forms.ReportNumberInlineForm'>,), {'widget': <inspirehep.modules.forms.field_widgets.ExtendedListWidget object>})>,), {'widget': <inspirehep.modules.literaturesuggest.forms.UnsortedDynamicListWidget object>, 'add_label': 'Add another report number', 'min_entries': 1, 'widget_classes': ''})>¶
-
series_title
= <UnboundField(TextField, (), {'autocomplete': 'journal', 'label': 'Series Title', 'widget_classes': 'form-control book-related'})>¶
-
series_volume
= <UnboundField(TextField, (), {'label': 'Volume', 'widget_classes': 'form-control book-related'})>¶
-
start_page
= <UnboundField(TextField, (), {'placeholder': 'Start page of the chapter', 'widget_classes': 'form-control chapter-related'})>¶
-
subject
= <UnboundField(SelectMultipleField, (), {'widget_classes': 'form-control', 'label': 'Subject', 'export_key': 'subject_term', 'filters': [<function clean_empty_list>], 'validators': [<wtforms.validators.DataRequired object>]})>¶
-
supervisors
= <UnboundField(DynamicFieldList, (<UnboundField(FormField, (<class 'inspirehep.modules.literaturesuggest.forms.AuthorInlineForm'>,), {'widget': <inspirehep.modules.forms.field_widgets.ExtendedListWidget object>})>,), {'add_label': 'Add another supervisor', 'label': 'Supervisors', 'min_entries': 1, 'widget_classes': ' thesis-related'})>¶
-
thesis_date
= <UnboundField(TextField, (), {'label': 'Date of Submission', 'validators': [<function date_validator>], 'description': 'Format: YYYY-MM-DD, YYYY-MM or YYYY.', 'widget_classes': 'form-control thesis-related'})>¶
-
title
= <UnboundField(TitleField, (), {'widget_classes': 'form-control', 'label': 'Title', 'export_key': 'title', 'validators': [<wtforms.validators.DataRequired object>]})>¶
-
title_arXiv
= <UnboundField(TitleField, (), {'widget': <wtforms.widgets.core.HiddenInput object>, 'export_key': 'title_arXiv'})>¶
-
title_crossref
= <UnboundField(TitleField, (), {'widget': <wtforms.widgets.core.HiddenInput object>, 'export_key': 'title_crossref'})>¶
-
title_translation
= <UnboundField(TitleField, (), {'label': 'Translated Title', 'export_key': 'title_translation', 'description': 'Original title translated to english language.', 'widget_classes': 'form-control'})>¶
-
type_of_doc
= <UnboundField(SelectField, (), {'default': 'article', 'choices': [('article', 'Article/Conference paper'), ('thesis', 'Thesis'), ('book', 'Book'), ('chapter', 'Book chapter')], 'widget_classes': 'form-control', 'label': 'Type of Document', 'validators': [<wtforms.validators.DataRequired object>]})>¶
-
types_of_doc
= [('article', 'Article/Conference paper'), ('thesis', 'Thesis'), ('book', 'Book'), ('chapter', 'Book chapter')]¶
-
url
= <UnboundField(TextField, (), {'label': 'Link to PDF', 'validators': [<function pdf_validator>], 'placeholder': 'http://www.example.com/document.pdf', 'description': 'Where can we find a PDF to check the references?', 'widget_classes': 'form-control'})>¶
-
volume
= <UnboundField(TextField, (), {'label': 'Volume', 'widget_classes': 'form-control article-related'})>¶
-
year
= <UnboundField(TextField, (), {'widget_classes': 'form-control article-related', 'label': 'Year', 'validators': [<function year_validator>]})>¶
-
-
class
inspirehep.modules.literaturesuggest.forms.
ReportNumberInlineForm
(*args, **kwargs)[source]¶ Bases:
inspirehep.modules.forms.form.INSPIREForm
Repor number inline form.
-
report_number
= <UnboundField(TextField, (), {'widget': <inspirehep.modules.forms.field_widgets.ColumnInput object>, 'label': 'Report Number', 'widget_classes': 'form-control'})>¶
-
-
class
inspirehep.modules.literaturesuggest.forms.
UnorderedDynamicItemWidget
(**kwargs)[source]¶ Bases:
inspirehep.modules.forms.field_widgets.DynamicItemWidget
-
class
inspirehep.modules.literaturesuggest.forms.
UnsortedDynamicListWidget
(**kwargs)[source]¶ Bases:
inspirehep.modules.forms.field_widgets.DynamicListWidget
-
class
inspirehep.modules.literaturesuggest.forms.
UrlInlineForm
(*args, **kwargs)[source]¶ Bases:
inspirehep.modules.forms.form.INSPIREForm
Url inline form.
-
url
= <UnboundField(TextField, (), {'export_key': 'full_url', 'widget': <inspirehep.modules.forms.field_widgets.ColumnInput object>, 'placeholder': 'http://www.example.com', 'widget_classes': 'form-control'})>¶
-
Button for import data and skip.
Import data button.
-
inspirehep.modules.literaturesuggest.forms.
journal_title_kb_mapper
(val)[source]¶ Return object ready to autocomplete journal titles.
Radio choice buttons.
inspirehep.modules.literaturesuggest.normalizers module¶
inspirehep.modules.literaturesuggest.tasks module¶
-
inspirehep.modules.literaturesuggest.tasks.
curation_ticket_needed
(*args, **kwargs)[source]¶ Check if the a curation ticket is needed.
-
inspirehep.modules.literaturesuggest.tasks.
formdata_to_model
(obj, formdata)[source]¶ Manipulate form data to match literature data model.
inspirehep.modules.literaturesuggest.views module¶
INSPIRE Literature suggestion blueprint.
-
inspirehep.modules.literaturesuggest.views.
create
(*args, **kwargs)[source]¶ View for INSPIRE suggestion create form.
Module contents¶
LiteratureSuggest module.