curate 0.6.4 → 0.6.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (126) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/curate/organizations_controller.rb +96 -0
  3. data/app/helpers/curate/organizations_helper.rb +13 -0
  4. data/app/helpers/curate_helper.rb +4 -0
  5. data/app/models/concerns/curate/ability.rb +8 -0
  6. data/app/models/curate/user_behavior/base.rb +13 -0
  7. data/app/repository_models/collection.rb +1 -0
  8. data/app/repository_models/curation_concern/model.rb +1 -0
  9. data/app/repository_models/organization.rb +17 -0
  10. data/app/repository_models/person.rb +1 -0
  11. data/app/repository_models/profile_section.rb +1 -0
  12. data/app/views/curate/organizations/_button_create_organization.html.erb +1 -0
  13. data/app/views/curate/organizations/_document_list.html.erb +11 -0
  14. data/app/views/curate/organizations/_form.html.erb +49 -0
  15. data/app/views/curate/organizations/_organization.html.erb +24 -0
  16. data/app/views/curate/organizations/edit.html.erb +4 -0
  17. data/app/views/curate/organizations/index.html.erb +11 -0
  18. data/app/views/curate/organizations/new.html.erb +4 -0
  19. data/app/views/curate/organizations/show.html.erb +27 -0
  20. data/app/views/organizations/_organization.html.erb +30 -0
  21. data/app/views/shared/_add_content.html.erb +1 -0
  22. data/lib/curate/rails/routes.rb +1 -0
  23. data/lib/curate/version.rb +1 -1
  24. data/lib/generators/curate/application_template.rb +1 -1
  25. data/lib/generators/curate/curate_generator.rb +3 -0
  26. data/spec/abilities/generic_file_abilities_spec.rb +12 -0
  27. data/spec/abilities/generic_work_abilities_spec.rb +12 -0
  28. data/spec/controllers/curate/organizations_controller_spec.rb +50 -0
  29. data/spec/factories/organizations_factory.rb +21 -0
  30. data/spec/internal/Gemfile +4 -22
  31. data/spec/internal/Gemfile.lock +1 -376
  32. data/spec/internal/app/assets/javascripts/application.js +0 -4
  33. data/spec/internal/app/assets/stylesheets/application.css +0 -1
  34. data/spec/internal/app/controllers/application_controller.rb +0 -9
  35. data/spec/internal/config/application.rb +0 -6
  36. data/spec/internal/config/environments/test.rb +1 -2
  37. data/spec/internal/config/initializers/mime_types.rb +1 -8
  38. data/spec/internal/config/initializers/secret_token.rb +1 -1
  39. data/spec/internal/config/locales/en.yml +20 -11
  40. data/spec/internal/config/routes.rb +0 -8
  41. data/spec/internal/db/development.sqlite3 +0 -0
  42. data/spec/internal/db/schema.rb +1 -216
  43. data/spec/internal/db/test.sqlite3 +0 -0
  44. data/spec/internal/lib/generators/test_app_generator.rb +2 -23
  45. data/spec/internal/log/development.log +4 -323
  46. data/spec/repository_models/organization_spec.rb +66 -0
  47. metadata +20 -160
  48. data/spec/internal/app/assets/images/blacklight/bg.png +0 -0
  49. data/spec/internal/app/assets/images/blacklight/border.png +0 -0
  50. data/spec/internal/app/assets/images/blacklight/bul_sq_gry.gif +0 -0
  51. data/spec/internal/app/assets/images/blacklight/checkmark.gif +0 -0
  52. data/spec/internal/app/assets/images/blacklight/logo.png +0 -0
  53. data/spec/internal/app/assets/images/blacklight/magnifying_glass.gif +0 -0
  54. data/spec/internal/app/assets/images/blacklight/remove.gif +0 -0
  55. data/spec/internal/app/assets/images/blacklight/separator.gif +0 -0
  56. data/spec/internal/app/assets/images/blacklight/start_over.gif +0 -0
  57. data/spec/internal/app/models/ability.rb +0 -20
  58. data/spec/internal/app/models/solr_document.rb +0 -38
  59. data/spec/internal/app/models/user.rb +0 -23
  60. data/spec/internal/config/SolrMarc/config-test.properties +0 -37
  61. data/spec/internal/config/SolrMarc/config.properties +0 -37
  62. data/spec/internal/config/SolrMarc/index.properties +0 -97
  63. data/spec/internal/config/SolrMarc/index_scripts/dewey.bsh +0 -47
  64. data/spec/internal/config/SolrMarc/index_scripts/format.bsh +0 -126
  65. data/spec/internal/config/SolrMarc/translation_maps/README_MAPS +0 -1
  66. data/spec/internal/config/SolrMarc/translation_maps/callnumber_map.properties +0 -407
  67. data/spec/internal/config/SolrMarc/translation_maps/composition_era_map.properties +0 -56
  68. data/spec/internal/config/SolrMarc/translation_maps/country_map.properties +0 -379
  69. data/spec/internal/config/SolrMarc/translation_maps/format_map.properties +0 -50
  70. data/spec/internal/config/SolrMarc/translation_maps/instrument_map.properties +0 -101
  71. data/spec/internal/config/SolrMarc/translation_maps/language_map.properties +0 -490
  72. data/spec/internal/config/doi.yml +0 -5
  73. data/spec/internal/config/fedora.yml +0 -14
  74. data/spec/internal/config/initializers/action_dispatch_http_upload_monkey_patch.rb +0 -12
  75. data/spec/internal/config/initializers/curate_config.rb +0 -24
  76. data/spec/internal/config/initializers/devise.rb +0 -254
  77. data/spec/internal/config/initializers/hydra-remote_identifier_config.rb +0 -29
  78. data/spec/internal/config/initializers/hydra_config.rb +0 -28
  79. data/spec/internal/config/initializers/mailboxer.rb +0 -17
  80. data/spec/internal/config/initializers/redis_config.rb +0 -32
  81. data/spec/internal/config/initializers/resque_admin.rb +0 -10
  82. data/spec/internal/config/initializers/resque_config.rb +0 -5
  83. data/spec/internal/config/initializers/sufia.rb +0 -81
  84. data/spec/internal/config/jetty.yml +0 -5
  85. data/spec/internal/config/locales/devise.en.yml +0 -59
  86. data/spec/internal/config/recipients_list.yml +0 -2
  87. data/spec/internal/config/redis.yml +0 -6
  88. data/spec/internal/config/role_map_cucumber.yml +0 -10
  89. data/spec/internal/config/role_map_development.yml +0 -12
  90. data/spec/internal/config/role_map_production.yml +0 -2
  91. data/spec/internal/config/role_map_test.yml +0 -15
  92. data/spec/internal/config/solr.yml +0 -10
  93. data/spec/internal/db/migrate/20140131175455_devise_create_users.rb +0 -42
  94. data/spec/internal/db/migrate/20140131175500_add_devise_guests_to_users.rb +0 -15
  95. data/spec/internal/db/migrate/20140131175501_create_searches.rb +0 -16
  96. data/spec/internal/db/migrate/20140131175502_create_bookmarks.rb +0 -18
  97. data/spec/internal/db/migrate/20140131175503_remove_editable_fields_from_bookmarks.rb +0 -12
  98. data/spec/internal/db/migrate/20140131175504_add_user_types_to_bookmarks_searches.rb +0 -16
  99. data/spec/internal/db/migrate/20140131175505_acts_as_follower_migration.rb +0 -17
  100. data/spec/internal/db/migrate/20140131175506_add_social_to_users.rb +0 -13
  101. data/spec/internal/db/migrate/20140131175507_create_single_use_links.rb +0 -12
  102. data/spec/internal/db/migrate/20140131175508_add_ldap_attrs_to_user.rb +0 -27
  103. data/spec/internal/db/migrate/20140131175509_add_avatars_to_users.rb +0 -9
  104. data/spec/internal/db/migrate/20140131175510_create_checksum_audit_logs.rb +0 -20
  105. data/spec/internal/db/migrate/20140131175511_create_version_committers.rb +0 -15
  106. data/spec/internal/db/migrate/20140131175512_add_groups_to_users.rb +0 -11
  107. data/spec/internal/db/migrate/20140131175513_create_local_authorities.rb +0 -50
  108. data/spec/internal/db/migrate/20140131175514_create_trophies.rb +0 -10
  109. data/spec/internal/db/migrate/20140131175536_create_mailboxer.mailboxer_engine.rb +0 -62
  110. data/spec/internal/db/migrate/20140131175537_add_notified_object.mailboxer_engine.rb +0 -18
  111. data/spec/internal/db/migrate/20140131175538_add_notification_code.mailboxer_engine.rb +0 -14
  112. data/spec/internal/db/migrate/20140131175539_add_attachments.mailboxer_engine.rb +0 -10
  113. data/spec/internal/db/migrate/20140131175540_rename_receipts_read.mailboxer_engine.rb +0 -10
  114. data/spec/internal/db/migrate/20140131175541_add_global_notification_support.mailboxer_engine.rb +0 -10
  115. data/spec/internal/db/migrate/20140131175545_add_terms_of_service_to_user.curate_engine.rb +0 -6
  116. data/spec/internal/db/migrate/20140131175546_add_user_force_update_profile.curate_engine.rb +0 -9
  117. data/spec/internal/db/migrate/20140131175547_create_help_requests.curate_engine.rb +0 -23
  118. data/spec/internal/db/migrate/20140131175548_add_repository_id_to_user.curate_engine.rb +0 -7
  119. data/spec/internal/db/migrate/20140131175549_create_curate_proxy_deposit_rights.curate_engine.rb +0 -12
  120. data/spec/internal/db/migrate/20140131175550_change_display_name_to_name.curate_engine.rb +0 -7
  121. data/spec/internal/fedora_conf/conf/development/fedora.fcfg +0 -953
  122. data/spec/internal/fedora_conf/conf/test/fedora.fcfg +0 -953
  123. data/spec/internal/solr_conf/conf/schema.xml +0 -273
  124. data/spec/internal/solr_conf/conf/solrconfig.xml +0 -167
  125. data/spec/internal/solr_conf/solr.xml +0 -35
  126. data/spec/internal/test/models/user_test.rb +0 -7
