Commit 4c1b4a20 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Minor bug fixed.

parent b66314a2
......@@ -901,7 +901,7 @@ class PublicationsTool(object):
collections = re.sub(' *, *', ',', collections).split(',')
# alias
controller = self.harvester.controller.title()
controller = self.harvester.controller
project = self.db.projects[self.harvester.id_projects].project
# extract the list of publications from the store for each collection
......@@ -915,7 +915,7 @@ class PublicationsTool(object):
# log collection information
# A collection is identified as "Project Controller collection"
title = "%s %s / %s" % (project, controller, collection)
title = "%s / %s / %s" % (project, controller, collection)
self.collection_logs.append(MsgCollection(title=title))
# search record in the harvester repository
......
......@@ -80,8 +80,19 @@
*
*/
function toURL(value, metadata, record) {
var pattern = '<a href="{0}" target="_blank">{1}</a>';
return Ext.String.format(pattern, record.get('url'), record.get('title'));
var pattern = '<a href="{0}" target="_blank">{1}</a>',
rep,
title = record.get('title'),
url = record.get('url');
if (url.length > 0) {
rep = Ext.String.format(pattern, url, title);
} else {
rep = title;
}
return rep;
}
// bind the python and javascript variables
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment