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
7dc2b4ea
Commit
7dc2b4ea
authored
May 20, 2017
by
LE GAC Renaud
Browse files
Update model_selector.marc12 to add the field host.
parent
bbe9d6d6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
controllers/harvest.py
controllers/harvest.py
+1
-0
modules/model_selector.py
modules/model_selector.py
+2
-0
No files found.
controllers/harvest.py
View file @
7dc2b4ea
...
...
@@ -322,6 +322,7 @@ def insert_marcxml():
if
not
tool
:
return
inline_alert
(
T
(
"Error"
),
T
(
"Select an harvester."
))
tool
.
harvester
.
host
=
selector
.
host
tool
.
process_xml
(
selector
.
xml
)
except
ToolException
as
e
:
...
...
modules/model_selector.py
View file @
7dc2b4ea
...
...
@@ -363,12 +363,14 @@ class Selector(object):
"marc12_selector"
,
Field
(
"id_teams"
,
"reference teams"
,
label
=
"Team"
),
Field
(
"id_projects"
,
"reference projects"
,
label
=
"Project"
),
Field
(
"host"
,
"string"
,
default
=
STORES
[
0
],
label
=
"Store"
),
Field
(
"xml"
,
"text"
,
comment
=
tp_xml
,
label
=
"MARCXML"
),
Field
(
"controller"
,
"string"
,
label
=
"Automaton"
),
Field
(
"id_categories"
,
"reference categories"
,
label
=
"Category"
),
Field
(
"mode"
,
"string"
,
default
=
mode_dry_run
))
table
.
controller
.
requires
=
IS_IN_SET
(
CONTROLLERS
)
table
.
host
.
requires
=
IS_IN_SET
(
STORES
)
table
.
id_categories
.
requires
=
IS_IN_DB
(
db
,
"categories.code"
)
table
.
id_projects
.
requires
=
IS_IN_DB
(
db
,
"projects.project"
)
table
.
id_teams
.
requires
=
IS_IN_DB
(
db
,
"teams.team"
)
...
...
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