@@ -1,273 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <schema name="Hydra" version="1.5">
3
- <!-- NOTE: various comments and unused configuration possibilities have been purged
4
- from this file. Please refer to http://wiki.apache.org/solr/SchemaXml,
5
- as well as the default schema file included with Solr -->
6
-
7
- <uniqueKey>id</uniqueKey>
8
-
9
- <fields>
10
- <field name="id" type="string" stored="true" indexed="true" multiValued="false" required="true"/>
11
- <field name="timestamp" type="date" indexed="true" stored="true" default="NOW" multiValued="false"/>
12
-
13
- <field name="lat" type="tdouble" stored="true" indexed="true" multiValued="false"/>
14
- <field name="lng" type="tdouble" stored="true" indexed="true" multiValued="false"/>
15
-
16
- <!-- NOTE: not all possible Solr field types are represented in the dynamic fields -->
17
-
18
- <!-- text (_t...) -->
19
- <dynamicField name="*_ti" type="text" stored="false" indexed="true" multiValued="false"/>
20
- <dynamicField name="*_tim" type="text" stored="false" indexed="true" multiValued="true"/>
21
- <dynamicField name="*_ts" type="text" stored="true" indexed="false" multiValued="false"/>
22
- <dynamicField name="*_tsm" type="text" stored="true" indexed="false" multiValued="true"/>
23
- <dynamicField name="*_tsi" type="text" stored="true" indexed="true" multiValued="false"/>
24
- <dynamicField name="*_tsim" type="text" stored="true" indexed="true" multiValued="true"/>
25
- <dynamicField name="*_tiv" type="text" stored="false" indexed="true" multiValued="false" termVectors="true" termPositions="true" termOffsets="true"/>
26
- <dynamicField name="*_timv" type="text" stored="false" indexed="true" multiValued="true" termVectors="true" termPositions="true" termOffsets="true"/>
27
- <dynamicField name="*_tsiv" type="text" stored="true" indexed="true" multiValued="false" termVectors="true" termPositions="true" termOffsets="true"/>
28
- <dynamicField name="*_tsimv" type="text" stored="true" indexed="true" multiValued="true" termVectors="true" termPositions="true" termOffsets="true"/>
29
-
30
- <!-- English text (_te...) -->
31
- <dynamicField name="*_tei" type="text_en" stored="false" indexed="true" multiValued="false"/>
32
- <dynamicField name="*_teim" type="text_en" stored="false" indexed="true" multiValued="true"/>
33
- <dynamicField name="*_tes" type="text_en" stored="true" indexed="false" multiValued="false"/>
34
- <dynamicField name="*_tesm" type="text_en" stored="true" indexed="false" multiValued="true"/>
35
- <dynamicField name="*_tesi" type="text_en" stored="true" indexed="true" multiValued="false"/>
36
- <dynamicField name="*_tesim" type="text_en" stored="true" indexed="true" multiValued="true"/>
37
- <dynamicField name="*_teiv" type="text_en" stored="false" indexed="true" multiValued="false" termVectors="true" termPositions="true" termOffsets="true"/>
38
- <dynamicField name="*_teimv" type="text_en" stored="false" indexed="true" multiValued="true" termVectors="true" termPositions="true" termOffsets="true"/>
39
- <dynamicField name="*_tesiv" type="text_en" stored="true" indexed="true" multiValued="false" termVectors="true" termPositions="true" termOffsets="true"/>
40
- <dynamicField name="*_tesimv" type="text_en" stored="true" indexed="true" multiValued="true" termVectors="true" termPositions="true" termOffsets="true"/>
41
-
42
- <!-- string (_s...) -->
43
- <dynamicField name="*_si" type="string" stored="false" indexed="true" multiValued="false"/>
44
- <dynamicField name="*_sim" type="string" stored="false" indexed="true" multiValued="true"/>
45
- <dynamicField name="*_ss" type="string" stored="true" indexed="false" multiValued="false"/>
46
- <dynamicField name="*_ssm" type="string" stored="true" indexed="false" multiValued="true"/>
47
- <dynamicField name="*_ssi" type="string" stored="true" indexed="true" multiValued="false"/>
48
- <dynamicField name="*_ssim" type="string" stored="true" indexed="true" multiValued="true"/>
49
- <dynamicField name="*_ssort" type="alphaSort" stored="false" indexed="true" multiValued="false"/>
50
-
51
- <!-- integer (_i...) -->
52
- <dynamicField name="*_ii" type="int" stored="false" indexed="true" multiValued="false"/>
53
- <dynamicField name="*_iim" type="int" stored="false" indexed="true" multiValued="true"/>
54
- <dynamicField name="*_is" type="int" stored="true" indexed="false" multiValued="false"/>
55
- <dynamicField name="*_ism" type="int" stored="true" indexed="false" multiValued="true"/>
56
- <dynamicField name="*_isi" type="int" stored="true" indexed="true" multiValued="false"/>
57
- <dynamicField name="*_isim" type="int" stored="true" indexed="true" multiValued="true"/>
58
-
59
- <!-- trie integer (_it...) (for faster range queries) -->
60
- <dynamicField name="*_iti" type="tint" stored="false" indexed="true" multiValued="false"/>
61
- <dynamicField name="*_itim" type="tint" stored="false" indexed="true" multiValued="true"/>
62
- <dynamicField name="*_its" type="tint" stored="true" indexed="false" multiValued="false"/>
63
- <dynamicField name="*_itsm" type="tint" stored="true" indexed="false" multiValued="true"/>
64
- <dynamicField name="*_itsi" type="tint" stored="true" indexed="true" multiValued="false"/>
65
- <dynamicField name="*_itsim" type="tint" stored="true" indexed="true" multiValued="true"/>
66
-
67
- <!-- date (_dt...) -->
68
- <!-- The format for this date field is of the form 1995-12-31T23:59:59Z
69
- Optional fractional seconds are allowed: 1995-12-31T23:59:59.999Z -->
70
- <dynamicField name="*_dti" type="date" stored="false" indexed="true" multiValued="false"/>
71
- <dynamicField name="*_dtim" type="date" stored="false" indexed="true" multiValued="true"/>
72
- <dynamicField name="*_dts" type="date" stored="true" indexed="false" multiValued="false"/>
73
- <dynamicField name="*_dtsm" type="date" stored="true" indexed="false" multiValued="true"/>
74
- <dynamicField name="*_dtsi" type="date" stored="true" indexed="true" multiValued="false"/>
75
- <dynamicField name="*_dtsim" type="date" stored="true" indexed="true" multiValued="true"/>
76
-
77
- <!-- trie date (_dtt...) (for faster range queries) -->
78
- <dynamicField name="*_dtti" type="tdate" stored="false" indexed="true" multiValued="false"/>
79
- <dynamicField name="*_dttim" type="tdate" stored="false" indexed="true" multiValued="true"/>
80
- <dynamicField name="*_dtts" type="tdate" stored="true" indexed="false" multiValued="false"/>
81
- <dynamicField name="*_dttsm" type="tdate" stored="true" indexed="false" multiValued="true"/>
82
- <dynamicField name="*_dttsi" type="tdate" stored="true" indexed="true" multiValued="false"/>
83
- <dynamicField name="*_dttsim" type="tdate" stored="true" indexed="true" multiValued="true"/>
84
-
85
- <!-- long (_l...) -->
86
- <dynamicField name="*_li" type="long" stored="false" indexed="true" multiValued="false"/>
87
- <dynamicField name="*_lim" type="long" stored="false" indexed="true" multiValued="true"/>
88
- <dynamicField name="*_ls" type="long" stored="true" indexed="false" multiValued="false"/>
89
- <dynamicField name="*_lsm" type="long" stored="true" indexed="false" multiValued="true"/>
90
- <dynamicField name="*_lsi" type="long" stored="true" indexed="true" multiValued="false"/>
91
- <dynamicField name="*_lsim" type="long" stored="true" indexed="true" multiValued="true"/>
92
-
93
- <!-- trie long (_lt...) (for faster range queries) -->
94
- <dynamicField name="*_lti" type="tlong" stored="false" indexed="true" multiValued="false"/>
95
- <dynamicField name="*_ltim" type="tlong" stored="false" indexed="true" multiValued="true"/>
96
- <dynamicField name="*_lts" type="tlong" stored="true" indexed="false" multiValued="false"/>
97
- <dynamicField name="*_ltsm" type="tlong" stored="true" indexed="false" multiValued="true"/>
98
- <dynamicField name="*_ltsi" type="tlong" stored="true" indexed="true" multiValued="false"/>
99
- <dynamicField name="*_ltsim" type="tlong" stored="true" indexed="true" multiValued="true"/>
100
-
101
- <!-- double (_db...) -->
102
- <dynamicField name="*_dbi" type="double" stored="false" indexed="true" multiValued="false"/>
103
- <dynamicField name="*_dbim" type="double" stored="false" indexed="true" multiValued="true"/>
104
- <dynamicField name="*_dbs" type="double" stored="true" indexed="false" multiValued="false"/>
105
- <dynamicField name="*_dbsm" type="double" stored="true" indexed="false" multiValued="true"/>
106
- <dynamicField name="*_dbsi" type="double" stored="true" indexed="true" multiValued="false"/>
107
- <dynamicField name="*_dbsim" type="double" stored="true" indexed="true" multiValued="true"/>
108
-
109
- <!-- trie double (_dbt...) (for faster range queries) -->
110
- <dynamicField name="*_dbti" type="tdouble" stored="false" indexed="true" multiValued="false"/>
111
- <dynamicField name="*_dbtim" type="tdouble" stored="false" indexed="true" multiValued="true"/>
112
- <dynamicField name="*_dbts" type="tdouble" stored="true" indexed="false" multiValued="false"/>
113
- <dynamicField name="*_dbtsm" type="tdouble" stored="true" indexed="false" multiValued="true"/>
114
- <dynamicField name="*_dbtsi" type="tdouble" stored="true" indexed="true" multiValued="false"/>
115
- <dynamicField name="*_dbtsim" type="tdouble" stored="true" indexed="true" multiValued="true"/>
116
-
117
- <!-- float (_f...) -->
118
- <dynamicField name="*_fi" type="float" stored="false" indexed="true" multiValued="false"/>
119
- <dynamicField name="*_fim" type="float" stored="false" indexed="true" multiValued="true"/>
120
- <dynamicField name="*_fs" type="float" stored="true" indexed="false" multiValued="false"/>
121
- <dynamicField name="*_fsm" type="float" stored="true" indexed="false" multiValued="true"/>
122
- <dynamicField name="*_fsi" type="float" stored="true" indexed="true" multiValued="false"/>
123
- <dynamicField name="*_fsim" type="float" stored="true" indexed="true" multiValued="true"/>
124
-
125
- <!-- trie float (_ft...) (for faster range queries) -->
126
- <dynamicField name="*_fti" type="tfloat" stored="false" indexed="true" multiValued="false"/>
127
- <dynamicField name="*_ftim" type="tfloat" stored="false" indexed="true" multiValued="true"/>
128
- <dynamicField name="*_fts" type="tfloat" stored="true" indexed="false" multiValued="false"/>
129
- <dynamicField name="*_ftsm" type="tfloat" stored="true" indexed="false" multiValued="true"/>
130
- <dynamicField name="*_ftsi" type="tfloat" stored="true" indexed="true" multiValued="false"/>
131
- <dynamicField name="*_ftsim" type="tfloat" stored="true" indexed="true" multiValued="true"/>
132
-
133
- <!-- boolean (_b...) -->
134
- <dynamicField name="*_bi" type="boolean" stored="false" indexed="true" multiValued="false"/>
135
- <dynamicField name="*_bs" type="boolean" stored="true" indexed="false" multiValued="false"/>
136
- <dynamicField name="*_bsi" type="boolean" stored="true" indexed="true" multiValued="false"/>
137
-
138
- <!-- Type used to index the lat and lon components for the "location" FieldType -->
139
- <dynamicField name="*_coordinate" type="tdouble" indexed="true" stored="false" />
140
-
141
- <!-- location (_ll...) -->
142
- <dynamicField name="*_lli" type="location" stored="false" indexed="true" multiValued="false"/>
143
- <dynamicField name="*_llim" type="location" stored="false" indexed="true" multiValued="true"/>
144
- <dynamicField name="*_lls" type="location" stored="true" indexed="false" multiValued="false"/>
145
- <dynamicField name="*_llsm" type="location" stored="true" indexed="false" multiValued="true"/>
146
- <dynamicField name="*_llsi" type="location" stored="true" indexed="true" multiValued="false"/>
147
- <dynamicField name="*_llsim" type="location" stored="true" indexed="true" multiValued="true"/>
148
-
149
- <!-- you must define copyField source and dest fields explicity or schemaBrowser doesn't work -->
150
- <field name="all_text_timv" type="text" stored="false" indexed="true" multiValued="true" termVectors="true" termPositions="true" termOffsets="true"/>
151
-
152
-
153
- </fields>
154
-
155
-
156
- <!-- Above, multiple source fields are copied to the [text] field.
157
- Another way to map multiple source fields to the same
158
- destination field is to use the dynamic field syntax.
159
- copyField also supports a maxChars to copy setting. -->
160
-
161
- <!-- <copyField source="*_tesim" dest="all_text_timv" maxChars="3000"/> -->
162
-
163
- <types>
164
- <fieldType name="string" class="solr.StrField" sortMissingLast="true" />
165
- <fieldType name="boolean" class="solr.BoolField" sortMissingLast="true"/>
166
- <fieldType name="rand" class="solr.RandomSortField" omitNorms="true"/>
167
-
168
- <!-- Default numeric field types. -->
169
- <fieldType name="int" class="solr.TrieIntField" precisionStep="0" positionIncrementGap="0"/>
170
- <fieldType name="float" class="solr.TrieFloatField" precisionStep="0" positionIncrementGap="0"/>
171
- <fieldType name="long" class="solr.TrieLongField" precisionStep="0" positionIncrementGap="0"/>
172
- <fieldType name="double" class="solr.TrieDoubleField" precisionStep="0" positionIncrementGap="0"/>
173
-
174
- <!-- trie numeric field types for faster range queries -->
175
- <fieldType name="tint" class="solr.TrieIntField" precisionStep="8" positionIncrementGap="0"/>
176
- <fieldType name="tfloat" class="solr.TrieFloatField" precisionStep="8" positionIncrementGap="0"/>
177
- <fieldType name="tlong" class="solr.TrieLongField" precisionStep="8" positionIncrementGap="0"/>
178
- <fieldType name="tdouble" class="solr.TrieDoubleField" precisionStep="8" positionIncrementGap="0"/>
179
-
180
- <!-- The format for this date field is of the form 1995-12-31T23:59:59Z
181
- Optional fractional seconds are allowed: 1995-12-31T23:59:59.999Z
182
- -->
183
- <fieldType name="date" class="solr.TrieDateField" precisionStep="0" positionIncrementGap="0"/>
184
- <!-- A Trie based date field for faster date range queries and date faceting. -->
185
- <fieldType name="tdate" class="solr.TrieDateField" precisionStep="6" positionIncrementGap="0"/>
186
-
187
-
188
- <!-- This point type indexes the coordinates as separate fields (subFields)
189
- If subFieldType is defined, it references a type, and a dynamic field
190
- definition is created matching *___<typename>. Alternately, if
191
- subFieldSuffix is defined, that is used to create the subFields.
192
- Example: if subFieldType="double", then the coordinates would be
193
- indexed in fields myloc_0___double,myloc_1___double.
194
- Example: if subFieldSuffix="_d" then the coordinates would be indexed
195
- in fields myloc_0_d,myloc_1_d
196
- The subFields are an implementation detail of the fieldType, and end
197
- users normally should not need to know about them.
198
- -->
199
- <fieldType name="point" class="solr.PointType" dimension="2" subFieldSuffix="_d"/>
200
-
201
- <!-- A specialized field for geospatial search. If indexed, this fieldType must not be multivalued. -->
202
- <fieldType name="location" class="solr.LatLonType" subFieldSuffix="_coordinate"/>
203
-
204
- <!-- An alternative geospatial field type new to Solr 4. It supports multiValued and polygon shapes.
205
- For more information about this and other Spatial fields new to Solr 4, see:
206
- http://wiki.apache.org/solr/SolrAdaptersForLuceneSpatial4
207
- -->
208
- <fieldType name="location_rpt" class="solr.SpatialRecursivePrefixTreeFieldType"
209
- geo="true" distErrPct="0.025" maxDistErr="0.000009" units="degrees" />
210
-
211
- <fieldType name="text" class="solr.TextField" omitNorms="false">
212
- <analyzer>
213
- <tokenizer class="solr.ICUTokenizerFactory"/>
214
- <filter class="solr.ICUFoldingFilterFactory"/> <!-- NFKC, case folding, diacritics removed -->
215
- <filter class="solr.TrimFilterFactory"/>
216
- </analyzer>
217
- </fieldType>
218
-
219
- <!-- A text field that only splits on whitespace for exact matching of words -->
220
- <fieldType name="text_ws" class="solr.TextField" positionIncrementGap="100">
221
- <analyzer>
222
- <tokenizer class="solr.WhitespaceTokenizerFactory"/>
223
- <filter class="solr.TrimFilterFactory"/>
224
- </analyzer>
225
- </fieldType>
226
-
227
- <!-- single token analyzed text, for sorting. Punctuation is significant. -->
228
- <fieldtype name="alphaSort" class="solr.TextField" sortMissingLast="true" omitNorms="true">
229
- <analyzer>
230
- <tokenizer class="solr.KeywordTokenizerFactory" />
231
- <filter class="solr.ICUFoldingFilterFactory"/>
232
- <filter class="solr.TrimFilterFactory" />
233
- </analyzer>
234
- </fieldtype>
235
-
236
- <!-- A text field with defaults appropriate for English -->
237
- <fieldType name="text_en" class="solr.TextField" positionIncrementGap="100">
238
- <analyzer>
239
- <tokenizer class="solr.ICUTokenizerFactory"/>
240
- <filter class="solr.ICUFoldingFilterFactory"/> <!-- NFKC, case folding, diacritics removed -->
241
- <filter class="solr.EnglishPossessiveFilterFactory"/>
242
- <!-- EnglishMinimalStemFilterFactory is less aggressive than PorterStemFilterFactory: -->
243
- <filter class="solr.EnglishMinimalStemFilterFactory"/>
244
- <!--
245
- <filter class="solr.PorterStemFilterFactory"/>
246
- -->
247
- <filter class="solr.TrimFilterFactory"/>
248
- </analyzer>
249
- </fieldType>
250
-
251
- <!-- queries for paths match documents at that path, or in descendent paths -->
252
- <fieldType name="descendent_path" class="solr.TextField">
253
- <analyzer type="index">
254
- <tokenizer class="solr.PathHierarchyTokenizerFactory" delimiter="/" />
255
- </analyzer>
256
- <analyzer type="query">
257
- <tokenizer class="solr.KeywordTokenizerFactory" />
258
- </analyzer>
259
- </fieldType>
260
-
261
- <!-- queries for paths match documents at that path, or in ancestor paths -->
262
- <fieldType name="ancestor_path" class="solr.TextField">
263
- <analyzer type="index">
264
- <tokenizer class="solr.KeywordTokenizerFactory" />
265
- </analyzer>
266
- <analyzer type="query">
267
- <tokenizer class="solr.PathHierarchyTokenizerFactory" delimiter="/" />
268
- </analyzer>
269
- </fieldType>
270
-
271
- </types>
272
-
273
- </schema>
@@ -1,167 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" ?>
2
- <config>
3
- <!-- NOTE: various comments and unused configuration possibilities have been purged
4
- from this file. Please refer to http://wiki.apache.org/solr/SolrConfigXml,
5
- as well as the default solrconfig file included with Solr -->
6
-
7
- <abortOnConfigurationError>${solr.abortOnConfigurationError:true}</abortOnConfigurationError>
8
-
9
- <luceneMatchVersion>LUCENE_40</luceneMatchVersion>
10
-
11
- <directoryFactory name="DirectoryFactory" class="${solr.directoryFactory:solr.StandardDirectoryFactory}"/>
12
-
13
- <!-- solr lib dirs -->
14
- <lib dir="../lib/contrib/analysis-extras/lib" />
15
- <lib dir="../lib/contrib/analysis-extras/lucene-libs" />
16
-
17
- <dataDir>${solr.data.dir:}</dataDir>
18
-
19
- <requestHandler name="search" class="solr.SearchHandler" default="true">
20
- <!-- default values for query parameters can be specified, these
21
- will be overridden by parameters in the request
22
- -->
23
- <lst name="defaults">
24
- <str name="defType">edismax</str>
25
- <str name="echoParams">explicit</str>
26
- <str name="q.alt">*:*</str>
27
- <str name="mm">2&lt;-1 5&lt;-2 6&lt;90%</str>
28
- <int name="qs">1</int>
29
- <int name="ps">2</int>
30
- <float name="tie">0.01</float>
31
- <!-- this qf and pf are used by default, if not otherwise specified by
32
- client. The default blacklight_config will use these for the
33
- "keywords" search. See the author_qf/author_pf, title_qf, etc
34
- below, which the default blacklight_config will specify for
35
- those searches. You may also be interested in:
36
- http://wiki.apache.org/solr/LocalParams
37
- -->
38
- <str name="qf">
39
- id
40
- active_fedora_model_ssi
41
- title_tesim
42
- author_tesim
43
- subject_tesim
44
- </str>
45
- <str name="pf">
46
- all_text_timv^10
47
- </str>
48
-
49
- <str name="author_qf">
50
- author_tesim
51
- </str>
52
- <str name="author_pf">
53
- </str>
54
- <str name="title_qf">
55
- title_tesim
56
- </str>
57
- <str name="title_pf">
58
- </str>
59
- <str name="subject_qf">
60
- subject_tesim
61
- </str>
62
- <str name="subject_pf">
63
- </str>
64
-
65
- <str name="fl">
66
- *,
67
- score
68
- </str>
69
-
70
- <str name="facet">true</str>
71
- <str name="facet.mincount">1</str>
72
- <str name="facet.limit">10</str>
73
- <str name="facet.field">active_fedora_model_ssi</str>
74
- <str name="facet.field">subject_sim</str>
75
-
76
- <str name="spellcheck">true</str>
77
- <str name="spellcheck.dictionary">default</str>
78
- <str name="spellcheck.onlyMorePopular">true</str>
79
- <str name="spellcheck.extendedResults">true</str>
80
- <str name="spellcheck.collate">false</str>
81
- <str name="spellcheck.count">5</str>
82
-
83
- </lst>
84
- <arr name="last-components">
85
- <str>spellcheck</str>
86
- </arr>
87
- </requestHandler>
88
-
89
- <requestHandler name="permissions" class="solr.SearchHandler" >
90
- <lst name="defaults">
91
- <str name="facet">off</str>
92
- <str name="echoParams">all</str>
93
- <str name="rows">1</str>
94
- <str name="q">{!raw f=id v=$id}</str> <!-- use id=666 instead of q=id:666 -->
95
- <str name="fl">
96
- id,
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,
101
- depositor_ti,
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
108
- </str>
109
- </lst>
110
- </requestHandler>
111
-
112
- <requestHandler name="standard" class="solr.SearchHandler">
113
- <lst name="defaults">
114
- <str name="echoParams">explicit</str>
115
- <str name="defType">lucene</str>
116
- </lst>
117
- </requestHandler>
118
-
119
- <!-- for requests to get a single document; use id=666 instead of q=id:666 -->
120
- <requestHandler name="document" class="solr.SearchHandler" >
121
- <lst name="defaults">
122
- <str name="echoParams">all</str>
123
- <str name="fl">*</str>
124
- <str name="rows">1</str>
125
- <str name="q">{!raw f=id v=$id}</str> <!-- use id=666 instead of q=id:666 -->
126
- </lst>
127
- </requestHandler>
128
-
129
-
130
- <searchComponent name="spellcheck" class="solr.SpellCheckComponent">
131
- <str name="queryAnalyzerFieldType">textSpell</str>
132
- <!-- Multiple "Spell Checkers" can be declared and used by this component
133
- (e.g. for title_spell field)
134
- -->
135
- <lst name="spellchecker">
136
- <str name="name">default</str>
137
- <str name="field">spell</str>
138
- <str name="spellcheckIndexDir">./spell</str>
139
- <str name="buildOnOptimize">true</str>
140
- </lst>
141
- </searchComponent>
142
-
143
- <requestHandler name="/replication" class="solr.ReplicationHandler" startup="lazy" />
144
-
145
- <requestDispatcher handleSelect="true" >
146
- <requestParsers enableRemoteStreaming="true" multipartUploadLimitInKB="2048" />
147
- </requestDispatcher>
148
-
149
- <requestHandler name="/analysis/field" startup="lazy" class="solr.FieldAnalysisRequestHandler" />
150
- <requestHandler name="/update" class="solr.UpdateRequestHandler" />
151
- <requestHandler name="/admin/" class="org.apache.solr.handler.admin.AdminHandlers" />
152
-
153
- <requestHandler name="/admin/ping" class="solr.PingRequestHandler">
154
- <lst name="invariants">
155
- <str name="q">solrpingquery</str>
156
- </lst>
157
- <lst name="defaults">
158
- <str name="echoParams">all</str>
159
- </lst>
160
- </requestHandler>
161
-
162
- <!-- config for the admin interface -->
163
- <admin>
164
- <defaultQuery>search</defaultQuery>
165
- </admin>
166
-
167
- </config>
@@ -1,35 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" ?>
2
- <!--
3
- Licensed to the Apache Software Foundation (ASF) under one or more
4
- contributor license agreements. See the NOTICE file distributed with
5
- this work for additional information regarding copyright ownership.
6
- The ASF licenses this file to You under the Apache License, Version 2.0
7
- (the "License"); you may not use this file except in compliance with
8
- the License. You may obtain a copy of the License at
9
-
10
- http://www.apache.org/licenses/LICENSE-2.0
11
-
12
- Unless required by applicable law or agreed to in writing, software
13
- distributed under the License is distributed on an "AS IS" BASIS,
14
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- See the License for the specific language governing permissions and
16
- limitations under the License.
17
- -->
18
-
19
- <!--
20
- All (relative) paths are relative to the installation path
21
-
22
- persistent: Save changes made via the API to this file
23
- sharedLib: path to a lib directory that will be shared across all cores
24
- -->
25
- <solr persistent="false" sharedLib="lib">
26
-
27
- <!--
28
- adminPath: RequestHandler path to manage cores.
29
- If 'null' (or absent), cores will not be manageable via REST
30
- -->
31
- <cores adminPath="/admin/cores" defaultCoreName="development">
32
- <core name="development" instanceDir="development-core" />
33
- <core name="test" instanceDir="test-core" />
34
- </cores>
35
- </solr>