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