Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 167 lines (153 sloc) 4.809 kB
e491933 @markmacgillivray adding facetview files
markmacgillivray authored
1 {
2ea417c @markmacgillivray fix to site url identification for building urls into records. additi…
markmacgillivray authored
2 # service
e491933 @markmacgillivray adding facetview files
markmacgillivray authored
3 "service_name" : "BibSoup",
9696841 [refactor,setup][s]: introduce elasticsearch, document this, and test…
rgrp authored
4
2ea417c @markmacgillivray fix to site url identification for building urls into records. additi…
markmacgillivray authored
5 # provide site address URL if you need to overwrite what it might otherwise be calculated to be
6 #"SITE_URL" : "http://bibsoup.net/"
7
8 # base URL of search service
9 "base_url" : "/search",
10
e3f6be1 @markmacgillivray refactoring solreyes functions out - not finished though. parsers mov…
markmacgillivray authored
11 # elasticsearch settings
9696841 [refactor,setup][s]: introduce elasticsearch, document this, and test…
rgrp authored
12 "ELASTIC_SEARCH_HOST" : "127.0.0.1:9200",
13 "ELASTIC_SEARCH_DB" : "bibserver",
45edeeb @markmacgillivray changes to dao
markmacgillivray authored
14
06bc33a @markmacgillivray raft of changes to alter the layout of the search results, and to ena…
markmacgillivray authored
15 # bibserver functionality settings
37aea4f @markmacgillivray slight refactor of iomanager and web.py calling it, and changes to bi…
markmacgillivray authored
16 # allow_upload - set to "NO" if you dont want frontend upload to your bibserver install
06bc33a @markmacgillivray raft of changes to alter the layout of the search results, and to ena…
markmacgillivray authored
17 # allow_edit - Yes / No for edit of individual records in bibsoup
18 # allow upload user to override display config
37aea4f @markmacgillivray slight refactor of iomanager and web.py calling it, and changes to bi…
markmacgillivray authored
19 "allow_upload" : "YES",
c0d1aeb @markmacgillivray fixing error in iomanager that caused record display to break sometim…
markmacgillivray authored
20 "allow_edit" : "NO",
06bc33a @markmacgillivray raft of changes to alter the layout of the search results, and to ena…
markmacgillivray authored
21 "allow_display_config" : "YES",
22
3b3456b @epoz First cut of the async ingest.
epoz authored
23 # ingest settings
24 "download_cache_directory" : "download_cache",
25 "parserscrapers_plugin_directory" : "parserscrapers_plugins",
26
06bc33a @markmacgillivray raft of changes to alter the layout of the search results, and to ena…
markmacgillivray authored
27 # set some display template configs
74d2321 @markmacgillivray changing facet sidebar layout to provide a-z filter choices. also alt…
markmacgillivray authored
28 "facet_topbar":false,
29 "facet_sidebar":true,
37aea4f @markmacgillivray slight refactor of iomanager and web.py calling it, and changes to bi…
markmacgillivray authored
30
9d17358 @markmacgillivray improved the config method for preparing facets - it is now an object…
markmacgillivray authored
31 # default results and paging options
06bc33a @markmacgillivray raft of changes to alter the layout of the search results, and to ena…
markmacgillivray authored
32 "results_per_page" : 10,
37aea4f @markmacgillivray slight refactor of iomanager and web.py calling it, and changes to bi…
markmacgillivray authored
33 "results_per_page_options" : [10, 20, 50, 100],
e491933 @markmacgillivray adding facetview files
markmacgillivray authored
34
9d17358 @markmacgillivray improved the config method for preparing facets - it is now an object…
markmacgillivray authored
35 # The fields for which faceting should be made available on, and their default settings
37aea4f @markmacgillivray slight refactor of iomanager and web.py calling it, and changes to bi…
markmacgillivray authored
36 # these can be nested fields, e.g. links.url
9d17358 @markmacgillivray improved the config method for preparing facets - it is now an object…
markmacgillivray authored
37 "facet_fields" : [
38 {
39 "key":"collection",
40 "order":"term",
41 "size":200
42 },
43 {
44 "key":"type",
45 "order":"count"
46 },
47 {
5a8c90f @markmacgillivray changing to schema 0.82, citekey is now cid, author, editor, journal,…
markmacgillivray authored
48 "key":"journal.name",
c0d1aeb @markmacgillivray fixing error in iomanager that caused record display to break sometim…
markmacgillivray authored
49 "display_name":"journal"
9d17358 @markmacgillivray improved the config method for preparing facets - it is now an object…
markmacgillivray authored
50 },
51 {
5a8c90f @markmacgillivray changing to schema 0.82, citekey is now cid, author, editor, journal,…
markmacgillivray authored
52 "key":"author.name",
6b64456 @markmacgillivray adding a method to iomanager to find all relevant sort fields for giv…
markmacgillivray authored
53 "order":"term",
949c564 @markmacgillivray adding save display settigs button to search results page
markmacgillivray authored
54 "size":1000,
c0d1aeb @markmacgillivray fixing error in iomanager that caused record display to break sometim…
markmacgillivray authored
55 "display_name":"author"
9d17358 @markmacgillivray improved the config method for preparing facets - it is now an object…
markmacgillivray authored
56 },
57 {
58 "key":"year",
59 "order":"reverse_term"
60 }
61 ],
a7786fc @markmacgillivray added search result sort to frontend. added first pass at parsing peo…
markmacgillivray authored
62
37aea4f @markmacgillivray slight refactor of iomanager and web.py calling it, and changes to bi…
markmacgillivray authored
63 # search result display layout
0532079 @markmacgillivray pushing changes to meet jims no-negotiable requirement that facet val…
markmacgillivray authored
64 # a list of lists. each list represents a line on the display.
65 # in each line, there are objects for each key to include on the line.
66 # must specify the key, and optional "pre" and "post" params for displaying round it
be84de5 @markmacgillivray changing result display layout and adding passthrough options to show…
markmacgillivray authored
67 "result_display" : [
68 [
69 {
70 "pre": "",
5a8c90f @markmacgillivray changing to schema 0.82, citekey is now cid, author, editor, journal,…
markmacgillivray authored
71 "key": "author.name"
be84de5 @markmacgillivray changing result display layout and adding passthrough options to show…
markmacgillivray authored
72 },
73 {
74 "pre": "(",
0532079 @markmacgillivray pushing changes to meet jims no-negotiable requirement that facet val…
markmacgillivray authored
75 "key": "year",
be84de5 @markmacgillivray changing result display layout and adding passthrough options to show…
markmacgillivray authored
76 "post": ")"
77 }
78 ],
79 [
80 {
81 "pre": "<strong>",
82 "key": "title",
83 "post": "</strong>"
84 }
85 ],
86 [
87 {
9d17358 @markmacgillivray improved the config method for preparing facets - it is now an object…
markmacgillivray authored
88 "key": "howpublished"
be84de5 @markmacgillivray changing result display layout and adding passthrough options to show…
markmacgillivray authored
89 },
90 {
9d17358 @markmacgillivray improved the config method for preparing facets - it is now an object…
markmacgillivray authored
91 "pre": "in <em>",
5a8c90f @markmacgillivray changing to schema 0.82, citekey is now cid, author, editor, journal,…
markmacgillivray authored
92 "key": "journal.name",
be84de5 @markmacgillivray changing result display layout and adding passthrough options to show…
markmacgillivray authored
93 "post": "</em>,"
94 },
95 {
96 "pre": "<em>",
0532079 @markmacgillivray pushing changes to meet jims no-negotiable requirement that facet val…
markmacgillivray authored
97 "key": "booktitle",
be84de5 @markmacgillivray changing result display layout and adding passthrough options to show…
markmacgillivray authored
98 "post": "</em>,"
99 },
100 {
fec0f85 @markmacgillivray changing default config to closer match Jims wishes
markmacgillivray authored
101 "pre": "vol. ",
102 "key": "volume",
0532079 @markmacgillivray pushing changes to meet jims no-negotiable requirement that facet val…
markmacgillivray authored
103 "post": ","
fec0f85 @markmacgillivray changing default config to closer match Jims wishes
markmacgillivray authored
104 },
105 {
106 "key": "pages"
107 },
108 {
be84de5 @markmacgillivray changing result display layout and adding passthrough options to show…
markmacgillivray authored
109 "key": "publisher"
110 }
111 ],
112 [
113 {
cf7cbb1 @markmacgillivray fixing display of links on search result #178 #179
markmacgillivray authored
114 "key": "link"
be84de5 @markmacgillivray changing result display layout and adding passthrough options to show…
markmacgillivray authored
115 }
116 ]
117 ],
17c7c5a @markmacgillivray updating setup.py
markmacgillivray authored
118
37aea4f @markmacgillivray slight refactor of iomanager and web.py calling it, and changes to bi…
markmacgillivray authored
119 # functions to perform on particular result fields on display - these are defined in iomanager
e491933 @markmacgillivray adding facetview files
markmacgillivray authored
120 "display_value_functions" : {
5a8c90f @markmacgillivray changing to schema 0.82, citekey is now cid, author, editor, journal,…
markmacgillivray authored
121 "author.name":{"authorify":{}},
bf2ae4b @markmacgillivray changing frontend to only display collections under usernames. changi…
markmacgillivray authored
122 "collection": {"collectionify":{}},
7670e4a @markmacgillivray making various routing changes to accommodate move to non-unique coll…
markmacgillivray authored
123 "link": {"bibsoup_links":{}}
37aea4f @markmacgillivray slight refactor of iomanager and web.py calling it, and changes to bi…
markmacgillivray authored
124 },
125
126 # a dict of the ES mappings. identify by name, and include name as first object name
127 "mappings" : {
128 "record" : {
129 "record" : {
130 "dynamic_templates" : [
131 {
132 "default" : {
133 "match" : "*",
003019c @markmacgillivray main purpose of this commit is the change to the dynamic mapping to s…
markmacgillivray authored
134 "match_mapping_type": "string",
37aea4f @markmacgillivray slight refactor of iomanager and web.py calling it, and changes to bi…
markmacgillivray authored
135 "mapping" : {
136 "type" : "multi_field",
137 "fields" : {
138 "{name}" : {"type" : "{dynamic_type}", "index" : "analyzed", "store" : "no"},
139 "exact" : {"type" : "{dynamic_type}", "index" : "not_analyzed", "store" : "yes"}
140 }
141 }
142 }
143 }
144 ]
145 }
146 },
147 "collection" : {
148 "collection" : {
149 "dynamic_templates" : [
150 {
151 "default" : {
152 "match" : "*",
153 "mapping" : {
154 "index" : "not_analyzed"
155 }
156 }
157 }
158 ]
159 }
160 }
161 },
162
06bc33a @markmacgillivray raft of changes to alter the layout of the search results, and to ena…
markmacgillivray authored
163 # identifier for how non-analyzed fields for faceting are differenetiated in the mappings
37aea4f @markmacgillivray slight refactor of iomanager and web.py calling it, and changes to bi…
markmacgillivray authored
164 "facet_field" : ".exact"
165
e491933 @markmacgillivray adding facetview files
markmacgillivray authored
166 }
Something went wrong with that request. Please try again.