| author | cavaliet |
| Mon, 07 Jul 2014 17:23:23 +0200 | |
| changeset 131 | b39513a56cd0 |
| parent 112 | 14653baf4f6b |
| permissions | -rwxr-xr-x |
|
74
901463f9b11c
add headers for public repository release
ymh <ymh.work@gmail.com>
parents:
61
diff
changeset
|
1 |
{# |
|
901463f9b11c
add headers for public repository release
ymh <ymh.work@gmail.com>
parents:
61
diff
changeset
|
2 |
This file is part of the WikiTagBundle package. |
|
901463f9b11c
add headers for public repository release
ymh <ymh.work@gmail.com>
parents:
61
diff
changeset
|
3 |
|
|
901463f9b11c
add headers for public repository release
ymh <ymh.work@gmail.com>
parents:
61
diff
changeset
|
4 |
(c) IRI <http://www.iri.centrepompidou.fr/> |
|
901463f9b11c
add headers for public repository release
ymh <ymh.work@gmail.com>
parents:
61
diff
changeset
|
5 |
|
|
901463f9b11c
add headers for public repository release
ymh <ymh.work@gmail.com>
parents:
61
diff
changeset
|
6 |
For the full copyright and license information, please view the LICENSE |
|
901463f9b11c
add headers for public repository release
ymh <ymh.work@gmail.com>
parents:
61
diff
changeset
|
7 |
file that was distributed with this source code. |
|
901463f9b11c
add headers for public repository release
ymh <ymh.work@gmail.com>
parents:
61
diff
changeset
|
8 |
#} |
| 2 | 9 |
{# partial display to add the needed Javascript #} |
10 |
<script type="text/javascript" src="{{ asset('bundles/wikitag/js/jquery.min.js') }}" ></script> |
|
11 |
<script type="text/javascript" src="{{ asset('bundles/wikitag/js/jquery.qtip.min.js') }}" ></script> |
|
12 |
<script type="text/javascript" src="{{ asset('bundles/wikitag/js/jquery.validate.js') }}" ></script> |
|
13 |
<script type="text/javascript" src="{{ asset('bundles/wikitag/js/jquery.textchange.min.js') }}" ></script> |
|
14 |
<script type="text/javascript" src="{{ asset('bundles/wikitag/js/jquery.tablednd_0_5.js') }}"></script> |
|
15 |
<script type="text/javascript" src="{{ asset('bundles/wikitag/js/jquery-ui.min.js') }}"></script> |
|
16 |
<script type="text/javascript" src="{{ asset('bundles/wikitag/js/jquery.jeditable.js') }}"></script> |
|
|
53
22377c9e2eae
First step of column management in document tag list. Little debug on js for move up down.
cavaliet
parents:
33
diff
changeset
|
17 |
<script type="text/javascript" src="{{ asset('bundles/wikitag/js/jquery.clickmenu.js') }}"></script> |
|
22377c9e2eae
First step of column management in document tag list. Little debug on js for move up down.
cavaliet
parents:
33
diff
changeset
|
18 |
<script type="text/javascript" src="{{ asset('bundles/wikitag/js/jquery.cookie.js') }}"></script> |
|
54
ec51b9f4695f
Upgrade column management with possibility to return to the initial columns. Little debug in all tag list.
cavaliet
parents:
53
diff
changeset
|
19 |
<script type="text/javascript" src="{{ asset('bundles/wikitag/js/jquery.columnmanager.iri.js') }}"></script> |
| 2 | 20 |
<script type="text/javascript" src="{{ asset('bundles/wikitag/js/wikiTag.js') }}" ></script> |
21 |
<script type="text/javascript"> |
|
22 |
||
|
112
14653baf4f6b
first change for wikipedia and dbpedia lang configuration
cavaliet
parents:
108
diff
changeset
|
23 |
var global_csrf_token = '{# global_csrf_token #}'; |
|
14653baf4f6b
first change for wikipedia and dbpedia lang configuration
cavaliet
parents:
108
diff
changeset
|
24 |
var wikipedia_api_url = '{{ wikipedia_api_url }}'; |
| 2 | 25 |
var static_url = "{{ asset('bundles/wikitag/') }}"; |
26 |
var tag_up_down_url = "{{ url('wikitag_tag_up_down') }}"; |
|
27 |
var remove_tag_from_list_url = "{{ url('wikitag_remove_tag_from_list') }}"; |
|
|
22
99c15cfe420b
Add ModifyTag from tag list. Add Reset Wikipedia info from tag list. Enable boolean from addJavascript controller/template to switch from list or document context.
cavaliet
parents:
2
diff
changeset
|
28 |
{% if tags_list==true %} |
|
99c15cfe420b
Add ModifyTag from tag list. Add Reset Wikipedia info from tag list. Enable boolean from addJavascript controller/template to switch from list or document context.
cavaliet
parents:
2
diff
changeset
|
29 |
var modify_tag_url = "{{ url('wikitag_modify_tag_in_list') }}"; |
|
99c15cfe420b
Add ModifyTag from tag list. Add Reset Wikipedia info from tag list. Enable boolean from addJavascript controller/template to switch from list or document context.
cavaliet
parents:
2
diff
changeset
|
30 |
{% else %} |
| 2 | 31 |
var modify_tag_url = "{{ url('wikitag_modify_documenttag') }}"; |
|
22
99c15cfe420b
Add ModifyTag from tag list. Add Reset Wikipedia info from tag list. Enable boolean from addJavascript controller/template to switch from list or document context.
cavaliet
parents:
2
diff
changeset
|
32 |
{% endif %} |
| 2 | 33 |
var reset_wp_info_url = "{{ url('wikitag_reset_wp_info') }}"; |
| 61 | 34 |
var relaunch_wp_search_url = "{{ url('wikitag_relaunch_wp_search') }}"; |
| 2 | 35 |
var reorder_tag_datasheet_url = "{{ url('wikitag_reorder_tag_document') }}"; |
36 |
var add_tag_url = "{{ url('wikitag_add_tag') }}"; |
|
37 |
var remove_wp_link_url = "{{ url('wikitag_remove_wp_link') }}"; |
|
38 |
var update_tag_alias_url = "{{ url('wikitag_update_tag_alias') }}"; |
|
39 |
var update_tag_category_url = "{{ url('wikitag_update_tag_category') }}"; |
|
40 |
var categories_list = '{{ categories|raw }}'; |
|
|
95
5d10273e892a
update configuration for document_list_profile and column names
cavaliet
parents:
94
diff
changeset
|
41 |
|
|
53
22377c9e2eae
First step of column management in document tag list. Little debug on js for move up down.
cavaliet
parents:
33
diff
changeset
|
42 |
// We prepare the list of the columns to hide |
|
22377c9e2eae
First step of column management in document tag list. Little debug on js for move up down.
cavaliet
parents:
33
diff
changeset
|
43 |
var columsToHide = []; |
| 94 | 44 |
var notInList = []; |
45 |
|
|
46 |
{% if columns['order'].visibility is defined %} |
|
47 |
{% if columns['order'].visibility==2 %}columsToHide.push(1);{% endif %} |
|
48 |
{% if columns['order'].visibility==0 %}columsToHide.push(1);notInList.push(1);{% endif %} |
|
49 |
{% else %}columsToHide.push(1);notInList.push(1);{% endif %} |
|
50 |
{% if columns['move_up_down'].visibility is defined %} |
|
51 |
{% if columns['move_up_down'].visibility==2 %}columsToHide.push(2);{% endif %} |
|
52 |
{% if columns['move_up_down'].visibility==0 %}columsToHide.push(2);notInList.push(2);{% endif %} |
|
53 |
{% else %}columsToHide.push(2);notInList.push(2);{% endif %} |
|
54 |
{% if columns['id'].visibility is defined %} |
|
55 |
{% if columns['id'].visibility==2 %}columsToHide.push(3);{% endif %} |
|
56 |
{% if columns['id'].visibility==0 %}columsToHide.push(3);notInList.push(3);{% endif %} |
|
57 |
{% else %}columsToHide.push(3);notInList.push(3);{% endif %} |
|
58 |
{% if columns['label'].visibility is defined %} |
|
59 |
{% if columns['label'].visibility==2 %}columsToHide.push(4);{% endif %} |
|
60 |
{% if columns['label'].visibility==0 %}columsToHide.push(4);notInList.push(4);{% endif %} |
|
61 |
{% else %}columsToHide.push(4);notInList.push(4);{% endif %} |
|
62 |
{% if columns['wikipedia_link'].visibility is defined %} |
|
63 |
{% if columns['wikipedia_link'].visibility==2 %}columsToHide.push(5);{% endif %} |
|
64 |
{% if columns['wikipedia_link'].visibility==0 %}columsToHide.push(5);notInList.push(5);{% endif %} |
|
65 |
{% else %}columsToHide.push(5);notInList.push(5);{% endif %} |
|
66 |
{% if columns['wikipedia_permalink'].visibility is defined %} |
|
67 |
{% if columns['wikipedia_permalink'].visibility==2 %}columsToHide.push(6);{% endif %} |
|
68 |
{% if columns['wikipedia_permalink'].visibility==0 %}columsToHide.push(6);notInList.push(6);{% endif %} |
|
69 |
{% else %}columsToHide.push(6);notInList.push(6);{% endif %} |
|
70 |
{% if columns['dbpedia_link'].visibility is defined %} |
|
71 |
{% if columns['dbpedia_link'].visibility==2 %}columsToHide.push(7);{% endif %} |
|
72 |
{% if columns['dbpedia_link'].visibility==0 %}columsToHide.push(7);notInList.push(7);{% endif %} |
|
73 |
{% else %}columsToHide.push(7);notInList.push(7);{% endif %} |
|
74 |
{% if columns['category'].visibility is defined %} |
|
75 |
{% if columns['category'].visibility==2 %}columsToHide.push(8);{% endif %} |
|
76 |
{% if columns['category'].visibility==0 %}columsToHide.push(8);notInList.push(8);{% endif %} |
|
77 |
{% else %}columsToHide.push(8);notInList.push(8);{% endif %} |
|
78 |
{% if columns['remove_wikipedia_link'].visibility is defined %} |
|
79 |
{% if columns['remove_wikipedia_link'].visibility==2 %}columsToHide.push(9);{% endif %} |
|
80 |
{% if columns['remove_wikipedia_link'].visibility==0 %}columsToHide.push(9);notInList.push(9);{% endif %} |
|
81 |
{% else %}columsToHide.push(9);notInList.push(9);{% endif %} |
|
82 |
{% if columns['alias'].visibility is defined %} |
|
83 |
{% if columns['alias'].visibility==2 %}columsToHide.push(10);{% endif %} |
|
84 |
{% if columns['alias'].visibility==0 %}columsToHide.push(10);notInList.push(10);{% endif %} |
|
85 |
{% else %}columsToHide.push(10);notInList.push(10);{% endif %} |
|
86 |
{% if columns['remove_tag_from_list'].visibility is defined %} |
|
87 |
{% if columns['remove_tag_from_list'].visibility==2 %}columsToHide.push(11);{% endif %} |
|
88 |
{% if columns['remove_tag_from_list'].visibility==0 %}columsToHide.push(11);notInList.push(11);{% endif %} |
|
89 |
{% else %}columsToHide.push(11);notInList.push(11);{% endif %} |
|
90 |
{% if columns['alternative_label'].visibility is defined %} |
|
91 |
{% if columns['alternative_label'].visibility==2 %}columsToHide.push(12);{% endif %} |
|
92 |
{% if columns['alternative_label'].visibility==0 %}columsToHide.push(12);notInList.push(12);{% endif %} |
|
93 |
{% else %}columsToHide.push(12);notInList.push(12);{% endif %} |
|
94 |
{% if columns['alternative_wikipedia_url'].visibility is defined %} |
|
95 |
{% if columns['alternative_wikipedia_url'].visibility==2 %}columsToHide.push(13);{% endif %} |
|
96 |
{% if columns['alternative_wikipedia_url'].visibility==0 %}columsToHide.push(13);notInList.push(13);{% endif %} |
|
97 |
{% else %}columsToHide.push(13);notInList.push(13);{% endif %} |
|
| 108 | 98 |
|
99 |
{% if columns==null %}columsToHide = [];notInList = [];{% endif %} |
|
100 |
||
| 94 | 101 |
notInList.push(14); |
| 2 | 102 |
|
103 |
$(document).ready(function(){ |
|
|
98
b307fcd1435a
readonly possibility for tag table in document page
cavaliet
parents:
95
diff
changeset
|
104 |
{% if read_only==true %} |
|
b307fcd1435a
readonly possibility for tag table in document page
cavaliet
parents:
95
diff
changeset
|
105 |
// Hide/show column management. |
|
b307fcd1435a
readonly possibility for tag table in document page
cavaliet
parents:
95
diff
changeset
|
106 |
$('#wikitag_table').columnManager({listTargetID:'wikitag_ul_target', onClass: 'wikitag_advon', offClass: 'wikitag_advoff', hideInList: notInList, saveState: true, colsHidden:columsToHide }); |
|
b307fcd1435a
readonly possibility for tag table in document page
cavaliet
parents:
95
diff
changeset
|
107 |
//create the clickmenu from the target |
|
b307fcd1435a
readonly possibility for tag table in document page
cavaliet
parents:
95
diff
changeset
|
108 |
$('#wikitag_ulSelectColumn').clickMenu({onClick: function(){}}); |
|
b307fcd1435a
readonly possibility for tag table in document page
cavaliet
parents:
95
diff
changeset
|
109 |
{% else %} |
|
b307fcd1435a
readonly possibility for tag table in document page
cavaliet
parents:
95
diff
changeset
|
110 |
wikitag_init_tags_events(); |
|
31
b910b4f7485f
First step of context menu to add tag by selecting a part of text in the page.
cavaliet
parents:
22
diff
changeset
|
111 |
wikitag_init_datasheet_events(); |
|
98
b307fcd1435a
readonly possibility for tag table in document page
cavaliet
parents:
95
diff
changeset
|
112 |
{% endif %} |
| 2 | 113 |
}); |
114 |
</script> |