Skip to content
This repository has been archived by the owner on Sep 20, 2021. It is now read-only.

Bibmatch #366

Open
wants to merge 3 commits into
base: prod
Choose a base branch
from
Open

Bibmatch #366

wants to merge 3 commits into from

Conversation

ksachs
Copy link

@ksachs ksachs commented Nov 30, 2016

Not fully testet!!

Several stages of fixes to bibmatch_engine.py

The first commit is a bugfix. The original code assumes AND precedes OR.
Now braces are introduced to encapsulate sub-queries generated from several values of the same field.
E.g. (037__a:arXiv:1409.6313 OR 037__a:DESY-14-160)

The second commit is a by-pass to the known search bug for search-pattern with more than one '/'.
It (tries to) convert
(0247_a:10.1007/JHEP06(2015)049 OR 0247_a:10.3204/PUBDB-2015-02435)
to
(0247_a:/^10.1007.JHEP06.2015.049$/ OR 0247_a:/^10.3204.PUBDB-2015-02435$/)

The third commit is a feature we need at DESY.
I.e. switch the operator from OR to AND while processing the querystrings from a config file.
DOIs and report-numbers have to be combined by OR,
authors have to be combined by AND.

Up to you what you think is useful for the rest of the world.

* previous version assumed proper logic of AND and OR
* special mode for operator == 'OR' obsolete

Signed-off-by: Kirsten Sachs <[email protected]>
* convert search string containing '/' to regular-expression search

Signed-off-by: Kirsten Sachs <[email protected]>
* QRYSTR---@[operator] in config file can be used to set operator to AND or OR

Signed-off-by: Kirsten Sachs <[email protected]>
@kaplun
Copy link

kaplun commented Feb 17, 2017

Hi @ksachs I just came across this PR (I wasn't mentioned so I missed it, sorry!). Actually I believe you are the only user of bibmatch, and this fork of Invenio 1 we maintain in INSPIRE is not used by anyone else.

So I guess we can merge this anyway and it won't harm :)

@ksachs
Copy link
Author

ksachs commented Mar 1, 2017

The PR is mainly for your information. I fixed the local version at DESY which is running since a few month now. So you can call it fully tested ;-)
We might not need the merge unless Florian is going to re-install the code - usually it is out of sync.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants