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
7c8771b7
Commit
7c8771b7
authored
Feb 17, 2018
by
LE GAC Renaud
Browse files
Update deploy.py to systematicaly scan hall hidden when harvester are defined by author's names.
parent
53ff1486
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
scripts/deploy.py
scripts/deploy.py
+10
-6
No files found.
scripts/deploy.py
View file @
7c8771b7
...
...
@@ -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
...
...
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