Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
humanities
gargantext
Commits
56f0df4a
Commit
56f0df4a
authored
Jan 12, 2015
by
PkSM3
Browse files
Options
Browse Files
Download
Plain Diff
[IDK] trying to push
parents
e920cbb4
e592af7f
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
158 additions
and
132 deletions
+158
-132
EuropressFileParser.py
parsing/FileParsers/EuropressFileParser.py
+145
-124
FileParser.py
parsing/FileParsers/FileParser.py
+3
-3
RisFileParser.py
parsing/FileParsers/RisFileParser.py
+4
-0
menu.html
templates/menu.html
+4
-4
project.html
templates/project.html
+2
-1
No files found.
parsing/FileParsers/EuropressFileParser.py
View file @
56f0df4a
This diff is collapsed.
Click to expand it.
parsing/FileParsers/FileParser.py
View file @
56f0df4a
...
...
@@ -77,9 +77,9 @@ class FileParser:
if
language
:
break
if
language
:
metadata
[
"language_iso2"
]
=
language
.
iso2
metadata
[
"language_iso3"
]
=
language
.
iso3
metadata
[
"language_fullname"
]
=
language
.
fullname
metadata
[
"language_iso2"
]
=
language
.
iso2
metadata
[
"language_iso3"
]
=
language
.
iso3
metadata
[
"language_fullname"
]
=
language
.
fullname
return
metadata
def
format_metadata
(
self
,
metadata
):
...
...
parsing/FileParsers/RisFileParser.py
View file @
56f0df4a
...
...
@@ -36,6 +36,10 @@ class RisFileParser(FileParser):
#print(metadata)
try
:
#print("append")
if
'language_fullname'
not
in
metadata
.
keys
():
if
'language_iso3'
not
in
metadata
.
keys
():
if
'language_iso2'
not
in
metadata
.
keys
():
metadata
[
'language_iso2'
]
=
'en'
metadata_list
.
append
(
metadata
)
metadata
=
{}
#print("append succeeded")
...
...
templates/menu.html
View file @
56f0df4a
...
...
@@ -23,12 +23,12 @@
<div
class=
"navbar-collapse collapse"
>
<ul
class=
"nav navbar-nav"
>
<!-- <li><a href="/admin/">Admin/</a></li> --!>
<li><a href="/projects/">Projects
/
</a></li>
<li><a href="/projects/">Projects</a></li>
{% if project %}
<li><a href="/project/{{project.id}}">{{project.name}}
/
</a></li>
<li><a href="/project/{{project.id}}">{{project.name}}</a></li>
{% endif %}
{% if corpus %}
<li><a href="/project/{{project.id}}/corpus/{{corpus.id}}">{{corpus.name}}
/
</a></li>
<li><a href="/project/{{project.id}}/corpus/{{corpus.id}}">{{corpus.name}}</a></li>
{% endif %}
...
...
@@ -61,7 +61,7 @@
<hr>
<footer>
<p>
Gargantext v.1.0 (Copyrights {{ date.year }})
</p>
<p>
Gargantext v.1.0 (Copyrights
CNRS
{{ date.year }})
</p>
</footer>
...
...
templates/project.html
View file @
56f0df4a
...
...
@@ -46,7 +46,7 @@
data-placement=
"bottom"
>
Add a corpus
</button>
<div
id=
"popover-content"
class=
"hide"
>
<form
id=
"uploadcorpusform"
enctype=
"multipart/form-data"
action=
"/project/{{project.id}}/"
method=
"post"
>
{% csrf_token %}
{{ form.non_field_errors }}
...
...
@@ -56,6 +56,7 @@
{{ formResource.as_p}}
<input
type=
"submit"
class=
"btn"
value=
"Add this corpus"
/>
</form>
</center>
</p>
...
...
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