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
0e22345f
Commit
0e22345f
authored
May 30, 2016
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
annotations: rename occurrences to occs in transmitted json to gain bytes
parent
6426fb90
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
8 deletions
+8
-8
highlight.js
annotations/static/annotations/highlight.js
+1
-1
http.js
annotations/static/annotations/http.js
+3
-3
keyword_tpl.html
annotations/static/annotations/keyword_tpl.html
+1
-1
ngramlist.js
annotations/static/annotations/ngramlist.js
+1
-1
views.py
annotations/views.py
+2
-2
No files found.
annotations/static/annotations/highlight.js
View file @
0e22345f
...
@@ -385,7 +385,7 @@
...
@@ -385,7 +385,7 @@
// =============
// =============
// text ------- "Background Few previous studies have examined
// text ------- "Background Few previous studies have examined
// non-wealth-based inequalities etc etc etc"
// non-wealth-based inequalities etc etc etc"
// ngram ----- {uuid: 1846, occ
urrence
s: 1, list_id: 3689,
// ngram ----- {uuid: 1846, occs: 1, list_id: 3689,
// text: "previous studies", listName: "MAINLIST"}
// text: "previous studies", listName: "MAINLIST"}
// template --- "<span ng-controller='TextSelectionController'
// template --- "<span ng-controller='TextSelectionController'
// ng-click='onClick($event)'
// ng-click='onClick($event)'
...
...
annotations/static/annotations/http.js
View file @
0e22345f
...
@@ -64,9 +64,9 @@
...
@@ -64,9 +64,9 @@
* --------
* --------
* "554": {
* "554": {
* "lists": { "558": "StopList", "564": "MiamList", "565": "MapList" }
* "lists": { "558": "StopList", "564": "MiamList", "565": "MapList" }
* "556": [{ "uuid": 2368, "occ
urrence
s": 1.0, "text": "idea", "list_id": 564 },
* "556": [{ "uuid": 2368, "occs": 1.0, "text": "idea", "list_id": 564 },
* { "uuid": 5031, "occ
urrence
s": 1.0, "text": "indications", "list_id": 564},
* { "uuid": 5031, "occs": 1.0, "text": "indications", "list_id": 564},
* { "uuid": 5015, "occ
urrence
s": 3.0, "text": "star", "list_id": 565 },
* { "uuid": 5015, "occs": 3.0, "text": "star", "list_id": 565 },
* ... ],
* ... ],
* }
* }
*/
*/
...
...
annotations/static/annotations/keyword_tpl.html
View file @
0e22345f
<span
ng-click=
'onDeleteClick()'
class=
"delete-keyword"
>
×
</span>
<span
ng-click=
'onDeleteClick()'
class=
"delete-keyword"
>
×
</span>
<span
data-toggle=
"tooltip"
class=
"keyword-text {[{keyword.listName}]}"
>
{[{keyword.text}]}
</span>
<span
data-toggle=
"tooltip"
class=
"keyword-text {[{keyword.listName}]}"
>
{[{keyword.text}]}
</span>
<span
class=
"occurrences"
data-keyword-id=
"{[{keyword.uuid}]}"
>
{[{keyword.occ
urrence
s}]}
</span>
<span
class=
"occurrences"
data-keyword-id=
"{[{keyword.uuid}]}"
>
{[{keyword.occs}]}
</span>
annotations/static/annotations/ngramlist.js
View file @
0e22345f
...
@@ -159,7 +159,7 @@
...
@@ -159,7 +159,7 @@
// £TEST locally check if already in annotations NodeNgrams ------
// £TEST locally check if already in annotations NodeNgrams ------
// $rootScope.annotations = array of ngram objects like:
// $rootScope.annotations = array of ngram objects like:
// {"list_id":805,"occ
urrence
s":2,"uuid":9386,"text":"petit échantillon"}
// {"list_id":805,"occs":2,"uuid":9386,"text":"petit échantillon"}
console
.
log
(
'looking for "'
+
value
+
'" in list:'
+
listId
)
console
.
log
(
'looking for "'
+
value
+
'" in list:'
+
listId
)
var
already_in_list
=
false
;
var
already_in_list
=
false
;
...
...
annotations/views.py
View file @
0e22345f
...
@@ -71,8 +71,8 @@ class NgramList(APIView):
...
@@ -71,8 +71,8 @@ class NgramList(APIView):
[
[
{
'uuid'
:
ngram_id
,
{
'uuid'
:
ngram_id
,
'text'
:
ngram_text
,
'text'
:
ngram_text
,
'occ
urrence
s'
:
ngram_occurrences
,
'occs'
:
ngram_occurrences
,
'li
st_i
d'
:
list_id
,}
'lid'
:
list_id
,}
for
(
ngram_id
,
ngram_text
,
ngram_occurrences
,
list_id
)
in
doc_ngram_list
for
(
ngram_id
,
ngram_text
,
ngram_occurrences
,
list_id
)
in
doc_ngram_list
],
],
'lists'
:
lists
'lists'
:
lists
...
...
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