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
c71984ec
Commit
c71984ec
authored
Sep 21, 2016
by
delanoe
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/romain-testing' into testing-merge
parents
e42e2b8d
5a20429b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
14 deletions
+12
-14
terms.py
gargantext/views/pages/terms.py
+3
-2
Authors_dyna_chart_and_table.js
static/lib/gargantext/Authors_dyna_chart_and_table.js
+2
-3
Docs_dyna_chart_and_table.js
static/lib/gargantext/Docs_dyna_chart_and_table.js
+3
-3
NGrams_dyna_chart_and_table.js
static/lib/gargantext/NGrams_dyna_chart_and_table.js
+2
-3
Sources_dyna_chart_and_table.js
static/lib/gargantext/Sources_dyna_chart_and_table.js
+2
-3
No files found.
gargantext/views/pages/terms.py
View file @
c71984ec
...
...
@@ -2,7 +2,7 @@ from gargantext.util.http import requires_auth, render, settings
from
gargantext.util.db
import
session
from
gargantext.util.db_cache
import
cache
from
gargantext.models
import
Node
from
gargantext.constants
import
get_resource
_by_name
from
gargantext.constants
import
get_resource
from
datetime
import
datetime
@
requires_auth
...
...
@@ -31,6 +31,7 @@ def ngramtable(request, project_id, corpus_id):
# .filter(Node.id != corpus_id)
corpora_infos
=
corpora_infos_q
.
all
()
source_type
=
corpus
.
resources
()[
0
][
'type'
]
# rendered page : terms.html
return
render
(
...
...
@@ -42,7 +43,7 @@ def ngramtable(request, project_id, corpus_id):
'date'
:
datetime
.
now
(),
'project'
:
project
,
'corpus'
:
corpus
,
'resourcename'
:
get_resource
_by_name
(
corpus
)
,
'resourcename'
:
get_resource
(
source_type
)[
'name'
]
,
'view'
:
'terms'
,
# for the CSV import modal
...
...
static/lib/gargantext/Authors_dyna_chart_and_table.js
View file @
c71984ec
...
...
@@ -418,15 +418,14 @@ function Main_test( data , initial) {
// // .xUnits(d3.time.months)
.
renderlet
(
function
(
chart
)
{
chart
.
select
(
"g.y"
).
style
(
"display"
,
"none"
);
LineChart
.
filter
(
chart
.
filter
());
console
.
log
(
"lalaal moveChart.focus(chartfilt);"
)
})
.
on
(
"filtered"
,
function
(
chart
)
{
dc
.
events
.
trigger
(
function
()
{
var
chartfilt
=
chart
.
filter
()
console
.
log
(
"lalaal move chart"
,
chartfilt
)
// tricky part: identifying when the moveChart changes.
if
(
chartfilt
)
{
Push2Buffer
(
chart
.
filter
()
)
Push2Buffer
(
chart
filt
)
}
else
{
if
(
TheBuffer
)
{
Push2Buffer
(
false
)
...
...
static/lib/gargantext/Docs_dyna_chart_and_table.js
View file @
c71984ec
...
...
@@ -524,16 +524,16 @@ function Main_test(Data) {
.
xUnits
(
d3
.
time
.
months
)
.
renderlet
(
function
(
chart
)
{
chart
.
select
(
"g.y"
).
style
(
"display"
,
"none"
);
moveChart
.
filter
(
chart
.
filter
());
})
.
on
(
"filtered"
,
function
(
chart
)
{
dc
.
events
.
trigger
(
function
()
{
var
chartfilt
=
chart
.
filter
()
console
.
log
(
"lalaal move chart"
,
chartfilt
)
// tricky part: identifying when the moveChart changes.
if
(
chartfilt
)
{
console
.
log
(
"chart.filter()"
)
console
.
log
(
chart
.
filter
()
)
Push2Buffer
(
chart
.
filter
()
)
console
.
log
(
chart
filt
)
Push2Buffer
(
chartfilt
)
}
else
{
if
(
TheBuffer
)
{
Push2Buffer
(
false
)
...
...
static/lib/gargantext/NGrams_dyna_chart_and_table.js
View file @
c71984ec
...
...
@@ -2187,15 +2187,14 @@ function MainTableAndCharts( ngdata , initial , search_filter) {
// // .xUnits(d3.time.months)
.
renderlet
(
function
(
chart
)
{
chart
.
select
(
"g.y"
).
style
(
"display"
,
"none"
);
LineChart
.
filter
(
chart
.
filter
());
// console.log("lalaal moveChart.focus(chartfilt);")
})
.
on
(
"filtered"
,
function
(
chart
)
{
dc
.
events
.
trigger
(
function
()
{
var
chartfilt
=
chart
.
filter
()
console
.
log
(
"lalaal move chart"
,
chartfilt
)
// tricky part: identifying when the moveChart changes.
if
(
chartfilt
)
{
Push2Buffer
(
chart
.
filter
()
)
Push2Buffer
(
chart
filt
)
}
else
{
if
(
TheBuffer
)
{
Push2Buffer
(
false
)
...
...
static/lib/gargantext/Sources_dyna_chart_and_table.js
View file @
c71984ec
...
...
@@ -418,15 +418,14 @@ function Main_test( data , initial) {
// // .xUnits(d3.time.months)
.
renderlet
(
function
(
chart
)
{
chart
.
select
(
"g.y"
).
style
(
"display"
,
"none"
);
LineChart
.
filter
(
chart
.
filter
());
console
.
log
(
"lalaal moveChart.focus(chartfilt);"
)
})
.
on
(
"filtered"
,
function
(
chart
)
{
dc
.
events
.
trigger
(
function
()
{
var
chartfilt
=
chart
.
filter
()
console
.
log
(
"lalaal move chart"
,
chartfilt
)
// tricky part: identifying when the moveChart changes.
if
(
chartfilt
)
{
Push2Buffer
(
chart
.
filter
()
)
Push2Buffer
(
chart
filt
)
}
else
{
if
(
TheBuffer
)
{
Push2Buffer
(
false
)
...
...
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