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