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
4c1b4a20
Commit
4c1b4a20
authored
Jun 09, 2014
by
LE GAC Renaud
Browse files
Minor bug fixed.
parent
b66314a2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
4 deletions
+15
-4
modules/harvest_tools.py
modules/harvest_tools.py
+2
-2
views/harvest/layout.html
views/harvest/layout.html
+13
-2
No files found.
modules/harvest_tools.py
View file @
4c1b4a20
...
...
@@ -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
...
...
views/harvest/layout.html
View file @
4c1b4a20
...
...
@@ -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
...
...
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