sites frontend
[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
4configuration = {
5 'max_actualite': 100,
6 'accueil_actualite': 5,
6e001443 7 'accueil_chercheur': 5,
8 'accueil_sites': 5,
7cf64fde
CR
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",
7cf64fde
CR
14 'calendrier_publique': 'http://cal.ro.auf.org/caldav.php/davin/test/',
15}
16
17#####
18# Meta fields
19TITLE = 'title'
20ALT_TITLE = 'alt_title'
21CREATOR = 'creator'
22CONTRIBUTOR = 'contributor'
23DESCRIPTION = 'description'
24ABSTRACT = 'abstract'
25SUBJECT = 'subject'
26PUBLISHER = 'publisher'
27DATE_CREATION = 'creation'
28DATE_ISSUED = 'issued'
29DATE_MODIFIED = 'modified'
30TYPE = 'type'
31FORMAT = 'format'
32IDENTIFIER = 'identifier'
33ISBN = 'isbn'
34URI = 'uri'
35SOURCE = 'source'
36LANGUAGE = 'language'
37ORIG_LANG = 'orig_lang'
38
39
40META = {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 }