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
4ce8449a
Commit
4ce8449a
authored
Jan 05, 2015
by
Administrator
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'samuel'
Samuels work
parents
5c88b9aa
9127511f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
5 deletions
+41
-5
node-info.html
templates/node-info.html
+41
-5
No files found.
templates/node-info.html
View file @
4ce8449a
...
@@ -6,6 +6,33 @@
...
@@ -6,6 +6,33 @@
<link
rel=
"stylesheet"
href=
"{% static "
css
/
bootstrap-theme
.
min
.
css
"
%}"
>
<link
rel=
"stylesheet"
href=
"{% static "
css
/
bootstrap-theme
.
min
.
css
"
%}"
>
<link
rel=
"stylesheet"
href=
"{% static "
js
/
libs
/
jquery
/
jquery-ui
.
css
"
%}"
media=
"screen"
>
<link
rel=
"stylesheet"
href=
"{% static "
js
/
libs
/
jquery
/
jquery-ui
.
css
"
%}"
media=
"screen"
>
<style>
.nodeinfo-container
{
margin
:
25px
;
padding
:
25px
;
}
.nodeinfo-elem
{
border-style
:
solid
;
border-width
:
1px
;
margin
:
5px
;
padding
:
5px
;
}
.nodeinfo-head
{
font-size
:
large
;
margin
:
5px
;
padding
:
5px
;
}
.nodeinfo-content
{
margin
:
5px
;
padding
:
5px
;
}
</style>
{% endblock %}
{% endblock %}
...
@@ -16,6 +43,7 @@
...
@@ -16,6 +43,7 @@
<div
id=
"metadata"
></div>
<div
id=
"metadata"
></div>
{% endif %}
{% endif %}
<script
src=
"{% static "
js
/
jquery
/
jquery
.
min
.
js
"
%}"
type=
"text/javascript"
></script>
<script
src=
"{% static "
js
/
jquery
/
jquery
.
min
.
js
"
%}"
type=
"text/javascript"
></script>
<script
src=
"{% static "
js
/
libs
/
jquery
/
jquery-ui
.
js
"
%}"
type=
"text/javascript"
></script>
<script
src=
"{% static "
js
/
libs
/
jquery
/
jquery-ui
.
js
"
%}"
type=
"text/javascript"
></script>
...
@@ -44,11 +72,19 @@
...
@@ -44,11 +72,19 @@
jsondata
=
data
.
metadata
jsondata
=
data
.
metadata
console
.
log
(
jsondata
)
console
.
log
(
jsondata
)
var
output
=
""
var
output
=
""
if
(
jsondata
.
title
)
output
+=
"Title:<br>"
+
jsondata
.
title
+
"<br>"
;
// if(jsondata.title) output += "Title:
<
br
>
"+jsondata.title+"
<
br
>
";
if
(
jsondata
.
publication_date
)
output
+=
jsondata
.
publication_date
.
split
(
" "
)[
0
]
+
"<br><br>"
;
// if(jsondata.publication_date) output += jsondata.publication_date.split("
")[0]+"
<
br
><
br
>
";
if
(
jsondata
.
authors
)
output
+=
"Authors:<br>"
+
jsondata
.
authors
+
"<br><br>"
;
// if(jsondata.authors) output += "
Authors
:
<
br
>
"+jsondata.authors+"
<
br
><
br
>
";
if
(
jsondata
.
fields
)
output
+=
"Keywords:<br>"
+
jsondata
.
fields
+
"<br><br>"
;
// if(jsondata.fields) output += "
Keywords
:
<
br
>
"+jsondata.fields+"
<
br
><
br
>
";
if
(
jsondata
.
abstract
)
output
+=
"Abstract:<br>"
+
jsondata
.
abstract
+
"<br><br>"
;
// if(jsondata.abstract) output += "
Abstract
:
<
br
>
"+jsondata.abstract+"
<
br
><
br
>
";
// <div class='jumbotron'>
output += "
<
div
class
=
'nodeinfo-container'
>
"
if(jsondata.title) output += "
<
div
class
=
'nodeinfo-elem'
>
<
div
class
=
'nodeinfo-head'
>
Title
<
/div> <div class='nodeinfo-content'>"+jsondata.title+"</
div
>
<
/div>"
;
if
(
jsondata
.
publication_date
)
output
+=
"<div class='nodeinfo-elem'> <div class='nodeinfo-head'>Publication Date</div> <div class='nodeinfo-content'>"
+
jsondata
.
publication_date
.
split
(
" "
)[
0
]
+
"</div> </div>"
;
if
(
jsondata
.
authors
)
output
+=
"<div class='nodeinfo-elem'> <div class='nodeinfo-head'>Authors</div> <div class='nodeinfo-content'>"
+
jsondata
.
authors
+
"</div> </div>"
;
if
(
jsondata
.
fields
)
output
+=
"<div class='nodeinfo-elem'> <div class='nodeinfo-head'>Keywords</div> <div class='nodeinfo-content'>"
+
jsondata
.
fields
+
"</div> </div>"
;
if
(
jsondata
.
abstract
)
output
+=
"<div class='nodeinfo-elem'> <div class='nodeinfo-head'>Abstract</div> <div class='nodeinfo-content'>"
+
jsondata
.
abstract
+
"</div> </div>"
;
output
+=
"</div>"
$
(
"#metadata"
).
html
(
output
);
$
(
"#metadata"
).
html
(
output
);
},
},
...
...
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