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
2bbc6201
Commit
2bbc6201
authored
Oct 06, 2015
by
LE GAC Renaud
Browse files
Add the column synonym in the harvester report.
parent
4708a0d2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
modules/harvest_tools/msg.py
modules/harvest_tools/msg.py
+3
-3
views/harvest/layout.html
views/harvest/layout.html
+5
-1
No files found.
modules/harvest_tools/msg.py
View file @
2bbc6201
...
...
@@ -117,13 +117,13 @@ class Msg(Storage):
self
.
action
=
'reject'
if
record
is
not
None
:
if
txt
==
MSG_NO_COUNTRY
:
if
str
(
txt
)
==
MSG_NO_COUNTRY
:
self
.
synonym
=
record
.
country
()
elif
txt
==
MSG_WELL_FORMED_COLLABORATION
:
elif
str
(
txt
)
==
MSG_WELL_FORMED_COLLABORATION
:
self
.
synonym
=
record
.
collaboration
()
elif
txt
==
MSG_NO_PUBLISHER
:
elif
str
(
txt
)
==
MSG_NO_PUBLISHER
:
self
.
synonym
=
record
.
publisher
()
if
year
is
None
and
record
is
not
None
:
...
...
views/harvest/layout.html
View file @
2bbc6201
...
...
@@ -76,6 +76,7 @@
{'name': 'collection', 'type': 'string'},
{'name': 'harvester', 'type': 'string'},
{'name': 'record_id', 'type': 'string'},
{'name': 'synonym', 'type': 'string'},
{'name': 'title', 'type': 'string'},
{'name': 'txt', 'type': 'string'},
{'name': 'url', 'type': 'string'},
...
...
@@ -87,6 +88,7 @@
row.collection,
json.dumps(row.harvester),
row.record_id,
row.synonym,
row.title,
row.txt,
row.url,
...
...
@@ -166,6 +168,7 @@
"trLost = '%s'" % T('Lost'),
"trModified = '%s'" % T('Modified'),
"trRejected = '%s'" % T('Rejected'),
"trSynonym = '%s'" % T('Synonym'),
"trTitle = '%s'" % T('Title'),
"trTxt ='%s'" % T('Message'),
"trStatistics = '%s'" % T('Statistics'),
...
...
@@ -204,7 +207,7 @@
// extract the harvester used to retrieve this record
harvester
=
JSON
.
parse
(
record
.
get
(
'
harvester
'
));
// launch the EditAndInsert wizard using a loader
// NOTE 141112: the success function is used to remove the mask
//
...
...
@@ -320,6 +323,7 @@
columns
:
[
{
xtype
:
'
rownumberer
'
},
{
text
:
trTitle
,
dataIndex
:
'
title
'
,
flex
:
3
,
renderer
:
rTitle
},
{
text
:
trSynonym
,
dataIndex
:
'
synonym
'
,
flex
:
1
},
{
text
:
trAction
,
dataIndex
:
'
action
'
,
flex
:
1
,
hidden
:
true
},
{
text
:
trTxt
,
dataIndex
:
'
txt
'
,
flex
:
1
,
hidden
:
true
},
{
text
:
trCollection
,
dataIndex
:
'
collection
'
,
flex
:
1
,
hidden
:
true
},
...
...
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