Commit 7c8771b7 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update deploy.py to systematicaly scan hall hidden when harvester are defined by author's names.

parent 53ff1486
......@@ -264,25 +264,29 @@ def create_harvesters(opt, dfi, dfh):
li = ["a %s" % el.strip() for el in people.split(",")]
collection = "find %s and tc p and not tc c " % " or ".join(li)
if len(row.hal_hidden) > 0:
collection = collection.replace("find", "find cc Hal Hidden")
data["collections"] = collection
data["id_categories"] = CONTROLLER_TO_CAT["articles"]
insert_harvester(**data)
# systematic search in hall hidden
data["collection"] = \
data["collection"].replace("find", "find cc Hal Hidden and ")
insert_harvester(**data)
# proceeding
data["controller"] = "proceedings"
collection = "find %s and tc c " % " or ".join(li)
if len(row.hal_hidden) > 0:
collection = collection.replace("find", "find cc Hal Hidden")
data["collections"] = collection
data["id_categories"] = CONTROLLER_TO_CAT["proceedings"]
insert_harvester(**data)
# systematic search in hall hidden
data["collection"] = \
data["collection"].replace("find", "find cc Hal Hidden and ")
insert_harvester(**data)
continue
......
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