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