Ajouté les instructions pour patcher les permissions des eggs
[auf_savoirs_en_partage_django.git] / auf_savoirs_en_partage / savoirs / globals.py
1 #!/usr/bin/env python
2 # -*- encoding: utf-8 -*-
3
4 from settings import SITE_ROOT_URL, MEDIA_URL
5
6 configuration = {
7 'max_actualite': 100,
8 'accueil_actualite': 4,
9 'accueil_chercheur': 10,
10 'accueil_evenement': 4,
11 'accueil_ressource': 4,
12 'accueil_sites': 4,
13 'nombre_par_page_actualite': 10,
14 'resultats_par_page': 8, # pas changeable a cause de google
15 'engin_recherche': 'sep',
16 'calendrier_publique': 'https://sep-caldav.auf.org/caldav.php/sep/home',
17 }
18
19 #####
20 # Meta fields
21 SERVER = 'server'
22 LAST_CHECKSUM = 'last_checksum'
23 LAST_UPDATE = 'last_update'
24 TITLE = 'title'
25 ALT_TITLE = 'alt_title'
26 CREATOR = 'creator'
27 CONTRIBUTOR = 'contributor'
28 DESCRIPTION = 'description'
29 ABSTRACT = 'abstract'
30 SUBJECT = 'subject'
31 PUBLISHER = 'publisher'
32 DATE_CREATION = 'creation'
33 DATE_ISSUED = 'issued'
34 DATE_MODIFIED = 'modified'
35 TYPE = 'type'
36 FORMAT = 'format'
37 IDENTIFIER = 'identifier'
38 ISBN = 'isbn'
39 URI = 'uri'
40 SOURCE = 'source'
41 LANGUAGE = 'language'
42 ORIG_LANG = 'orig_lang'
43
44
45 META = {SERVER: {'type': 'text'},
46 TITLE: {'type': 'array', 'text_search': True},
47 ALT_TITLE: {'type': 'text', 'text_search': True},
48 CREATOR: {'type': 'array', 'text_search': True},
49 CONTRIBUTOR: {'type': 'array', 'text_search': True},
50 DESCRIPTION: {'type': 'text', 'text_search': True},
51 ABSTRACT: {'type': 'text', 'text_search': True},
52 SUBJECT: {'type': 'array', 'text_search': True},
53 PUBLISHER: {'type': 'array'},
54 DATE_CREATION: {'type': 'date'},
55 DATE_ISSUED: {'type': 'date'},
56 DATE_MODIFIED: {'type': 'date'},
57 TYPE: {'type': 'array'},
58 FORMAT: {'type': 'array'},
59 IDENTIFIER: {'type': 'text'},
60 ISBN: {'type': 'text'},
61 URI: {'type': 'text', 'unique': True},
62 SOURCE: {'type': 'text'},
63 LANGUAGE: {'type': 'array'},
64 ORIG_LANG: {'type': 'array'}
65 }