hydra-editor 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/hydra-editor/multiForm.js +1 -1
  3. data/app/helpers/concerns/records_helper_behavior.rb +0 -4
  4. data/app/views/records/_edit_field.html.erb +3 -3
  5. data/app/views/records/_form.html.erb +2 -2
  6. data/app/views/records/edit_fields/_default.html.erb +3 -3
  7. data/lib/hydra_editor/version.rb +1 -1
  8. data/spec/dummy/Gemfile +5 -1
  9. data/spec/dummy/Gemfile.lock +42 -41
  10. data/spec/dummy/app/controllers/catalog_controller.rb +44 -49
  11. data/spec/dummy/app/views/devise/registrations/edit.html.erb +1 -1
  12. data/spec/dummy/config/application.rb +6 -0
  13. data/spec/dummy/config/initializers/devise.rb +11 -5
  14. data/spec/dummy/config/initializers/hydra_config.rb +1 -1
  15. data/spec/dummy/config/initializers/secret_token.rb +1 -1
  16. data/spec/dummy/db/development.sqlite3 +0 -0
  17. data/spec/dummy/db/migrate/{20130415215624_devise_create_users.rb → 20130618142846_devise_create_users.rb} +0 -0
  18. data/spec/dummy/db/migrate/{20130415215633_create_searches.rb → 20130618142855_create_searches.rb} +0 -0
  19. data/spec/dummy/db/migrate/{20130415215634_create_bookmarks.rb → 20130618142856_create_bookmarks.rb} +0 -0
  20. data/spec/dummy/db/migrate/{20130415215635_remove_editable_fields_from_bookmarks.rb → 20130618142857_remove_editable_fields_from_bookmarks.rb} +0 -0
  21. data/spec/dummy/db/migrate/{20130415215636_add_user_types_to_bookmarks_searches.rb → 20130618142858_add_user_types_to_bookmarks_searches.rb} +0 -0
  22. data/spec/dummy/db/schema.rb +1 -1
  23. data/spec/dummy/db/test.sqlite3 +0 -0
  24. data/spec/dummy/log/development.log +40 -40
  25. data/spec/dummy/log/test.log +42 -2295
  26. data/spec/dummy/solr_conf/conf/schema.xml +1 -161
  27. data/spec/dummy/solr_conf/conf/solrconfig.xml +16 -7
  28. metadata +12 -12
@@ -13,30 +13,6 @@
13
13
  <field name="lat" type="tdouble" stored="true" indexed="true" multiValued="false"/>
14
14
  <field name="lng" type="tdouble" stored="true" indexed="true" multiValued="false"/>
15
15
 
16
- <!--these fields are hard coded in places in hydra-head -->
17
- <field name="active_fedora_model_s" type="string" stored="true" indexed="true"/>
18
- <field name="object_profile_display" type="string" stored="true" indexed="true"/>
19
- <field name="has_model_s" type="string" stored="true" indexed="true"/>
20
- <field name="is_governed_by_s" type="string" stored="true" indexed="true"/>
21
-
22
- <!--
23
- These are hard coded in places in hydra-head, but we hope to fix that.
24
-
25
- <field name="inheritable_discover_access_person_t" type="string" stored="true" indexed="true" multiValued="true"/>
26
- <field name="inheritable_read_access_person_t" type="string" stored="true" indexed="true" multiValued="true"/>
27
- <field name="inheritable_edit_access_person_t" type="string" stored="true" indexed="true" multiValued="true"/>
28
- <field name="inheritable_discover_access_group_t" type="string" stored="true" indexed="true" multiValued="true"/>
29
- <field name="inheritable_read_access_group_t" type="string" stored="true" indexed="true" multiValued="true"/>
30
- <field name="inheritable_edit_access_group_t" type="string" stored="true" indexed="true" multiValued="true"/>
31
- <field name="read_access_person_t" type="string" stored="true" indexed="true" multiValued="true"/>
32
- <field name="discover_access_person_t" type="string" stored="true" indexed="true" multiValued="true"/>
33
- <field name="edit_access_person_t" type="string" stored="true" indexed="true" multiValued="true"/>
34
- <field name="read_access_group_t" type="string" stored="true" indexed="true" multiValued="true"/>
35
- <field name="edit_access_group_t" type="string" stored="true" indexed="true" multiValued="true"/>
36
- <field name="discover_access_group_t" type="string" stored="true" indexed="true" multiValued="true"/>
37
- -->
38
-
39
-
40
16
  <!-- NOTE: not all possible Solr field types are represented in the dynamic fields -->
41
17
 
42
18
  <!-- text (_t...) -->
@@ -173,152 +149,16 @@
173
149
  <!-- you must define copyField source and dest fields explicity or schemaBrowser doesn't work -->
