|
1
|
1 |
from django.conf.urls.defaults import * |
|
|
2 |
from ldt.management import test_ldt |
|
|
3 |
|
|
|
4 |
# Uncomment the next two lines to enable the admin: |
|
|
5 |
# from django.contrib import admin |
|
|
6 |
# admin.autodiscover() |
|
|
7 |
|
|
|
8 |
urlpatterns = patterns('ldt.ldt_utils', |
|
|
9 |
url(r'^searchInit/(?P<field>.*)/(?P<query>.*)$', 'views.searchInit'), |
|
|
10 |
url(r'^searchForm/$', 'views.searchForm'), |
|
|
11 |
url(r'^search/$', 'views.searchIndex'), |
|
|
12 |
url(r'^search/(?P<field>.*)/(?P<query>.*)$', 'views.searchIndexGet'), |
|
|
13 |
url(r'^searchLdt/(?P<field>.*)/(?P<query>.*)$', 'views.searchLdt'), |
|
|
14 |
url(r'^searchSeg/(?P<field>.*)/(?P<query>.*)$', 'views.searchSegments'), |
|
|
15 |
url(r'^index/(?P<url>.*)$', 'views.index'), |
|
|
16 |
url(r'^init/(?P<method>.*)/(?P<url>.*)$', 'views.init', name='ldt_init'), |
|
|
17 |
url(r'^ldt/(?P<url>.*)$', 'views.ldt'), |
|
|
18 |
url(r'^search/loading/$', 'views.loading'), |
|
|
19 |
url(r'^create/(?P<iri_id>.*)$', 'views.create_project'), |
|
|
20 |
url(r'^copy/(?P<ldt_id>.*)$', 'views.copy_project'), |
|
|
21 |
url(r'^update/(?P<ldt_id>.*)$', 'views.update_project'), |
|
|
22 |
url(r'^cljson/id/(?P<id>.*)$', 'views.project_json_id'), |
|
|
23 |
url(r'^cljson/externalid/(?P<id>.*)$', 'views.project_json_externalid'), |
|
|
24 |
url(r'^rdf/id/(?P<ldt_id>.*)$', 'views.project_annotations_rdf'), |
|
|
25 |
url(r'^/?$', "views.workspace", name="root-view"), |
|
|
26 |
url(r'^filterprojects/_(?P<filter>[\w\%\_\-\+]*?)/(?P<is_owner>true|false)/(?P<status>\d)$', "views.projectsfilter", ), |
|
|
27 |
url(r'^filtercontents/_(?P<filter>[\w\%\_\-\+]*?)/$', "views.contentsfilter", ), |
|
|
28 |
(r'^embedpopup/?$', "views.popup_embed"), |
|
|
29 |
) |
|
|
30 |
|
|
|
31 |
urlpatterns += patterns('', |
|
|
32 |
url('^jsi18n','django.views.i18n.javascript_catalog', name='jsi18n'), |
|
|
33 |
) |
|
|
34 |
|
|
|
35 |
|
|
|
36 |
if test_ldt(): |
|
|
37 |
urlpatterns += patterns('ldt.ldt_utils', |
|
|
38 |
url(r'^space/content/$', 'views.list_content'), |
|
|
39 |
url(r'^space/content/create/$', 'views.write_content'), |
|
|
40 |
url(r'^space/content/update/(?P<iri_id>[\w-]+)$', 'views.write_content'), |
|
|
41 |
url(r'^space/ldt/$', 'views.list_ldt'), |
|
|
42 |
url(r'^space/ldt/indexproject/(?P<id>.*)$', 'views.indexProject'), |
|
|
43 |
url(r'^space/ldt/init/(?P<method>.*)/(?P<url>.+)$', 'views.init', name='space_ldt_init'), |
|
|
44 |
url(r'^space/ldt/project/(?P<id>.*)$', 'views.ldtProject'), |
|
|
45 |
url(r'^space/ldt/create/$', 'views.create_ldt_view'), |
|
|
46 |
url(r'^space/ldt/created_done/$', 'views.created_ldt'), |
|
|
47 |
url(r'^space/ldt/save/$', 'views.save_ldtProject'), |
|
|
48 |
url(r'^space/ldt/publish/(?P<id>[\w-]*)(?:/(?P<redirect>true|false))?$', 'views.publish'), |
|
|
49 |
url(r'^space/ldt/unpublish/(?P<id>[\w-]*)(?:/(?P<redirect>true|false))?$', 'views.unpublish'), |
|
|
50 |
|
|
|
51 |
) |