d495e9dd0b1aed80c6aa7d25567f8b050dac69fe
[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 'accueil_chercheur': 6,
8 'nombre_par_page_actualite': 10,
9 'resultats_par_page': 8, # pas changeable a cause de google
10 'accueil_evenement': 10,
11 'engin_recherche': 'sep',
12 'google_xml': "http://www.savoirsenpartage.auf.org/recherche.xml?%s",
13 'calendrier': 'http://davin:davin@cal.ro.auf.org/caldav.php/davin/test/',
14 'calendrier_publique': 'http://cal.ro.auf.org/caldav.php/davin/test/',
15 }
16
17 #####
18 # Meta fields
19 SERVER = 'server'
20 TITLE = 'title'
21 ALT_TITLE = 'alt_title'
22 CREATOR = 'creator'
23 CONTRIBUTOR = 'contributor'
24 DESCRIPTION = 'description'
25 ABSTRACT = 'abstract'
26 SUBJECT = 'subject'
27 PUBLISHER = 'publisher'
28 DATE_CREATION = 'creation'
29 DATE_ISSUED = 'issued'
30 DATE_MODIFIED = 'modified'
31 TYPE = 'type'
32 FORMAT = 'format'
33 IDENTIFIER = 'identifier'
34 ISBN = 'isbn'
35 URI = 'uri'
36 SOURCE = 'source'
37 LANGUAGE = 'language'
38 ORIG_LANG = 'orig_lang'
39
40
41 META = {SERVER: {'type': 'text'},
42 TITLE: {'type': 'text', 'text_search': True},
43 ALT_TITLE: {'type': 'text', 'text_search': True},
44 CREATOR: {'type': 'array', 'text_search': True},
45 CONTRIBUTOR: {'type': 'array', 'text_search': True},
46 DESCRIPTION: {'type': 'text', 'text_search': True},
47 ABSTRACT: {'type': 'text', 'text_search': True},
48 SUBJECT: {'type': 'array', 'text_search': True},
49 PUBLISHER: {'type': 'array'},
50 DATE_CREATION: {'type': 'date'},
51 DATE_ISSUED: {'type': 'date'},
52 DATE_MODIFIED: {'type': 'date'},
53 TYPE: {'type': 'array'},
54 FORMAT: {'type': 'array'},
55 IDENTIFIER: {'type': 'text'},
56 ISBN: {'type': 'text'},
57 URI: {'type': 'text', 'unique': True},
58 SOURCE: {'type': 'text'},
59 LANGUAGE: {'type': 'array'},
60 ORIG_LANG: {'type': 'array'}
61 }