Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 219 lines (208 sloc) 6.024 kB
e491933 @markmacgillivray adding facetview files
markmacgillivray authored
1 {
83caccf @markmacgillivray bringing in coll metadata to templates
markmacgillivray authored
2 # service and super user account
e491933 @markmacgillivray adding facetview files
markmacgillivray authored
3 "service_name" : "BibSoup",
83caccf @markmacgillivray bringing in coll metadata to templates
markmacgillivray authored
4 "super_user" : "test",
b1b5049 @markmacgillivray removing static symbolic link, seems to work without it. also fixing …
markmacgillivray authored
5 "host" : "0.0.0.0",
0407dbe @markmacgillivray separating out the search functionality and adding in jtedit
markmacgillivray authored
6 "debug" : true,
7 "port" : 5000,
2ea417c @markmacgillivray fix to site url identification for building urls into records. additi…
markmacgillivray authored
8
e3f6be1 @markmacgillivray refactoring solreyes functions out - not finished though. parsers mov…
markmacgillivray authored
9 # elasticsearch settings
9696841 [refactor,setup][s]: introduce elasticsearch, document this, and test…
rgrp authored
10 "ELASTIC_SEARCH_HOST" : "127.0.0.1:9200",
11 "ELASTIC_SEARCH_DB" : "bibserver",
45edeeb @markmacgillivray changes to dao
markmacgillivray authored
12
06bc33a @markmacgillivray raft of changes to alter the layout of the search results, and to ena…
markmacgillivray authored
13 # bibserver functionality settings
47ad385 @markmacgillivray fixing config
markmacgillivray authored
14 # set to false if no frontend upload wanted
15 # set to false if no frontend edit wanted
16 "allow_upload" : true,
17 "allow_edit" : true,
06bc33a @markmacgillivray raft of changes to alter the layout of the search results, and to ena…
markmacgillivray authored
18
3b3456b @epoz First cut of the async ingest.
epoz authored
19 # ingest settings
20 "download_cache_directory" : "download_cache",
21 "parserscrapers_plugin_directory" : "parserscrapers_plugins",
22
37aea4f @markmacgillivray slight refactor of iomanager and web.py calling it, and changes to bi…
markmacgillivray authored
23
1c796d7 @markmacgillivray major refactor to new versions of bootstrap and facetview. dropped al…
markmacgillivray authored
24 # The default fields and settings for which faceting should be made available on
37aea4f @markmacgillivray slight refactor of iomanager and web.py calling it, and changes to bi…
markmacgillivray authored
25 # these can be nested fields, e.g. links.url
1c796d7 @markmacgillivray major refactor to new versions of bootstrap and facetview. dropped al…
markmacgillivray authored
26 "search_facet_fields" : [
9d17358 @markmacgillivray improved the config method for preparing facets - it is now an object…
markmacgillivray authored
27 {
1c796d7 @markmacgillivray major refactor to new versions of bootstrap and facetview. dropped al…
markmacgillivray authored
28 "field":"collection.exact",
9d17358 @markmacgillivray improved the config method for preparing facets - it is now an object…
markmacgillivray authored
29 "order":"term",
1c796d7 @markmacgillivray major refactor to new versions of bootstrap and facetview. dropped al…
markmacgillivray authored
30 "size":200,
31 "display":"collection"
9d17358 @markmacgillivray improved the config method for preparing facets - it is now an object…
markmacgillivray authored
32 },
33 {
1c796d7 @markmacgillivray major refactor to new versions of bootstrap and facetview. dropped al…
markmacgillivray authored
34 "field":"type.exact",
35 "order":"count",
36 "display":"type"
9d17358 @markmacgillivray improved the config method for preparing facets - it is now an object…
markmacgillivray authored
37 },
38 {
1c796d7 @markmacgillivray major refactor to new versions of bootstrap and facetview. dropped al…
markmacgillivray authored
39 "field":"journal.name.exact",
40 "display":"journal"
9d17358 @markmacgillivray improved the config method for preparing facets - it is now an object…
markmacgillivray authored
41 },
42 {
1c796d7 @markmacgillivray major refactor to new versions of bootstrap and facetview. dropped al…
markmacgillivray authored
43 "field":"author.name.exact",
6b64456 @markmacgillivray adding a method to iomanager to find all relevant sort fields for giv…
markmacgillivray authored
44 "order":"term",
4fee8fb @markmacgillivray adding some beta tags and a version number, tidying up the FAQ page t…
markmacgillivray authored
45 "size":500,
1c796d7 @markmacgillivray major refactor to new versions of bootstrap and facetview. dropped al…
markmacgillivray authored
46 "display":"author"
9d17358 @markmacgillivray improved the config method for preparing facets - it is now an object…
markmacgillivray authored
47 },
48 {
1c796d7 @markmacgillivray major refactor to new versions of bootstrap and facetview. dropped al…
markmacgillivray authored
49 "field":"year.exact",
50 "size":100,
51 "order":"reverse_term",
52 "display":"year"
9d17358 @markmacgillivray improved the config method for preparing facets - it is now an object…
markmacgillivray authored
53 }
54 ],
a7786fc @markmacgillivray added search result sort to frontend. added first pass at parsing peo…
markmacgillivray authored
55
c2de8b5 @markmacgillivray finishing addition of add/remove facets to frontend, building from pr…
markmacgillivray authored
56 # list of additional facet names that could be made available for users to choose
57 "add_remove_facets" : [
58 "keyword.exact",
59 "subject.name.exact",
60 "volume.exact",
61 "publisher.exact",
62 "editor.name.exact",
63 "title.exact",
64 "_created.exact",
65 "_last_modified.exact",
66 "theme.exact",
67 "chapter.exact",
68 "booktitle.exact",
69 "abstract.exact",
70 "journal.id.exact",
71 "author.id.exact",
72 "link.url.exact",
73 "pages.exact"
74 ],
75
37aea4f @markmacgillivray slight refactor of iomanager and web.py calling it, and changes to bi…
markmacgillivray authored
76 # search result display layout
0532079 @markmacgillivray pushing changes to meet jims no-negotiable requirement that facet val…
markmacgillivray authored
77 # a list of lists. each list represents a line on the display.
78 # in each line, there are objects for each key to include on the line.
79 # must specify the key, and optional "pre" and "post" params for displaying round it
1c796d7 @markmacgillivray major refactor to new versions of bootstrap and facetview. dropped al…
markmacgillivray authored
80 "search_result_display" : [
be84de5 @markmacgillivray changing result display layout and adding passthrough options to show…
markmacgillivray authored
81 [
82 {
1c796d7 @markmacgillivray major refactor to new versions of bootstrap and facetview. dropped al…
markmacgillivray authored
83 "field": "author.name"
be84de5 @markmacgillivray changing result display layout and adding passthrough options to show…
markmacgillivray authored
84 },
85 {
86 "pre": "(",
1c796d7 @markmacgillivray major refactor to new versions of bootstrap and facetview. dropped al…
markmacgillivray authored
87 "field": "year",
be84de5 @markmacgillivray changing result display layout and adding passthrough options to show…
markmacgillivray authored
88 "post": ")"
89 }
90 ],
91 [
92 {
43c03b4 @markmacgillivray more wiring in of functionality to facetview and jtedit. still a wee …
markmacgillivray authored
93 "pre":"<span style=\"font-weight:bold;font-size:16px;\"><a title=\"view record\" style=\"color:#666;text-decoration:underline;\" href=\"/",
59b3fe8 @markmacgillivray improving user interface
markmacgillivray authored
94 "field":"owner",
95 "post":"/"
96 },
97 {
98 "field":"collection",
99 "post":"/"
100 },
101 {
f565906 @markmacgillivray changing storage of IDs - any id from parsed data stays as id whereas…
markmacgillivray authored
102 "field":"_id",
59b3fe8 @markmacgillivray improving user interface
markmacgillivray authored
103 "post":"\">"
104 },
105 {
106 "field":"title",
43c03b4 @markmacgillivray more wiring in of functionality to facetview and jtedit. still a wee …
markmacgillivray authored
107 "post":"</a></span>"
be84de5 @markmacgillivray changing result display layout and adding passthrough options to show…
markmacgillivray authored
108 }
109 ],
110 [
111 {
1c796d7 @markmacgillivray major refactor to new versions of bootstrap and facetview. dropped al…
markmacgillivray authored
112 "field": "howpublished"
be84de5 @markmacgillivray changing result display layout and adding passthrough options to show…
markmacgillivray authored
113 },
114 {
9d17358 @markmacgillivray improved the config method for preparing facets - it is now an object…
markmacgillivray authored
115 "pre": "in <em>",
1c796d7 @markmacgillivray major refactor to new versions of bootstrap and facetview. dropped al…
markmacgillivray authored
116 "field": "journal.name",
be84de5 @markmacgillivray changing result display layout and adding passthrough options to show…
markmacgillivray authored
117 "post": "</em>,"
118 },
119 {
120 "pre": "<em>",
1c796d7 @markmacgillivray major refactor to new versions of bootstrap and facetview. dropped al…
markmacgillivray authored
121 "field": "booktitle",
be84de5 @markmacgillivray changing result display layout and adding passthrough options to show…
markmacgillivray authored
122 "post": "</em>,"
123 },
124 {
fec0f85 @markmacgillivray changing default config to closer match Jims wishes
markmacgillivray authored
125 "pre": "vol. ",
1c796d7 @markmacgillivray major refactor to new versions of bootstrap and facetview. dropped al…
markmacgillivray authored
126 "field": "volume",
0532079 @markmacgillivray pushing changes to meet jims no-negotiable requirement that facet val…
markmacgillivray authored
127 "post": ","
fec0f85 @markmacgillivray changing default config to closer match Jims wishes
markmacgillivray authored
128 },
129 {
1c796d7 @markmacgillivray major refactor to new versions of bootstrap and facetview. dropped al…
markmacgillivray authored
130 "pre": "p. ",
131 "field": "pages"
fec0f85 @markmacgillivray changing default config to closer match Jims wishes
markmacgillivray authored
132 },
133 {
1c796d7 @markmacgillivray major refactor to new versions of bootstrap and facetview. dropped al…
markmacgillivray authored
134 "field": "publisher"
be84de5 @markmacgillivray changing result display layout and adding passthrough options to show…
markmacgillivray authored
135 }
136 ],
137 [
138 {
1c796d7 @markmacgillivray major refactor to new versions of bootstrap and facetview. dropped al…
markmacgillivray authored
139 "field": "link.url"
be84de5 @markmacgillivray changing result display layout and adding passthrough options to show…
markmacgillivray authored
140 }
141 ]
142 ],
17c7c5a @markmacgillivray updating setup.py
markmacgillivray authored
143
59b3fe8 @markmacgillivray improving user interface
markmacgillivray authored
144 # default view for collections page
145 "colls_result_display" : [
146 [
147 {
148 "pre":"<h3><a href=\"/",
149 "field":"owner",
150 "post":"/"
151 },
152 {
153 "field":"collection",
154 "post":"\">"
155 },
156 {
157 "field":"label",
158 "post":"</a></h3>"
159 }
160 ],
161 [
162 {
163 "field":"description"
164 },
165 {
166 "pre":" (created by <a href=\"/",
167 "field":"owner",
168 "post":"\">"
169 },
170 {
171 "field":"owner",
172 "post":"</a>)"
173 }
174 ]
175 ],
176
37aea4f @markmacgillivray slight refactor of iomanager and web.py calling it, and changes to bi…
markmacgillivray authored
177 # a dict of the ES mappings. identify by name, and include name as first object name
1c796d7 @markmacgillivray major refactor to new versions of bootstrap and facetview. dropped al…
markmacgillivray authored
178 # and identifier for how non-analyzed fields for faceting are differentiated in the mappings
179 "facet_field" : ".exact",
37aea4f @markmacgillivray slight refactor of iomanager and web.py calling it, and changes to bi…
markmacgillivray authored
180 "mappings" : {
181 "record" : {
182 "record" : {
7de7071 @markmacgillivray changing mappings to ignore attempts to parse input to dates, changin…
markmacgillivray authored
183 "date_detection" : false,
37aea4f @markmacgillivray slight refactor of iomanager and web.py calling it, and changes to bi…
markmacgillivray authored
184 "dynamic_templates" : [
185 {
186 "default" : {
187 "match" : "*",
7de7071 @markmacgillivray changing mappings to ignore attempts to parse input to dates, changin…
markmacgillivray authored
188 "match_mapping_type": "string",
37aea4f @markmacgillivray slight refactor of iomanager and web.py calling it, and changes to bi…
markmacgillivray authored
189 "mapping" : {
190 "type" : "multi_field",
191 "fields" : {
192 "{name}" : {"type" : "{dynamic_type}", "index" : "analyzed", "store" : "no"},
193 "exact" : {"type" : "{dynamic_type}", "index" : "not_analyzed", "store" : "yes"}
194 }
195 }
196 }
197 }
198 ]
199 }
200 },
201 "collection" : {
202 "collection" : {
7de7071 @markmacgillivray changing mappings to ignore attempts to parse input to dates, changin…
markmacgillivray authored
203 "date_detection" : false,
37aea4f @markmacgillivray slight refactor of iomanager and web.py calling it, and changes to bi…
markmacgillivray authored
204 "dynamic_templates" : [
205 {
206 "default" : {
207 "match" : "*",
208 "mapping" : {
209 "index" : "not_analyzed"
210 }
211 }
212 }
213 ]
214 }
215 }
1c796d7 @markmacgillivray major refactor to new versions of bootstrap and facetview. dropped al…
markmacgillivray authored
216 }
37aea4f @markmacgillivray slight refactor of iomanager and web.py calling it, and changes to bi…
markmacgillivray authored
217
e491933 @markmacgillivray adding facetview files
markmacgillivray authored
218 }
Something went wrong with that request. Please try again.