blacklight_cql 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.rdoc +142 -0
  3. data/Rakefile +43 -0
  4. data/VERSION +1 -0
  5. data/app/controllers/blacklight_cql/explain_controller.rb +17 -0
  6. data/app/helpers/blacklight_cql/explain_helper.rb +44 -0
  7. data/app/views/blacklight_cql/explain/explain.xml.builder +30 -0
  8. data/config/routes.rb +10 -0
  9. data/init.rb +1 -0
  10. data/install.rb +1 -0
  11. data/lib/blacklight_cql/blacklight_to_solr.rb +115 -0
  12. data/lib/blacklight_cql/solr_helper_extension.rb +24 -0
  13. data/lib/blacklight_cql/template_helper_extension.rb +19 -0
  14. data/lib/blacklight_cql.rb +25 -0
  15. data/rails/init.rb +32 -0
  16. data/spec/app_root/app/controllers/application_controller.rb +2 -0
  17. data/spec/app_root/config/boot.rb +115 -0
  18. data/spec/app_root/config/database.yml +31 -0
  19. data/spec/app_root/config/environment.rb +30 -0
  20. data/spec/app_root/config/environments/in_memory.rb +0 -0
  21. data/spec/app_root/config/environments/mysql.rb +0 -0
  22. data/spec/app_root/config/environments/postgresql.rb +0 -0
  23. data/spec/app_root/config/environments/sqlite.rb +0 -0
  24. data/spec/app_root/config/environments/sqlite3.rb +0 -0
  25. data/spec/app_root/config/routes.rb +4 -0
  26. data/spec/app_root/lib/blacklight/search_fields.rb +97 -0
  27. data/spec/app_root/lib/console_with_fixtures.rb +4 -0
  28. data/spec/blacklight_to_solr_spec.rb +50 -0
  29. data/spec/data/luke.yaml +75 -0
  30. data/spec/data/zeerex-2.0.xsd +482 -0
  31. data/spec/marc_data/chomsky.mrc +1 -0
  32. data/spec/marc_data/social_journal.mrc +1 -0
  33. data/spec/rcov.opts +2 -0
  34. data/spec/spec.opts +4 -0
  35. data/spec/spec_helper.rb +73 -0
  36. data/spec/views/explain.xml.builder_spec.rb +125 -0
  37. data/tasks/blacklight_cql_tasks.rake +4 -0
  38. data/uninstall.rb +1 -0
  39. metadata +146 -0
