implementing invenio fix #2458 to b2share (issue #481)
Merge pull request #498 from EUDAT-B2SHARE/issue_481

implementing invenio fix #2458 to b2share (issue #481)