Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
limbra
limbra
Commits
4ec2a3eb
Commit
4ec2a3eb
authored
Mar 04, 2018
by
LE GAC Renaud
Browse files
Update deploy.py in to improve Hal Hidden harvesters.
parent
7c8771b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
scripts/deploy.py
scripts/deploy.py
+12
-8
No files found.
scripts/deploy.py
View file @
4ec2a3eb
...
...
@@ -262,29 +262,33 @@ def create_harvesters(opt, dfi, dfh):
data
[
"controller"
]
=
"articles"
li
=
[
"a %s"
%
el
.
strip
()
for
el
in
people
.
split
(
","
)]
collection
=
"find %s and tc p and not tc c "
%
" or "
.
join
(
li
)
auths
=
" or "
.
join
(
li
)
collection
=
"find %s and tc p and not tc c "
%
auths
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 "
)
collection
=
"find cc Hal Hidden and %s and not tc c "
%
auths
data
[
"collections"
]
=
collection
insert_harvester
(
**
data
)
# proceeding
data
[
"controller"
]
=
"proceedings"
collection
=
"find %s and tc c "
%
" or "
.
join
(
li
)
collection
=
"find %s and tc c "
%
auths
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 "
)
collection
=
"find cc Hal Hidden and %s and tc c "
%
auths
data
[
"collections"
]
=
collection
insert_harvester
(
**
data
)
continue
...
...
@@ -525,7 +529,7 @@ if __name__ == "__main__":
if
OPT
.
affiliation
:
create_affiliation
(
OPT
)
if
OPT
.
commit
()
:
if
OPT
.
commit
:
print
"
\n\t
Change are committed to the database."
db
.
commit
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment