d6b144d8ec4a791fb5fdac359b69979a9edf23f4
[auf_savoirs_en_partage_django.git] / auf_savoirs_en_partage / savoirs / globals.py
1 #!/usr/bin/env python
2 # -*- encoding: utf-8 -*-
3
4 configuration = {
5 'max_actualite': 100,
6 'accueil_actualite': 5,
7 'nombre_par_page_actualite': 10,
8 'resultats_par_page': 8, # pas changeable a cause de google
9 'accueil_evenement': 10,
10 'engin_recherche': 'sep',
11 'google_xml': "http://www.savoirsenpartage.auf.org/recherche.xml?%s",
12 'calendrier': 'http://davin:davin@cal.ro.auf.org/caldav.php/davin/test/',
13 'calendrier_publique': 'http://cal.ro.auf.org/caldav.php/davin/test/',
14 }
15
16 #####
17 # Meta fields
18 TITLE = 'title'
19 ALT_TITLE = 'alt_title'
20 CREATOR = 'creator'
21 CONTRIBUTOR = 'contributor'
22 DESCRIPTION = 'description'
23 ABSTRACT = 'abstract'
24 SUBJECT = 'subject'
25 PUBLISHER = 'publisher'
26 DATE_CREATION = 'creation'
27 DATE_ISSUED = 'issued'
28 DATE_MODIFIED = 'modified'
29 TYPE = 'type'
30 FORMAT = 'format'
31 IDENTIFIER = 'identifier'
32 ISBN = 'isbn'
33 URI = 'uri'
34 SOURCE = 'source'
35 LANGUAGE = 'language'
36 ORIG_LANG = 'orig_lang'
37
38
39 META = {TITLE: {'type': 'text', 'text_search': True},
40 ALT_TITLE: {'type': 'text', 'text_search': True},
41 CREATOR: {'type': 'array', 'text_search': True},
42 CONTRIBUTOR: {'type': 'array', 'text_search': True},
43 DESCRIPTION: {'type': 'text', 'text_search': True},
44 ABSTRACT: {'type': 'text', 'text_search': True},
45 SUBJECT: {'type': 'array', 'text_search': True},
46 PUBLISHER: {'type': 'array'},
47 DATE_CREATION: {'type': 'date'},
48 DATE_ISSUED: {'type': 'date'},
49 DATE_MODIFIED: {'type': 'date'},
50 TYPE: {'type': 'array'},
51 FORMAT: {'type': 'array'},
52 IDENTIFIER: {'type': 'text'},
53 ISBN: {'type': 'text'},
54 URI: {'type': 'text', 'unique': True},
55 SOURCE: {'type': 'text'},
56 LANGUAGE: {'type': 'array'},
57 ORIG_LANG: {'type': 'array'}
58 }