Commit 20656759 authored by delanoe's avatar delanoe

[FIX] Removing format in resource name.

parent ad864e71
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
from gargantext.util.lists import * from gargantext.util.lists import *
from gargantext.util.tools import datetime, convert_to_date from gargantext.util.tools import datetime, convert_to_date
import re
LISTTYPES = { LISTTYPES = {
'DOCUMENT' : WeightedList, 'DOCUMENT' : WeightedList,
'GROUPLIST' : Translations, 'GROUPLIST' : Translations,
...@@ -136,8 +138,8 @@ def resourcename(corpus): ...@@ -136,8 +138,8 @@ def resourcename(corpus):
Usage : resourcename(corpus) == "ISTex" Usage : resourcename(corpus) == "ISTex"
''' '''
resource = corpus.resources()[0] resource = corpus.resources()[0]
return RESOURCETYPES[resource['type']]['name'] resourcename = RESOURCETYPES[resource['type']]['name']
return re.sub(r'\(.*', '', resourcename)
RESOURCETYPES = [ RESOURCETYPES = [
# type 0 # type 0
......
...@@ -153,7 +153,7 @@ ...@@ -153,7 +153,7 @@
</a> </a>
<br> <br>
<span class="glyphicon glyphicon-cd" aria-hidden="true"></span> <span class="glyphicon glyphicon-cd" aria-hidden="true"></span>
{{ resourcename }} {{ resourcename | truncatechars:20 }}
<br> <br>
<span class="glyphicon glyphicon-file" aria-hidden="true"></span> <span class="glyphicon glyphicon-file" aria-hidden="true"></span>
{{ corpus.name }} {{ corpus.name }}
......
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