174
150
  <field name="all_text_timv" type="text" stored="false" indexed="true" multiValued="true" termVectors="true" termPositions="true" termOffsets="true"/>
175
151
 
176
- <!-- deprecated fields from pre-Solr 4.0 pre-hydra 5.0 -->
177
- <!--
178
- <field name="marc_display" type="string" indexed="false" stored="true" multiValued="false"/>
179
- <field name="title_display" type="string" indexed="false" stored="true" multiValued="false"/>
180
- <field name="title_vern_display" type="string" indexed="false" stored="true" multiValued="false"/>
181
- <field name="subtitle_display" type="string" indexed="false" stored="true" multiValued="false"/>
182
- <field name="subtitle_vern_display" type="string" indexed="false" stored="true" multiValued="false"/>
183
- <field name="author_display" type="string" indexed="false" stored="true" multiValued="false"/>
184
- <field name="author_vern_display" type="string" indexed="false" stored="true" multiValued="false"/>
185
- -->
186
- <!-- these fields are also used for display, so they must be stored -->
187
- <!--
188
- <field name="isbn_t" type="text" indexed="true" stored="true" multiValued="true"/>
189
- <field name="language_facet" type="string" indexed="true" stored="true" multiValued="true" />
190
- <field name="subject_topic_facet" type="string" indexed="true" stored="true" multiValued="true" />
191
- <field name="subject_era_facet" type="string" indexed="true" stored="true" multiValued="true" />
192
- <field name="subject_geo_facet" type="string" indexed="true" stored="true" multiValued="true" />
193
- -->
194
- <!-- pub_date is used for facet and display so it must be indexed and stored -->
195
- <!--
196
- <field name="pub_date" type="string" indexed="true" stored="true" multiValued="true"/>
197
- -->
198
- <!-- pub_date sort uses new trie-based int fields, which are recommended for any int and are displayable, sortable, and range-quer
199
- we use 'tint' for faster range-queries. -->
200
- <!--
201
- <field name="pub_date_sort" type="tint" indexed="true" stored="true" multiValued="false"/>
202
- -->
203
- <!-- format is used for facet, display, and choosing which partial to use for the show view, so it must be stored and indexed -->
204
- <!--
205
- <field name="format" type="string" indexed="true" stored="true"/>
206
-
207
- <dynamicField name="*_i" type="int" indexed="true" stored="true"/>
208
- <dynamicField name="*_s" type="string" indexed="true" stored="true" multiValued="true"/>
209
- <dynamicField name="*_l" type="long" indexed="true" stored="true"/>
210
- <dynamicField name="*_t" type="text" indexed="true" stored="true" multiValued="true"/>
211
- <dynamicField name="*_txt" type="text_general" indexed="true" stored="true" multiValued="true"/>
212
- <dynamicField name="*_b" type="boolean" indexed="true" stored="true"/>
213
- <dynamicField name="*_f" type="float" indexed="true" stored="true"/>
214
- <dynamicField name="*_d" type="double" indexed="true" stored="true"/>
215
-
216
- <dynamicField name="ignored_*" type="ignored" multiValued="true"/>
217
- <dynamicField name="attr_*" type="text_general" indexed="true" stored="true" multiValued="true"/>
218
-
219
- <dynamicField name="random_*" type="random" />
220
-
221
- <dynamicField name="*_display" type="string" indexed="false" stored="true" multiValued="true" />
222
- <dynamicField name="*_facet" type="string" indexed="true" stored="true" multiValued="true" />
223
- <dynamicField name="*_sort" type="string" indexed="true" stored="false" multiValued="false" />
224
- <dynamicField name="*_unstem_search" type="text_general" indexed="true" stored="false" multiValued="true" />
225
- <dynamicField name="*spell" type="textSpell" indexed="true" stored="false" multiValued="true" />
226
- -->
227
- <!-- uncomment the following to ignore any fields that don't already match an existing
228
- field name or dynamic field, rather than reporting them as an error.
229
- alternately, change the type="ignored" to some other type e.g. "text" if you want
230
- unknown fields indexed and/or stored by default -->
231
- <!--dynamicField name="*" type="ignored" multiValued="true" /-->
232
-
233
- <!-- END hydra deprecated items -->
234
152
 
235
153
  </fields>
236
154
 
