conf recherche google in media
[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 'google_xml': SITE_ROOT_URL+MEDIA_URL+"sites/google/recherche.xml?%s",
17 'calendrier_publique': 'https://sep-caldav.auf.org/caldav.php/sep/home',
18 }
19
20 #####
21 # Meta fields
22 SERVER = 'server'
23 LAST_CHECKSUM = 'last_checksum'
24 LAST_UPDATE = 'last_update'
25 TITLE = 'title'
26 ALT_TITLE = 'alt_title'
27 CREATOR = 'creator'
28 CONTRIBUTOR = 'contributor'
29 DESCRIPTION = 'description'
30 ABSTRACT = 'abstract'
31 SUBJECT = 'subject'
32 PUBLISHER = 'publisher'
33 DATE_CREATION = 'creation'
34 DATE_ISSUED = 'issued'
35 DATE_MODIFIED = 'modified'
36 TYPE = 'type'
37 FORMAT = 'format'
38 IDENTIFIER = 'identifier'
39 ISBN = 'isbn'
40 URI = 'uri'
41 SOURCE = 'source'
42 LANGUAGE = 'language'
43 ORIG_LANG = 'orig_lang'
44
45
46 META = {SERVER: {'type': 'text'},
47 TITLE: {'type': 'text', 'text_search': True},
48 ALT_TITLE: {'type': 'text', 'text_search': True},
49 CREATOR: {'type': 'array', 'text_search': True},
50 CONTRIBUTOR: {'type': 'array', 'text_search': True},
51 DESCRIPTION: {'type': 'text', 'text_search': True},
52 ABSTRACT: {'type': 'text', 'text_search': True},
53 SUBJECT: {'type': 'array', 'text_search': True},
54 PUBLISHER: {'type': 'array'},
55 DATE_CREATION: {'type': 'date'},
56 DATE_ISSUED: {'type': 'date'},
57 DATE_MODIFIED: {'type': 'date'},
58 TYPE: {'type': 'array'},
59 FORMAT: {'type': 'array'},
60 IDENTIFIER: {'type': 'text'},
61 ISBN: {'type': 'text'},
62 URI: {'type': 'text', 'unique': True},
63 SOURCE: {'type': 'text'},
64 LANGUAGE: {'type': 'array'},
65 ORIG_LANG: {'type': 'array'}
66 }