conf recherche google in media
[auf_savoirs_en_partage_django.git] / auf_savoirs_en_partage / savoirs / globals.py
CommitLineData
7cf64fde
CR
1#!/usr/bin/env python
2# -*- encoding: utf-8 -*-
3
ab114095 4from settings import SITE_ROOT_URL, MEDIA_URL
5
7cf64fde
CR
6configuration = {
7 'max_actualite': 100,
c4c5de1b 8 'accueil_actualite': 4,
91e0aefb 9 'accueil_chercheur': 10,
c4c5de1b 10 'accueil_evenement': 4,
91e0aefb 11 'accueil_ressource': 4,
12 'accueil_sites': 4,
7cf64fde
CR
13 'nombre_par_page_actualite': 10,
14 'resultats_par_page': 8, # pas changeable a cause de google
7cf64fde 15 'engin_recherche': 'sep',
ab114095 16 'google_xml': SITE_ROOT_URL+MEDIA_URL+"sites/google/recherche.xml?%s",
b7a741ad 17 'calendrier_publique': 'https://sep-caldav.auf.org/caldav.php/sep/home',
7cf64fde
CR
18}
19
20#####
21# Meta fields
77427924 22SERVER = 'server'
23b5b3d5 23LAST_CHECKSUM = 'last_checksum'
24LAST_UPDATE = 'last_update'
7cf64fde
CR
25TITLE = 'title'
26ALT_TITLE = 'alt_title'
27CREATOR = 'creator'
28CONTRIBUTOR = 'contributor'
29DESCRIPTION = 'description'
30ABSTRACT = 'abstract'
31SUBJECT = 'subject'
32PUBLISHER = 'publisher'
33DATE_CREATION = 'creation'
34DATE_ISSUED = 'issued'
35DATE_MODIFIED = 'modified'
36TYPE = 'type'
37FORMAT = 'format'
38IDENTIFIER = 'identifier'
39ISBN = 'isbn'
40URI = 'uri'
41SOURCE = 'source'
42LANGUAGE = 'language'
43ORIG_LANG = 'orig_lang'
44
45
77427924 46META = {SERVER: {'type': 'text'},
47 TITLE: {'type': 'text', 'text_search': True},
7cf64fde
CR
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 }