237
- <!-- START hydra deprecated items -->
238
- <!--
239
- <defaultSearchField>text</defaultSearchField>
240
- -->
241
- <!-- SolrQueryParser configuration: defaultOperator="AND|OR" -->
242
- <!--
243
- <solrQueryParser defaultOperator="AND"/>
244
-
245
- <copyField source="title_t" dest="title_unstem_search"/>
246
- <copyField source="subtitle_t" dest="subtitle_unstem_search"/>
247
- <copyField source="title_addl_t" dest="title_addl_unstem_search"/>
248
- <copyField source="title_added_entry_t" dest="title_added_entry_unstem_search"/>
249
- <copyField source="title_series_t" dest="title_series_unstem_search"/>
250
- <copyField source="author_t" dest="author_unstem_search"/>
251
- <copyField source="author_addl_t" dest="author_addl_unstem_search"/>
252
- <copyField source="subject_t" dest="subject_unstem_search"/>
253
- <copyField source="subject_addl_t" dest="subject_addl_unstem_search"/>
254
- <copyField source="subject_topic_facet" dest="subject_topic_unstem_search"/>
255
- -->
256
- <!-- sort fields -->
257
- <!--
258
- <copyField source="pub_date" dest="pub_date_sort"/>
259
- -->
260
-
261
- <!-- spellcheck fields -->
262
- <!-- default spell check; should match fields for default request handler -->
263
- <!-- it won't work with a copy of a copy field -->
264
- <!--
265
- <copyField source="*_t" dest="spell"/>
266
- <copyField source="*_facet" dest="spell"/>
267
- -->
268
- <!-- title spell check; should match fields for title request handler -->
269
- <!--
270
- <copyField source="title_t" dest="title_spell"/>
271
- <copyField source="subtitle_t" dest="title_spell"/>
272
- <copyField source="addl_titles_t" dest="title_spell"/>
273
- <copyField source="title_added_entry_t" dest="title_spell"/>
274
- <copyField source="title_series_t" dest="title_spell"/>
275
- -->
276
- <!-- author spell check; should match fields for author request handler -->
277
- <!--
278
- <copyField source="author_t" dest="author_spell"/>
279
- <copyField source="author_addl_t" dest="author_spell"/>
280
- -->
281
- <!-- subject spell check; should match fields for subject request handler -->
282
- <!--
283
- <copyField source="subject_topic_facet" dest="subject_spell"/>
284
- <copyField source="subject_t" dest="subject_spell"/>
285
- <copyField source="subject_addl_t" dest="subject_spell"/>
286
- -->
287
-
288
- <!-- OpenSearch query field should match request handler search fields -->
289
- <!--
290
- <copyField source="title_t" dest="opensearch_display"/>
291
- <copyField source="subtitle_t" dest="opensearch_display"/>
292
- <copyField source="addl_titles_t" dest="opensearch_display"/>
293
- <copyField source="title_added_entry_t" dest="opensearch_display"/>
294
- <copyField source="title_series_t" dest="opensearch_display"/>
295
- <copyField source="author_t" dest="opensearch_display"/>
296
- <copyField source="author_addl_t" dest="opensearch_display"/>
297
- <copyField source="subject_topic_facet" dest="opensearch_display"/>
298
- <copyField source="subject_t" dest="opensearch_display"/>
299
- <copyField source="subject_addl_t" dest="opensearch_display"/>
300
- -->
301
155
 
302
156
  <!-- Above, multiple source fields are copied to the [text] field.
303
157
  Another way to map multiple source fields to the same
304
158
  destination field is to use the dynamic field syntax.
305
159
  copyField also supports a maxChars to copy setting. -->
306
160
 
307
- <!-- <copyField source="*_t" dest="text" maxChars="3000"/> -->
308
- <!--
309
- <copyField source="*_s" dest="text"/>
310
- <copyField source="*_t" dest="text"/>
311
- <copyField source="*_facet" dest="text"/>
312
- -->
313
- <!-- copy name to alphaNameSort, a field designed for sorting by name -->
314
- <!-- <copyField source="name" dest="alphaNameSort"/> -->
315
-
316
- <!-- END hydra deprecated items -->
317
-
318
- <!-- copy fields; note that you must define copyField source and dest fields explicity or schemaBrowser doesn't work -->
319
- <!--
320
- <copyField source="some_field" dest="all_text_timv" />
321
- -->
161
+ <!-- <copyField source="*_tesim" dest="all_text_timv" maxChars="3000"/> -->
322
162
 
323
163
  <types>
324
164
  <fieldType name="string" class="solr.StrField" sortMissingLast="true" />
@@ -37,23 +37,27 @@
37
37
  -->
38
38
  <str name="qf">
39
39
  id
40
- all_text_timv
41
40
  active_fedora_model_ssi
42
- object_type_si
41
+ title_tesim
42
+ author_tesim
43
+ subject_tesim
43
44
  </str>
44
45
  <str name="pf">
45
46
  all_text_timv^10
46
47
  </str>
47
48
 
48
49
  <str name="author_qf">
50
+ author_tesim
49
51
  </str>
50
52
  <str name="author_pf">
51
53
  </str>
52
54
  <str name="title_qf">
55
+ title_tesim
53
56
  </str>
54
57
  <str name="title_pf">
55
58
  </str>
56
59
  <str name="subject_qf">
60
+ subject_tesim
57
61
  </str>
58
62
  <str name="subject_pf">
59
63
  </str>
@@ -67,7 +71,7 @@
67
71
  <str name="facet.mincount">1</str>
68
72
  <str name="facet.limit">10</str>
69
73
  <str name="facet.field">active_fedora_model_ssi</str>
70
- <str name="facet.field">object_type_si</str>
74
+ <str name="facet.field">subject_sim</str>
71
75
 
72
76
  <str name="spellcheck">true</str>
73
77
  <str name="spellcheck.dictionary">default</str>
@@ -90,12 +94,17 @@
90
94
  <str name="q">{!raw f=id v=$id}</str> <!-- use id=666 instead of q=id:666 -->
91
95
  <str name="fl">
92
96
  id,
93
- access_tim,
94
- discover_access_group_tim,discover_access_person_tim,
95
- read_access_group_tim,read_access_person_tim,
96
- edit_access_group_tim,edit_access_person_tim,
97
+ access_ssim,
98
+ discover_access_group_ssim,discover_access_person_ssim,
99
+ read_access_group_ssim,read_access_person_ssim,
100
+ edit_access_group_ssim,edit_access_person_ssim,
97
101
  depositor_ti,
98
102
  embargo_release_date_dtsi
103
+ inheritable_access_ssim,
104
+ inheritable_discover_access_group_ssim,inheritable_discover_access_person_ssim,
105
+ inheritable_read_access_group_ssim,inheritable_read_access_person_ssim,
106
+ inheritable_edit_access_group_ssim,inheritable_edit_access_person_ssim,
107
+ inheritable_embargo_release_date_dtsi
99
108
  </str>
100
109
  </lst>
101
110
  </requestHandler>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hydra-editor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-14 00:00:00.000000000 Z
11
+ date: 2013-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -251,11 +251,11 @@ files:
251
251
  - spec/dummy/config/SolrMarc/translation_maps/README_MAPS
252
252
  - spec/dummy/config.ru
253
253
  - spec/dummy/db/development.sqlite3
254
- - spec/dummy/db/migrate/20130415215624_devise_create_users.rb
255
- - spec/dummy/db/migrate/20130415215633_create_searches.rb
256
- - spec/dummy/db/migrate/20130415215634_create_bookmarks.rb
257
- - spec/dummy/db/migrate/20130415215635_remove_editable_fields_from_bookmarks.rb
258
- - spec/dummy/db/migrate/20130415215636_add_user_types_to_bookmarks_searches.rb
254
+ - spec/dummy/db/migrate/20130618142846_devise_create_users.rb
255
+ - spec/dummy/db/migrate/20130618142855_create_searches.rb
256
+ - spec/dummy/db/migrate/20130618142856_create_bookmarks.rb
257
+ - spec/dummy/db/migrate/20130618142857_remove_editable_fields_from_bookmarks.rb
258
+ - spec/dummy/db/migrate/20130618142858_add_user_types_to_bookmarks_searches.rb
259
259
  - spec/dummy/db/schema.rb
260
260
  - spec/dummy/db/seeds.rb
261
261
  - spec/dummy/db/test.sqlite3
@@ -384,11 +384,11 @@ test_files:
384
384
  - spec/dummy/config/SolrMarc/translation_maps/README_MAPS
385
385
  - spec/dummy/config.ru
386
386
  - spec/dummy/db/development.sqlite3
387
- - spec/dummy/db/migrate/20130415215624_devise_create_users.rb
388
- - spec/dummy/db/migrate/20130415215633_create_searches.rb
389
- - spec/dummy/db/migrate/20130415215634_create_bookmarks.rb
390
- - spec/dummy/db/migrate/20130415215635_remove_editable_fields_from_bookmarks.rb
391
- - spec/dummy/db/migrate/20130415215636_add_user_types_to_bookmarks_searches.rb
387
+ - spec/dummy/db/migrate/20130618142846_devise_create_users.rb
388
+ - spec/dummy/db/migrate/20130618142855_create_searches.rb
389
+ - spec/dummy/db/migrate/20130618142856_create_bookmarks.rb
390
+ - spec/dummy/db/migrate/20130618142857_remove_editable_fields_from_bookmarks.rb
391
+ - spec/dummy/db/migrate/20130618142858_add_user_types_to_bookmarks_searches.rb
392
392
  - spec/dummy/db/schema.rb
393
393
  - spec/dummy/db/seeds.rb
394
394
  - spec/dummy/db/test.sqlite3