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
4e518ff0
Commit
4e518ff0
authored
Jun 16, 2015
by
PkSM3
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[UPDATE] bis by title
parent
c5f3fa91
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
276 additions
and
229 deletions
+276
-229
Docs_dyna_chart_and_table.js
static/js/Docs_dyna_chart_and_table.js
+250
-196
NGrams_dyna_chart_and_table.js
static/js/NGrams_dyna_chart_and_table.js
+7
-9
corpus.html
templates/corpus.html
+15
-24
ngrams.html
templates/tests/ngrams.html
+4
-0
No files found.
static/js/Docs_dyna_chart_and_table.js
View file @
4e518ff0
This diff is collapsed.
Click to expand it.
static/js/NGrams_dyna_chart_and_table.js
View file @
4e518ff0
...
...
@@ -370,15 +370,18 @@ $("#Clean_All").click(function(){
});
$
(
"#Save_All"
).
click
(
function
(){
console
.
log
(
"click in save all 01"
)
var
sum__selected_elems
=
0
;
var
poubelle
=
[]
for
(
var
i
in
FlagsBuffer
)
if
(
Object
.
keys
(
FlagsBuffer
[
i
]).
length
==
0
)
poubelle
.
push
(
i
)
for
(
var
i
in
FlagsBuffer
)
{
if
(
Object
.
keys
(
FlagsBuffer
[
i
]).
length
==
0
)
poubelle
.
push
(
i
)
sum__selected_elems
+=
Object
.
keys
(
FlagsBuffer
[
i
]).
length
;
}
console
.
log
(
"click in save all 02"
)
for
(
var
i
in
poubelle
)
delete
FlagsBuffer
[
poubelle
[
i
]];
console
.
log
(
"click in save all 03, sum:"
+
sum__selected_elems
)
if
(
sum__selected_elems
>
0
)
{
console
.
log
(
""
)
console
.
log
(
"Do the ajax conexion with API and send this array to be processed:"
)
...
...
@@ -498,11 +501,6 @@ function Main_test( data , initial) {
oldest
=
Number
(
min_occ
);
latest
=
Number
(
max_occ
);
var
ndx
=
false
;
ndx
=
crossfilter
();
ndx
.
add
(
DistributionList
);
...
...
templates/corpus.html
View file @
4e518ff0
...
...
@@ -5,7 +5,7 @@
{% load staticfiles %}
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{% static "
css
/
bootstrap
.
css
"
%}"
>
<
link
rel=
"stylesheet"
type=
"text/css"
href=
"{% static "
js
/
bootstrap
/
bootstrap-select
.
min
.
css
"
%}"
>
<
!-- here goes import stylesheet js/bootstrap/bootstrap-multiselect.css, mais ca marche pas--
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{% static "
css
/
morris
.
css
"
%}"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{% static "
css
/
jquery
.
easy-pie-chart
.
css
"%}"
>
...
...
@@ -110,18 +110,7 @@ th a {
</div>
<div
id=
"collapseOne"
class=
"panel-collapse collapse no-transition"
role=
"tabpanel"
>
<div
class=
"panel-body"
>
<p
align=
"right"
>
<table
id=
"my-ajax-table"
class=
"table table-bordered"
>
<thead>
<!-- <th data-dynatable-column="id">ID</th> -->
<th
width=
"100px;"
data-dynatable-column=
"date"
>
Date
</th>
<th
data-dynatable-column=
"name"
>
Title
</th>
<th
data-dynatable-column=
"del"
data-dynatable-no-sort=
"true"
>
Trash
</th>
</thead>
<tbody>
</tbody>
</table>
</p>
<div
id=
"div-table"
></div>
<p
align=
"right"
>
<button
id=
"move2trash"
class=
"btn btn-primary btn-lg"
>
Trash It!
</button>
</p>
...
...
@@ -180,24 +169,26 @@ th a {
</div>
<div
id=
"
supmofos
"
>
<div
id=
"
filter_search"
style=
"visibility:hidden
"
>
<select
data-width=
"100px"
dir=
"ltr"
class=
"selectpicker"
>
<option
selected
>
All
</option>
<option>
Title
</option>
<option>
Date
</option>
<optgroup
label=
"Duplicates"
>
<option>
by DOI
</option>
<option>
by Title
</option>
</optgroup>
</select>
<select
id=
"example-single-optgroups"
onchange=
"SearchFilters(this);"
>
<!-- <optgroup label=""> -->
<option
id=
"filter_all"
value=
"filter_all"
>
All
</option>
<!-- <option id="filter_title" value="filter_title">Title</option> -->
<!-- <option id="filter_date" value="filter_date">Date</option> -->
<!-- </optgroup> -->
<!-- <optgroup label="Duplicates"> -->
<!-- <option value="filter_doi">By DOI</option> -->
<option
id=
"filter_dupl-titles"
value=
"filter_dupl-titles"
>
Duplicates by Title
</option>
<!-- </optgroup> -->
</select>
</div>
<script
type=
"text/javascript"
src=
"{% static "
js
/
jquery
/
jquery
.
min
.
js
"
%}"
></script>
<script
src=
"{% static "
js
/
charts
/
bootstrap
.
min
.
js
"
%}"
></script>
<
script
type=
"text/javascript"
src=
"{% static "
js
/
bootstrap
/
bootstrap-select
.
min
.
js
"
%}"
></script
>
<
!-- here goes import script js/bootstrap/bootstrap-multiselect.js, mais ca marche pas--
>
<script
type=
"text/javascript"
src=
"{% static "
js
/
jquery
/
jquery
.
dynatable
.
js
"
%}"
></script>
<!-- custom-lib for dynatable.js and dc.js -->
...
...
templates/tests/ngrams.html
View file @
4e518ff0
...
...
@@ -115,6 +115,10 @@ input[type=radio]:checked + label {
{% block content %}
<input
type=
"hidden"
id=
"list_id"
value=
"{{ list_id }}"
></input>
<div
class=
"container theme-showcase"
role=
"main"
>
<div
class=
"jumbotron"
>
{% if project %}
...
...
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