@@ -0,0 +1,482 @@
1
+ <schema
2
+ xmlns='http://www.w3.org/2001/XMLSchema'
3
+ targetNamespace='http://explain.z3950.org/dtd/2.0/'
4
+ xmlns:explain='http://explain.z3950.org/dtd/2.0/'>
5
+
6
+ <element name='explain'>
7
+ <complexType>
8
+ <sequence>
9
+ <element ref='explain:serverInfo'/>
10
+ <element ref='explain:databaseInfo' minOccurs='0' maxOccurs='1'/>
11
+ <element ref='explain:metaInfo' minOccurs='0' maxOccurs='1'/>
12
+ <element ref='explain:indexInfo' minOccurs='0' maxOccurs='1'/>
13
+ <choice minOccurs='0' maxOccurs='1'>
14
+ <element ref='explain:recordInfo'/>
15
+ <element ref='explain:schemaInfo'/>
16
+ </choice>
17
+ <element ref='explain:configInfo' minOccurs='0' maxOccurs='1'/>
18
+ </sequence>
19
+ <attribute name='authoritative' use='optional' default='false'>
20
+ <simpleType>
21
+ <restriction base='string'>
22
+ <enumeration value='true'/>
23
+ <enumeration value='false'/>
24
+ </restriction>
25
+ </simpleType>
26
+ </attribute>
27
+ <attribute name='id' type='string' use='optional'/>
28
+ </complexType>
29
+ </element>
30
+
31
+ <element name='serverInfo'>
32
+ <complexType>
33
+ <sequence>
34
+ <element ref='explain:host'/>
35
+ <element ref='explain:port'/>
36
+ <element ref='explain:database'/>
37
+ <element ref='explain:authentication' minOccurs='0' maxOccurs='1'/>
38
+ </sequence>
39
+ <attribute name='protocol' type='string' use='optional' default='Z39.50'/>
40
+ <attribute name='version' type='string' use='optional' default='3'/>
41
+ <attribute name='transport' type='string' use='optional' default='http'/>
42
+ <attribute name='wsdl' type='string' use='optional'/>
43
+ </complexType>
44
+ </element>
45
+
46
+ <element name='host'>
47
+ <complexType mixed='true'>
48
+ </complexType>
49
+ </element>
50
+
51
+ <element name='port'>
52
+ <complexType mixed='true'>
53
+ </complexType>
54
+ </element>
55
+
56
+ <element name='database'>
57
+ <complexType mixed='true'>
58
+ <attribute name='numRecs' type='string' use='optional'/>
59
+ <attribute name='lastUpdate' type='string' use='optional'/>
60
+ </complexType>
61
+ </element>
62
+
63
+ <element name='authentication'>
64
+ <complexType>
65
+ <choice>
66
+ <element ref='explain:open'/>
67
+ <sequence>
68
+ <element ref='explain:user' minOccurs='0' maxOccurs='1'/>
69
+ <element ref='explain:group' minOccurs='0' maxOccurs='1'/>
70
+ <element ref='explain:password' minOccurs='0' maxOccurs='1'/>
71
+ </sequence>
72
+ </choice>
73
+ <attribute name='required' use='optional' default='true'>
74
+ <simpleType>
75
+ <restriction base='string'>
76
+ <enumeration value='true'/>
77
+ <enumeration value='false'/>
78
+ </restriction>
79
+ </simpleType>
80
+ </attribute>
81
+ </complexType>
82
+ </element>
83
+
84
+ <element name='open'>
85
+ <complexType mixed='true'>
86
+ </complexType>
87
+ </element>
88
+
89
+ <element name='user'>
90
+ <complexType mixed='true'>
91
+ </complexType>
92
+ </element>
93
+
94
+ <element name='group'>
95
+ <complexType mixed='true'>
96
+ </complexType>
97
+ </element>
98
+
99
+ <element name='password'>
100
+ <complexType mixed='true'>
101
+ </complexType>
102
+ </element>
103
+
104
+ <element name='databaseInfo'>
105
+ <complexType>
106
+ <sequence>
107
+ <element ref='explain:title' minOccurs='0' maxOccurs='unbounded'/>
108
+ <element ref='explain:description' minOccurs='0' maxOccurs='unbounded'/>
109
+ <choice minOccurs='0' maxOccurs='unbounded'>
110
+ <element ref='explain:author'/>
111
+ <element ref='explain:contact'/>
112
+ <element ref='explain:extent'/>
113
+ <element ref='explain:history'/>
114
+ <element ref='explain:langUsage'/>
115
+ <element ref='explain:restrictions'/>
116
+ <element ref='explain:subjects'/>
117
+ <element ref='explain:links'/>
118
+ <element ref='explain:implementation'/>
119
+ </choice>
120
+ </sequence>
121
+ </complexType>
122
+ </element>
123
+
124
+ <element name='title'>
125
+ <complexType mixed='true'>
126
+ <attribute name='primary' use='optional'>
127
+ <simpleType>
128
+ <restriction base='string'>
129
+ <enumeration value='true'/>
130
+ <enumeration value='false'/>
131
+ </restriction>
132
+ </simpleType>
133
+ </attribute>
134
+ <attribute name='lang' type='string' use='optional'/>
135
+ </complexType>
136
+ </element>
137
+
138
+ <element name='description'>
139
+ <complexType mixed='true'>
140
+ <attribute name='primary' use='optional'>
141
+ <simpleType>
142
+ <restriction base='string'>
143
+ <enumeration value='true'/>
144
+ <enumeration value='false'/>
145
+ </restriction>
146
+ </simpleType>
147
+ </attribute>
148
+ <attribute name='lang' type='string' use='optional'/>
149
+ </complexType>
150
+ </element>
151
+
152
+ <element name='author'>
153
+ <complexType mixed='true'>
154
+ <attribute name='primary' use='optional'>
155
+ <simpleType>
156
+ <restriction base='string'>
157
+ <enumeration value='true'/>
158
+ <enumeration value='false'/>
159
+ </restriction>
160
+ </simpleType>
161
+ </attribute>
162
+ <attribute name='lang' type='string' use='optional'/>
163
+ </complexType>
164
+ </element>
165
+
166
+ <element name='contact'>
167
+ <complexType mixed='true'>
168
+ <attribute name='primary' use='optional'>
169
+ <simpleType>
170
+ <restriction base='string'>
171
+ <enumeration value='true'/>
172
+ <enumeration value='false'/>
173
+ </restriction>
174
+ </simpleType>
175
+ </attribute>
176
+ <attribute name='lang' type='string' use='optional'/>
177
+ </complexType>
178
+ </element>
179
+
180
+ <element name='extent'>
181
+ <complexType mixed='true'>
182
+ <attribute name='primary' use='optional'>
183
+ <simpleType>
184
+ <restriction base='string'>
185
+ <enumeration value='true'/>
186
+ <enumeration value='false'/>
187
+ </restriction>
188
+ </simpleType>
189
+ </attribute>
190
+ <attribute name='lang' type='string' use='optional'/>
191
+ </complexType>
192
+ </element>
193
+
194
+ <element name='history'>
195
+ <complexType mixed='true'>
196
+ <attribute name='primary' use='optional'>
197
+ <simpleType>
198
+ <restriction base='string'>
199
+ <enumeration value='true'/>
200
+ <enumeration value='false'/>
201
+ </restriction>
202
+ </simpleType>
203
+ </attribute>
204
+ <attribute name='lang' type='string' use='optional'/>
205
+ </complexType>
206
+ </element>
207
+
208
+ <element name='langUsage'>
209
+ <complexType mixed='true'>
210
+ <attribute name='codes' type='string' use='optional'/>
211
+ <attribute name='primary' use='optional'>
212
+ <simpleType>
213
+ <restriction base='string'>
214
+ <enumeration value='true'/>
215
+ <enumeration value='false'/>
216
+ </restriction>
217
+ </simpleType>
218
+ </attribute>
219
+ <attribute name='lang' type='string' use='optional'/>
220
+ </complexType>
221
+ </element>
222
+
223
+ <element name='restrictions'>
224
+ <complexType mixed='true'>
225
+ <attribute name='primary' use='optional'>
226
+ <simpleType>
227
+ <restriction base='string'>
228
+ <enumeration value='true'/>
229
+ <enumeration value='false'/>
230
+ </restriction>
231
+ </simpleType>
232
+ </attribute>
233
+ <attribute name='lang' type='string' use='optional'/>
234
+ </complexType>
235
+ </element>
236
+
237
+ <element name='subjects'>
238
+ <complexType>
239
+ <sequence>
240
+ <element ref='explain:subject' maxOccurs='unbounded'/>
241
+ </sequence>
242
+ </complexType>
243
+ </element>
244
+
245
+ <element name='subject'>
246
+ <complexType mixed='true'>
247
+ </complexType>
248
+ </element>
249
+
250
+ <element name='links'>
251
+ <complexType>
252
+ <sequence>
253
+ <element ref='explain:link' maxOccurs='unbounded'/>
254
+ </sequence>
255
+ </complexType>
256
+ </element>
257
+
258
+ <element name='link'>
259
+ <complexType mixed='true'>
260
+ <attribute name='type' type='string' use='optional'/>
261
+ </complexType>
262
+ </element>
263
+
264
+ <element name='implementation'>
265
+ <complexType>
266
+ <sequence>
267
+ <element ref='explain:title' minOccurs='0' maxOccurs='unbounded'/>
268
+ </sequence>
269
+ <attribute name='identifier' type='string' use='optional'/>
270
+ <attribute name='version' type='string' use='optional'/>
271
+ </complexType>
272
+ </element>
273
+
274
+ <element name='metaInfo'>
275
+ <complexType>
276
+ <sequence>
277
+ <element ref='explain:dateModified'/>
278
+ <sequence minOccurs='0' maxOccurs='1'>
279
+ <element ref='explain:aggregatedFrom'/>
280
+ <element ref='explain:dateAggregated'/>
281
+ </sequence>
282
+ </sequence>
283
+ </complexType>
284
+ </element>
285
+
286
+ <element name='dateModified'>
287
+ <complexType mixed='true'>
288
+ </complexType>
289
+ </element>
290
+
291
+ <element name='aggregatedFrom'>
292
+ <complexType mixed='true'>
293
+ </complexType>
294
+ </element>
295
+
296
+ <element name='dateAggregated'>
297
+ <complexType mixed='true'>
298
+ </complexType>
299
+ </element>
300
+
301
+ <element name='indexInfo'>
302
+ <complexType>
303
+ <choice maxOccurs='unbounded'>
304
+ <element ref='explain:set'/>
305
+ <element ref='explain:index'/>
306
+ <element ref='explain:sortKeyword'/>
307
+ </choice>
308
+ </complexType>
309
+ </element>
310
+
311
+ <element name='set'>
312
+ <complexType>
313
+ <sequence>
314
+ <element ref='explain:title' minOccurs='0' maxOccurs='unbounded'/>
315
+ </sequence>
316
+ <attribute name='name' type='string' use='required'/>
317
+ <attribute name='identifier' type='string' use='required'/>
318
+ </complexType>
319
+ </element>
320
+
321
+ <element name='index'>
322
+ <complexType>
323
+ <sequence>
324
+ <element ref='explain:title' minOccurs='0' maxOccurs='unbounded'/>
325
+ <element ref='explain:map' maxOccurs='unbounded'/>
326
+ <element ref='explain:configInfo' minOccurs='0' maxOccurs='1'/>
327
+ </sequence>
328
+ <attribute name='id' type='string' use='optional'/>
329
+ <attribute name='search' use='optional'>
330
+ <simpleType>
331
+ <restriction base='string'>
332
+ <enumeration value='true'/>
333
+ <enumeration value='false'/>
334
+ </restriction>
335
+ </simpleType>
336
+ </attribute>
337
+ <attribute name='scan' use='optional'>
338
+ <simpleType>
339
+ <restriction base='string'>
340
+ <enumeration value='true'/>
341
+ <enumeration value='false'/>
342
+ </restriction>
343
+ </simpleType>
344
+ </attribute>
345
+ <attribute name='sort' use='optional'>
346
+ <simpleType>
347
+ <restriction base='string'>
348
+ <enumeration value='true'/>
349
+ <enumeration value='false'/>
350
+ </restriction>
351
+ </simpleType>
352
+ </attribute>
353
+ </complexType>
354
+ </element>
355
+
356
+ <element name='sortKeyword'>
357
+ <complexType mixed='true'>
358
+ </complexType>
359
+ </element>
360
+
361
+ <element name='map'>
362
+ <complexType>
363
+ <choice>
364
+ <sequence>
365
+ <element ref='explain:attr' maxOccurs='unbounded'/>
366
+ </sequence>
367
+ <element ref='explain:name'/>
368
+ </choice>
369
+ <attribute name='primary' use='optional' default='false'>
370
+ <simpleType>
371
+ <restriction base='string'>
372
+ <enumeration value='true'/>
373
+ <enumeration value='false'/>
374
+ </restriction>
375
+ </simpleType>
376
+ </attribute>
377
+ </complexType>
378
+ </element>
379
+
380
+ <element name='name'>
381
+ <complexType mixed='true'>
382
+ <attribute name='set' type='string' use='optional'/>
383
+ </complexType>
384
+ </element>
385
+
386
+ <element name='attr'>
387
+ <complexType mixed='true'>
388
+ <attribute name='type' type='string' use='required'/>
389
+ <attribute name='set' type='string' use='optional' default='1.2.840.10003.3.1'/>
390
+ </complexType>
391
+ </element>
392
+
393
+ <element name='recordInfo'>
394
+ <complexType>
395
+ <sequence>
396
+ <element ref='explain:recordSyntax' maxOccurs='unbounded'/>
397
+ </sequence>
398
+ </complexType>
399
+ </element>
400
+
401
+ <element name='recordSyntax'>
402
+ <complexType>
403
+ <sequence>
404
+ <element ref='explain:elementSet' maxOccurs='unbounded'/>
405
+ </sequence>
406
+ <attribute name='name' type='string' use='optional'/>
407
+ <attribute name='identifier' type='string' use='optional'/>
408
+ </complexType>
409
+ </element>
410
+
411
+ <element name='elementSet'>
412
+ <complexType>
413
+ <sequence>
414
+ <element ref='explain:title' minOccurs='0' maxOccurs='unbounded'/>
415
+ </sequence>
416
+ <attribute name='name' type='string' use='required'/>
417
+ </complexType>
418
+ </element>
419
+
420
+ <element name='schemaInfo'>
421
+ <complexType>
422
+ <sequence>
423
+ <element ref='explain:schema' maxOccurs='unbounded'/>
424
+ </sequence>
425
+ </complexType>
426
+ </element>
427
+
428
+ <element name='schema'>
429
+ <complexType>
430
+ <sequence>
431
+ <element ref='explain:title' minOccurs='0' maxOccurs='unbounded'/>
432
+ </sequence>
433
+ <attribute name='identifier' type='string' use='required'/>
434
+ <attribute name='name' type='string' use='required'/>
435
+ <attribute name='location' type='string' use='optional'/>
436
+ <attribute name='sort' use='optional' default='false'>
437
+ <simpleType>
438
+ <restriction base='string'>
439
+ <enumeration value='true'/>
440
+ <enumeration value='false'/>
441
+ </restriction>
442
+ </simpleType>
443
+ </attribute>
444
+ <attribute name='retrieve' use='optional' default='true'>
445
+ <simpleType>
446
+ <restriction base='string'>
447
+ <enumeration value='true'/>
448
+ <enumeration value='false'/>
449
+ </restriction>
450
+ </simpleType>
451
+ </attribute>
452
+ </complexType>
453
+ </element>
454
+
455
+ <element name='configInfo'>
456
+ <complexType>
457
+ <choice minOccurs='0' maxOccurs='unbounded'>
458
+ <element ref='explain:default'/>
459
+ <element ref='explain:setting'/>
460
+ <element ref='explain:supports'/>
461
+ </choice>
462
+ </complexType>
463
+ </element>
464
+
465
+ <element name='default'>
466
+ <complexType mixed='true'>
467
+ <attribute name='type' type='string' use='required'/>
468
+ </complexType>
469
+ </element>
470
+
471
+ <element name='setting'>
472
+ <complexType mixed='true'>
473
+ <attribute name='type' type='string' use='required'/>
474
+ </complexType>
475
+ </element>
476
+
477
+ <element name='supports'>
478
+ <complexType mixed='true'>
479
+ <attribute name='type' type='string' use='required'/>
480
+ </complexType>
481
+ </element>
482
+ </schema>
@@ -0,0 +1 @@
1
+ 04202cam 22004814a 450 0010008000000200020000080350012000280050017000400080041000570100017000980240018001150290019001330350012001520350016001640400039001800430021002190490009002400500025002490820018002741000019002922450190003112460040005012600044005413000025005855051611006105040064022215200804022856510051030896510051031406500049031916500055032406500022032956500028033177000021033457000037033668560083034039700022034869380071035089380040035799940012036199100026036319910063036572630804 a1594513120 (hc) a263080420090311050700.0060705s2007 cou b 001 0 eng  a 20060219803 a97815945131211 aYDXCPb2418933 a2630804 aocm70630340 aDLCcDLCdBAKERdC#PdYDXdOrLoB-B aaw-----an-us--- aJHEE00aDS63.2.U5bC445 200700a327.730562221 aChomsky, Noam.10aPerilous power :bthe Middle East & U.S. foreign policy : dialogues on terror, democracy, war, and justice /cNoam Chomsky & Gilbert Achcar ; edited with a preface by Stephen R. Shalom.30aMiddle East and U.S. foreign policy aBoulder :bParadigm Publishers,cc2007. axi, 276 p. ;c24 cm.0 aPreface -- Terrorism and conspiracies. Defining terrorism ; The terrorist threat ; Responding to terrorism ; 9/11 conspiracies ; Saddam Hussein's invasion of Kuwait -- Fundamentalism and democracy. Fundamentalism ; The Saudi Kingdom ; Democracy in the Middle East ; Fundamentalism and democracy ; Democracy since the Iraq invasion -- Sources of U.S. foreign policy in the Middle East. Oil ; Israel, the Israel lobby, and U.S. policy ; Israel and U.S. interests -- Wars in the "greater Middle East". Afghanistan ; Responding to 9/11 ; Afghanistan today ; The United States and Iraq, 2003 ; Other major powers and Iraq ; The current situation in Iraq ; The Iraqi insurgency ; U.S. policy in Iraq today ; What should the antiwar movement be calling for? ; Will withdrawal lead to civil war? ; The Kurds in Iraq ; The Kurds in Turkey -- Secession, self-determination, and justice ; Syria ; Iran -- The Israel-Palestine conflict. The legitimacy of Israel ; Palestinian say in any settlement ; Going from a settlement to lasting peace ; Palestinians within Israel ; Mizrahim ; The Palestinian refugees ; Efforts to achieve peace ; The Palestinian view of a settlement ; Zionism and the Palestinians ; Israeli politics ; Palestinian politics ; How can we support justice in Israel/Palestine? ; Boycotts, divestment, and other tactics ; Anti-semitism ; Anti-semitism in Western Europe ; Anti-Arab racism and Islamophobia -- Epilogue. The situation in Iraq ; Hamas in power ; The Israel-Hezbollah-Lebanon conflict ; The Israel lobby ; The United States and Iran ; Hezbollah ; Confrontation with Hamas and Hezbollah. aIncludes bibliographical references (p. 243-266) and index.1 a"Two of the most astute analysts of this part of the world are Noam Chomsky, the preeminent critic of U.S. foreign policy, and Gilbert Achcar, a leading specialist on the Middle East who lived in that region for many years. In their first book together, Chomsky and Achcar bring a keen understanding of the internal dynamics of the Middle East and of the role of the United States. They take up all the key questions of interest to concerned citizens, including such topics as terrorism, fundamentalism, conspiracies, oil, democracy, self-determination, anti-Semitism, and anti-Arab racism, as well as the war in Afghanistan, the invasion and occupation of Iraq, the Israeli-Palestinian conflict, the 2006 Israel-Hamas-Hezbollah armed conflict, and the sources of U.S. foreign policy."--BOOK JACKET. 0aMiddle EastxForeign relationszUnited States. 0aUnited StatesxForeign relationszMiddle East. 0aTerrorismxGovernment policyzUnited States. 0aIraq War, 2003-xProtest movementszUnited States. 0aInsurgencyzIraq. 0aDemocracyzMiddle East.1 aAchcar, Gilbert.1 aShalom, Stephen Rosskamm,d1948-413Table of contents onlyuhttp://www.loc.gov/catdir/toc/ecip0617/2006021980.html23a.05fepoli1b.2007 aBaker & TaylorbBKTYc22.95d17.21i1594513120n0006776861sactive aYBP Library ServicesbYANKn2418933 aC0bJHE a2630804bHorizon bib# aDS63.2.U5 C445 2007cc. 1i4412645lemainmemselsotenorm
@@ -0,0 +1 @@
1
+ 01859cas 2200421Ka 450 0010008000000220014000080350012000220050017000340080041000510350012000920350017001040350021001210370057001420400024001990490009002230900009002322450037002412460009002782600118002873000017004053100011004223620027004335200286004605300024007466500034007706500034008046500032008386500036008706500055009066500051009617100058010127760084010709460095011549940012012499100026012619910075012879910075013622659383 a1751-2395 a265938320090311200400.0080110c20079999mauar p 0 a0eng d a2659383 aocn190564913 a(OCoLC)190564913 bBlackwell Publishing, 350 Main St., Malden, MA 02148 aKTUcKTUdKTUdMdBJ aJHEE aHN2800aSocial issues and policy review.3 aSIPR aMalden, Mass. :bPublished by Blackwell Pub. for the Society for the Psychological Study of Social Issues,c2007- av. ;c23 cm. aAnnual0 av. 1, no. 1, Dec. 2007 a"The mission of Social Issues and Policy Review (SIPR) is to provide state of the art and timely theoretical and empirical reviews of topics and programs of research that are directly relevant to understanding and addressing social issues and public policy."--Publisher's Web site. aAlso issued online. 0aSocial sciencesvPeriodicals. 0aSocial problemsvPeriodicals. 0aSocial changevPeriodicals. 0aSocial psychologyvPeriodicals. 0aSocial policyxPsychological aspectsvPeriodicals. 0aSociologyxPsychological aspectsvPeriodicals.2 aSociety for the Psychological Study of Social Issues.08aOnline version :tSocial issues and policy reviewx1751-2409w(OCofLC)180771536 aADDED TTL '07-; Rec'd on basis of PO 1AAC3083; Should be annual: set up as SPA; MR 3/23/07 aC0bJHE a2659383bHorizon bib# aHN1.S563cv. 1:no. 1(2007:Dec.) c. 1i4648971lemainncmemselsitenon aHN1.S563cv. 2:no. 1(2008:Dec.) c. 1i5115215lemainncmemselsitenon
data/spec/rcov.opts ADDED
@@ -0,0 +1,2 @@
1
+ --exclude "spec/*,gems/*"
2
+ --rails
data/spec/spec.opts ADDED
@@ -0,0 +1,4 @@
1
+ --colour
2
+ --format progress
3
+ --loadby mtime
4
+ --reverse
@@ -0,0 +1,73 @@
1
+ #RAILS_ROOT = "#{File.dirname(__FILE__)}/.."
2
+
3
+ # Set the default environment to sqlite3's in_memory database
4
+ ENV['RAILS_ENV'] ||= 'in_memory'
5
+
6
+ # Load the Rails environment and testing framework, this special plugin-only
7
+ # environment for testing was generated by the plugin_test_helper gem.
8
+ # This file you are looking at now was then customized somewhat for rspec
9
+ # instead of Test::Unit.
10
+ require "#{File.dirname(__FILE__)}/app_root/config/environment"
11
+ require 'spec/autorun'
12
+ require 'spec/rails'
13
+
14
+
15
+ # Requires supporting files with custom matchers and macros, etc,
16
+ # in ./support/ and its subdirectories.
17
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
18
+
19
+ MARC_DATA_PATH = "#{File.dirname(__FILE__)}/marc_data"
20
+
21
+ # Undo changes to RAILS_ENV
22
+ silence_warnings {RAILS_ENV = ENV['RAILS_ENV']}
23
+
24
+ # Run the migrations
25
+ ActiveRecord::Migrator.migrate("#{Rails.root}/db/migrate")
26
+
27
+ # Set default fixture loading properties
28
+ Spec::Runner.configure do |config|
29
+ config.use_transactional_fixtures = true
30
+ config.use_instantiated_fixtures = false
31
+ config.fixture_path = "#{File.dirname(__FILE__)}/fixtures"
32
+
33
+ # == Fixtures
34
+ #
35
+ # You can declare fixtures for each example_group like this:
36
+ # describe "...." do
37
+ # fixtures :table_a, :table_b
38
+ #
39
+ # Alternatively, if you prefer to declare them only once, you can
40
+ # do so right here. Just uncomment the next line and replace the fixture
41
+ # names with your fixtures.
42
+ #
43
+ # config.global_fixtures = :table_a, :table_b
44
+ #
45
+ # If you declare global fixtures, be aware that they will be declared
46
+ # for all of your examples, even those that don't use them.
47
+ #
48
+ # You can also declare which fixtures to use (for example fixtures for test/fixtures):
49
+ #
50
+ # config.fixture_path = RAILS_ROOT + '/spec/fixtures/'
51
+ #
52
+ # == Mock Framework
53
+ #
54
+ # RSpec uses it's own mocking framework by default. If you prefer to
55
+ # use mocha, flexmock or RR, uncomment the appropriate line:
56
+ #
57
+ # config.mock_with :mocha
58
+ # config.mock_with :flexmock
59
+ # config.mock_with :rr
60
+ #
61
+ # == Notes
62
+ #
63
+ # For more information take a look at Spec::Runner::Configuration and Spec::Runner
64
+
65
+
66
+ ##
67
+ # Load CqlRuby and our local patches to it, so available for tests
68
+ #
69
+ require 'cql_ruby'
70
+ require File.expand_path(File.dirname(__FILE__) + '/../lib/blacklight_cql/blacklight_to_solr.rb')
71
+
72
+ end
73
+