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
79a58da4
Commit
79a58da4
authored
Jul 03, 2017
by
LE GAC Renaud
Browse files
Update RecordInst the subfield subordinate_unit disapear !
parent
4a70f4dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
modules/invenio_tools/recordinst.py
modules/invenio_tools/recordinst.py
+2
-2
No files found.
modules/invenio_tools/recordinst.py
View file @
79a58da4
...
...
@@ -28,7 +28,7 @@ class RecordInst(Record):
| authority_institution | institution |
| cataloguer_info | creation_date, modification_date |
| collection | primary, secondary |
| corporate_name | name
, subordinate_unit
|
| corporate_name | name
|
| creation_date | |
| files | |
| filetypes | |
...
...
@@ -98,7 +98,7 @@ class RecordInst(Record):
- an empty string when it is not defined.
"""
value
=
self
.
_get
(
u
"corporate_name"
,
u
"
subordinate_unit
"
)
value
=
self
.
_get
(
u
"corporate_name"
,
u
"
name
"
)
if
isinstance
(
value
,
list
)
and
len
(
value
)
==
1
:
return
value
[
0
]
...
...
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