-
Notifications
You must be signed in to change notification settings - Fork 20
Bibcheck: Adds a temporary plugin #14
base: master
Are you sure you want to change the base?
Conversation
GiorgosPa
commented
Feb 27, 2014
- Corrects the authors from some old atlas papers
ping @jmartinm we should review this. |
8771cdc
to
8c30f9d
Compare
@GiorgosPa Can you rebase this and remove/comment out the added entries in rules.cfg (to avoid activating the rules on PROD). Then I will merge this. |
bibcheck/plugins/atlas_authors.py
Outdated
authors = {} | ||
kb_name = 'atlas_authors' | ||
description = 'Names of authors from some atlas papers' | ||
if not CFG_ATLAS_AUTHORS_FILE and not kb_exists(kb_name): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From here...
Sorry to join late to the party 😄. I haven't seen this PR... I think it would be nice to rename the atlas check to something more generic (and actually could be almost something to include into Invenio). In the end this is going to be a typical problem not just related with ATLAS but also other use cases (plus there is no atlas-specific filter in the configuration). E.g. could be named |
Yeah, @GiorgosPa and I had a quick chat about this yesterday and we agreed to kill the KB and config variable parts actually. Instead turn it into a batch rule @dset0x This is a use case to think about actually for the new |
That said.. for the generic case, maybe a stable author typos mapping in a KB would make sense, but indeed the check should not worry about creating and filling the KB then. Just check if it is there or not. |
7b513f4
to
6e7d239
Compare
I updated the PR so that no configuration variable or database knowledge base is used. I also think that the dictionary building will happen only once what do you think @kaplun ? |
Thanks @GiorgosPa, so just one small note for me, but beside that, I think the plugin will now no longer have performance issues 👍 |
Updated. |
@kaplun Do you think this one is okay to merge? |
@@ -0,0 +1,149 @@ | |||
# -*- coding: utf-8 -*- | |||
## | |||
## This file is part of Invenio. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to INSPIRE
bibcheck/plugins/journal_names.py
Outdated
@@ -0,0 +1,38 @@ | |||
# -*- coding: utf-8 -*- | |||
## This file is part of Invenio. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
INSPIRE
* Corrects the authors using a knwoledge base file with observed errors. Signed-off-by: Georgios Papoutsakis <[email protected]>
1dd2d7d
to
2ee0c67
Compare
* Adds journal_names plugin. * Adds unit tests for the new plugin and atlas_authors plugin. * Fixes pep8 issues on atlas_authors. Signed-off by: Georgios Papoutsakis <[email protected]>
978e635
to
c40e554
Compare
4ea2c64
to
988b237
Compare
spiders: new PHENIX spider