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
a77ea0cf
Commit
a77ea0cf
authored
Mar 31, 2016
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update/delete possible for terms table (TODO: groupings)
parent
e8bde84e
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
303 additions
and
104 deletions
+303
-104
db.py
gargantext/util/db.py
+1
-2
ngramlists.py
gargantext/views/api/ngramlists.py
+148
-27
urls.py
gargantext/views/api/urls.py
+8
-6
NGrams_dyna_chart_and_table.js
static/js/gargantext/NGrams_dyna_chart_and_table.js
+139
-67
terms.html
templates/pages/corpora/terms.html
+7
-2
No files found.
gargantext/util/db.py
View file @
a77ea0cf
...
...
@@ -35,8 +35,7 @@ from sqlalchemy.ext.mutable import MutableDict, MutableList
# useful for queries
from
sqlalchemy.orm
import
aliased
from
sqlalchemy
import
func
from
sqlalchemy
import
func
,
desc
# bulk insertions
...
...
gargantext/views/api/ngramlists.py
View file @
a77ea0cf
This diff is collapsed.
Click to expand it.
gargantext/views/api/urls.py
View file @
a77ea0cf
...
...
@@ -10,16 +10,18 @@ urlpatterns = [
url
(
r'^nodes/(\d+)/facets$'
,
nodes
.
CorpusFacet
.
as_view
()),
# get a list of ngram_ids or ngram_infos by list_id
#
# url(r'^ngramlists/(\d+)$', ngramlists.List.as_view()),
# add or remove ngram from a list
# ex: add <=> PUT ngramlists/change?list=42&ngrams=1,2
# rm <=> DEL ngramlists/change?list=42&ngrams=1,2
url
(
r'^ngramlists/change$'
,
ngramlists
.
ListChange
.
as_view
()),
# entire combination of lists from a corpus
#
get
entire combination of lists from a corpus
# (or any combination of lists that go together :
# - a mainlist
# - an optional stoplist
# - an optional maplist
# - an optional grouplist
# aka lexical model
# - an optional grouplist)
url
(
r'^ngramlists/family$'
,
ngramlists
.
ListFamily
.
as_view
()),
]
static/js/gargantext/NGrams_dyna_chart_and_table.js
View file @
a77ea0cf
This diff is collapsed.
Click to expand it.
templates/pages/corpora/terms.html
View file @
a77ea0cf
...
...
@@ -22,7 +22,7 @@
<div
class=
"row"
>
<div
id=
"monthly-move-chart"
>
<center>
Select a
time
range in the chart with blue bars to zoom in
Select a
score/frequency
range in the chart with blue bars to zoom in
<p
align=
"center"
>
<a
class=
"btn btn-xs btn-default"
role=
"button"
href=
"/chart/corpus/{{ corpus.id }}/data.csv"
>
Save
</a>
<a
class=
"btn btn-xs btn-default"
href=
"javascript:volumeChart.filterAll();dc.redrawAll();"
>
Reset
</a></p>
...
...
@@ -41,7 +41,12 @@
<br>
</div>
<input
type=
"hidden"
id=
"list_id"
value=
"{{ list_id }}"
></input>
<!-- (values set by js) caching our DB ids (handy for list update commands) -->
<input
type=
"hidden"
id=
"mainlist_id"
value=
""
></input>
<input
type=
"hidden"
id=
"maplist_id"
value=
""
></input>
<input
type=
"hidden"
id=
"stoplist_id"
value=
""
></input>
<input
type=
"hidden"
id=
"groups_id"
value=
""
></input>
<input
type=
"hidden"
id=
"scores_id"
value=
""
></input>
<div
class=
"row"
>
<div
class=
"panel panel-default"
>
...
...
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