Commit 879cf48b authored by c24b's avatar c24b

REPEC integration

parent ac52aaac
...@@ -189,7 +189,7 @@ RESOURCETYPES = [ ...@@ -189,7 +189,7 @@ RESOURCETYPES = [
'name': 'Zotero [RIS]', 'name': 'Zotero [RIS]',
'format': 'RIS', 'format': 'RIS',
'parser': 'RISParser', 'parser': 'RISParser',
'file_formats':["zip"], 'file_formats':["zip", "ris", "txt"],
'crawler': None, 'crawler': None,
'default_languages': ['en'], 'default_languages': ['en'],
}, },
...@@ -218,6 +218,14 @@ RESOURCETYPES = [ ...@@ -218,6 +218,14 @@ RESOURCETYPES = [
"crawler": "CernCrawler", "crawler": "CernCrawler",
'default_languages': ['en'], 'default_languages': ['en'],
}, },
{ "type":10,
"name": 'REPEC [RIS]',
"parser": "RisParser",
"format": 'RIS',
'file_formats':["zip","ris", "txt"],
"crawler": None,
'default_languages': ['en'],
},
] ]
#shortcut for resources declaration in template #shortcut for resources declaration in template
PARSERS = [(n["type"],n["name"]) for n in RESOURCETYPES if n["parser"] is not None] PARSERS = [(n["type"],n["name"]) for n in RESOURCETYPES if n["parser"] is not None]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment