blacklight 3.0.0pre4 → 3.0.0pre6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. data/VERSION +1 -1
  2. data/app/controllers/bookmarks_controller.rb +1 -1
  3. data/app/controllers/folder_controller.rb +1 -1
  4. data/app/helpers/blacklight_helper.rb +5 -4
  5. data/app/helpers/catalog_helper.rb +22 -18
  6. data/app/views/bookmarks/index.html.erb +1 -1
  7. data/app/views/catalog/_citation.html.erb +6 -1
  8. data/app/views/catalog/_results_pagination.html.erb +2 -7
  9. data/app/views/catalog/_sms_form.html.erb +1 -1
  10. data/app/views/catalog/index.html.erb +1 -1
  11. data/app/views/kaminari/blacklight/_first_page.html.erb +11 -0
  12. data/app/views/kaminari/blacklight/_gap.html.erb +8 -0
  13. data/app/views/kaminari/blacklight/_last_page.html.erb +11 -0
  14. data/app/views/kaminari/blacklight/_next_page.html.erb +11 -0
  15. data/app/views/kaminari/blacklight/_page.html.erb +12 -0
  16. data/app/views/kaminari/blacklight/_paginator.html.erb +23 -0
  17. data/app/views/kaminari/blacklight/_prev_page.html.erb +11 -0
  18. data/app/views/record_mailer/email_record.text.erb +5 -0
  19. data/app/views/record_mailer/sms_record.text.erb +4 -0
  20. data/blacklight.gemspec +4 -5
  21. data/config/locales/kaminari.yml +10 -0
  22. data/config/routes.rb +8 -46
  23. data/features/default_setup.feature +2 -1
  24. data/lib/blacklight.rb +5 -7
  25. data/lib/blacklight/catalog.rb +7 -24
  26. data/lib/blacklight/controller.rb +7 -1
  27. data/lib/blacklight/engine.rb +0 -11
  28. data/lib/blacklight/routes.rb +91 -0
  29. data/lib/blacklight/solr/document.rb +16 -1
  30. data/lib/blacklight/solr/document/marc_export.rb +174 -4
  31. data/lib/blacklight/solr_helper.rb +7 -2
  32. data/lib/generators/blacklight/blacklight_generator.rb +6 -0
  33. data/lib/generators/blacklight/templates/public/stylesheets/blacklight/blacklight.css +3 -3
  34. data/lib/railties/all_tests.rake +18 -6
  35. data/lib/railties/blacklight.rake +3 -2
  36. data/lib/railties/blacklight_cucumber.rake +1 -1
  37. data/lib/railties/blacklight_rspec.rake +1 -1
  38. data/lib/railties/solr_marc.rake +1 -1
  39. data/test_support/spec/controllers/application_controller_spec.rb +2 -2
  40. data/test_support/spec/controllers/catalog_controller_spec.rb +0 -24
  41. data/test_support/spec/helpers/blacklight_helper_spec.rb +4 -4
  42. data/test_support/spec/helpers/catalog_helper_spec.rb +22 -18
  43. data/test_support/spec/helpers/solr_helper_spec.rb +22 -5
  44. data/test_support/spec/lib/blacklight_solr_document_spec.rb +16 -9
  45. data/test_support/spec/lib/marc_export_spec.rb +308 -8
  46. data/test_support/spec/lib/tasks/solr_marc_task_spec.rb +1 -1
  47. data/test_support/spec/views/catalog/index.atom.builder_spec.rb +1 -1
  48. data/test_support/spec/views/catalog/show.html.erb_spec.rb +3 -3
  49. metadata +26 -18
  50. data/app/views/record_mailer/email_record.erb +0 -6
  51. data/app/views/record_mailer/sms_record.erb +0 -4
@@ -169,6 +169,202 @@ def record2_xml
169
169
  </record>"
170
170
  end
171
171
 
172
+ def year_range_xml
173
+ "<record>
174
+ <leader>01021cam a2200277 a 4500</leader>
175
+ <controlfield tag=\"001\">a1711966</controlfield>
176
+ <controlfield tag=\"003\">SIRSI</controlfield>
177
+ <controlfield tag=\"008\">890421s1988 enka 001 0 eng d</controlfield>
178
+
179
+ <datafield tag=\"100\" ind1=\"1\" ind2=\" \">
180
+ <subfield code=\"a\">Schmoe, Joe</subfield>
181
+ </datafield>
182
+
183
+ <datafield tag=\"245\" ind1=\"1\" ind2=\"4\">
184
+ <subfield code=\"a\">Main title /</subfield>
185
+ <subfield code=\"c\">Subtitle</subfield>
186
+ </datafield>
187
+
188
+ <datafield tag=\"260\" ind1=\" \" ind2=\" \">
189
+ <subfield code=\"a\">London :</subfield>
190
+ <subfield code=\"b\">Batsford,</subfield>
191
+ <subfield code=\"c\">1988-2000</subfield>
192
+ </datafield>
193
+
194
+ </record>"
195
+ end
196
+
197
+ def no_date_xml
198
+ "<record>
199
+ <leader>01021cam a2200277 a 4500</leader>
200
+ <controlfield tag=\"001\">a1711966</controlfield>
201
+ <controlfield tag=\"003\">SIRSI</controlfield>
202
+ <controlfield tag=\"008\">890421s1988 enka 001 0 eng d</controlfield>
203
+
204
+ <datafield tag=\"100\" ind1=\"1\" ind2=\" \">
205
+ <subfield code=\"a\">Schmoe, Joe</subfield>
206
+ </datafield>
207
+
208
+ <datafield tag=\"245\" ind1=\"1\" ind2=\"4\">
209
+ <subfield code=\"a\">Main title /</subfield>
210
+ <subfield code=\"c\">Subtitle</subfield>
211
+ </datafield>
212
+
213
+ <datafield tag=\"260\" ind1=\" \" ind2=\" \">
214
+ <subfield code=\"a\">London :</subfield>
215
+ <subfield code=\"b\">Batsford,</subfield>
216
+ <subfield code=\"c\">n.d.</subfield>
217
+ </datafield>
218
+
219
+ </record>"
220
+ end
221
+
222
+ def section_title_xml
223
+ "<record>
224
+ <leader>01021cam a2200277 a 4500</leader>
225
+ <controlfield tag=\"001\">a1711966</controlfield>
226
+ <controlfield tag=\"003\">SIRSI</controlfield>
227
+ <controlfield tag=\"008\">890421s1988 enka 001 0 eng d</controlfield>
228
+
229
+ <datafield tag=\"100\" ind1=\"1\" ind2=\" \">
230
+ <subfield code=\"a\">Schmoe, Joe</subfield>
231
+ </datafield>
232
+
233
+ <datafield tag=\"245\" ind1=\"1\" ind2=\"4\">
234
+ <subfield code=\"a\">Main title /</subfield>
235
+ <subfield code=\"b\">Subtitle</subfield>
236
+ <subfield code=\"n\">Number of part.</subfield>
237
+ <subfield code=\"p\">Name of part.</subfield>
238
+ </datafield>
239
+
240
+ <datafield tag=\"260\" ind1=\" \" ind2=\" \">
241
+ <subfield code=\"a\">London :</subfield>
242
+ <subfield code=\"b\">Batsford,</subfield>
243
+ <subfield code=\"c\">2001</subfield>
244
+ </datafield>
245
+
246
+ </record>"
247
+ end
248
+
249
+ def dissertation_note_xml
250
+ "<record>
251
+ <leader>00903nam a2200253 4500</leader>
252
+ <controlfield tag=\"008\">730111s1971 ohu b 000 0 eng </controlfield>
253
+
254
+ <datafield tag=\"245\" ind1=\"0\" ind2=\"0\">
255
+ <subfield code=\"a\">Thesis on some subject.</subfield>
256
+ </datafield>
257
+
258
+ <datafield tag=\"260\" ind1=\" \" ind2=\" \">
259
+ <subfield code=\"c\">2009</subfield>
260
+ </datafield>
261
+
262
+ <datafield tag=\"502\" ind1=\"0\" ind2=\"0\">
263
+ <subfield code=\"a\">Phd Thesis -- Goodenough College, 2009</subfield>
264
+ </datafield>
265
+ </record>"
266
+ end
267
+
268
+ def special_contributor_with_author_xml
269
+ "<record>
270
+ <leader>00903nam a2200253 4500</leader>
271
+ <controlfield tag=\"008\">730111s1971 ohu b 000 0 eng </controlfield>
272
+
273
+ <datafield tag=\"100\" ind1=\"0\" ind2=\"0\">
274
+ <subfield code=\"a\">Doe, John</subfield>
275
+ </datafield>
276
+
277
+ <datafield tag=\"245\" ind1=\"0\" ind2=\"0\">
278
+ <subfield code=\"a\">Title of item.</subfield>
279
+ </datafield>
280
+
281
+ <datafield tag=\"260\" ind1=\" \" ind2=\" \">
282
+ <subfield code=\"a\">Publisher</subfield>
283
+ <subfield code=\"b\">Place</subfield>
284
+ <subfield code=\"c\">2009</subfield>
285
+ </datafield>
286
+
287
+ <datafield tag=\"700\" ind1=\" \" ind2=\" \">
288
+ <subfield code=\"a\">Schmoe, Joe</subfield>
289
+ <subfield code=\"e\">trl.</subfield>
290
+ </datafield>
291
+
292
+ <datafield tag=\"700\" ind1=\" \" ind2=\" \">
293
+ <subfield code=\"a\">Schmoe, Bill</subfield>
294
+ <subfield code=\"4\">edt</subfield>
295
+ </datafield>
296
+
297
+ <datafield tag=\"700\" ind1=\" \" ind2=\" \">
298
+ <subfield code=\"a\">Schmoe, Susie</subfield>
299
+ <subfield code=\"e\">com.</subfield>
300
+ </datafield>
301
+
302
+ </record>"
303
+ end
304
+
305
+ def three_authors_xml
306
+ "<record>
307
+ <leader>00903nam a2200253 4500</leader>
308
+ <controlfield tag=\"008\">730111s1971 ohu b 000 0 eng </controlfield>
309
+
310
+ <datafield tag=\"100\" ind1=\"0\" ind2=\"0\">
311
+ <subfield code=\"a\">Doe, John</subfield>
312
+ </datafield>
313
+
314
+ <datafield tag=\"245\" ind1=\"0\" ind2=\"0\">
315
+ <subfield code=\"a\">Title of item.</subfield>
316
+ </datafield>
317
+
318
+ <datafield tag=\"260\" ind1=\" \" ind2=\" \">
319
+ <subfield code=\"a\">Publisher</subfield>
320
+ <subfield code=\"b\">Place</subfield>
321
+ <subfield code=\"c\">2009</subfield>
322
+ </datafield>
323
+
324
+ <datafield tag=\"700\" ind1=\" \" ind2=\" \">
325
+ <subfield code=\"a\">Schmoe, Joe</subfield>
326
+ </datafield>
327
+
328
+ <datafield tag=\"700\" ind1=\" \" ind2=\" \">
329
+ <subfield code=\"a\">Schmoe, Bill</subfield>
330
+ </datafield>
331
+
332
+ </record>"
333
+ end
334
+
335
+ def special_contributor_no_author_xml
336
+ "<record>
337
+ <leader>00903nam a2200253 4500</leader>
338
+ <controlfield tag=\"008\">730111s1971 ohu b 000 0 eng </controlfield>
339
+
340
+ <datafield tag=\"245\" ind1=\"0\" ind2=\"0\">
341
+ <subfield code=\"a\">Title of item.</subfield>
342
+ </datafield>
343
+
344
+ <datafield tag=\"260\" ind1=\" \" ind2=\" \">
345
+ <subfield code=\"a\">Publisher</subfield>
346
+ <subfield code=\"b\">Place</subfield>
347
+ <subfield code=\"c\">2009</subfield>
348
+ </datafield>
349
+
350
+ <datafield tag=\"700\" ind1=\" \" ind2=\" \">
351
+ <subfield code=\"a\">Schmoe, Joe</subfield>
352
+ <subfield code=\"e\">trl.</subfield>
353
+ </datafield>
354
+
355
+ <datafield tag=\"700\" ind1=\" \" ind2=\" \">
356
+ <subfield code=\"a\">Schmoe, Bill</subfield>
357
+ <subfield code=\"4\">edt</subfield>
358
+ </datafield>
359
+
360
+ <datafield tag=\"700\" ind1=\" \" ind2=\" \">
361
+ <subfield code=\"a\">Schmoe, Susie</subfield>
362
+ <subfield code=\"e\">com.</subfield>
363
+ </datafield>
364
+
365
+ </record>"
366
+ end
367
+
172
368
  # 4+:athors
173
369
  def record3_xml
174
370
  "<record>
@@ -228,6 +424,26 @@ def record3_xml
228
424
  <subfield code=\"m\">horn, piano,</subfield>
229
425
  <subfield code=\"r\">F major.</subfield>
230
426
  </datafield>
427
+
428
+ <datafield tag=\"700\" ind1=\"1\" ind2=\"2\">
429
+ <subfield code=\"a\">Doe, John</subfield>
430
+ </datafield>
431
+
432
+ <datafield tag=\"700\" ind1=\"1\" ind2=\"2\">
433
+ <subfield code=\"a\">Doe, Jane</subfield>
434
+ </datafield>
435
+
436
+ <datafield tag=\"700\" ind1=\"1\" ind2=\"2\">
437
+ <subfield code=\"a\">Smith, John</subfield>
438
+ </datafield>
439
+
440
+ <datafield tag=\"700\" ind1=\"1\" ind2=\"2\">
441
+ <subfield code=\"a\">Smith, Jane</subfield>
442
+ </datafield>
443
+
444
+ <datafield tag=\"700\" ind1=\"1\" ind2=\"2\">
445
+ <subfield code=\"a\">Smith, James</subfield>
446
+ </datafield>
231
447
  </record>"
232
448
  end
233
449
 
@@ -312,15 +528,64 @@ describe Blacklight::Solr::Document::MarcExport do
312
528
 
313
529
  @typical_record = dclass.new( standard_citation )
314
530
  @music_record = dclass.new( music_record )
531
+ @dissertation_record = dclass.new( dissertation_note_xml )
315
532
  @record_without_245b = dclass.new( record1_xml )
533
+ @three_authors_record = dclass.new( three_authors_xml )
316
534
  @record_without_authors = dclass.new( record2_xml )
317
- @record_with_4plus_authors = dclass.new( record3_xml )
535
+ @record_with_10plus_authors = dclass.new( record3_xml )
536
+ @year_range_record = dclass.new( year_range_xml )
537
+ @no_date_record = dclass.new( no_date_xml )
538
+ @section_title_record = dclass.new( section_title_xml )
539
+ @special_contributor_record = dclass.new( special_contributor_with_author_xml )
318
540
  @record_without_citable_data = dclass.new( no_good_data_xml )
319
541
  @record_with_bad_author = dclass.new( bad_author_xml )
320
- @record_utf8_decomposed = dclass.new( utf8_decomposed_record_xml )
542
+ @special_contributor_no_auth_record = dclass.new( special_contributor_no_author_xml )
543
+ @record_utf8_decomposed = dclass.new( utf8_decomposed_record_xml )
321
544
 
322
545
  end
323
546
 
547
+ describe "export_as_chicago_citation_txt" do
548
+ it "should handle a typical record correclty" do
549
+ @typical_record.export_as_chicago_citation_txt.should == "Ferree, David C., and I. J Warrington. <i>Apples: Botany, Production, and Uses.</i> Oxon, U.K.: CABI Pub., 2003."
550
+ end
551
+ it "should format a record w/o authors correctly" do
552
+ @record_without_authors.export_as_chicago_citation_txt.should == "<i>Final Report to the Honorable John J. Gilligan, Governor.</i> [Columbus: Printed by the State of Ohio, Dept. of Urban Affairs, 1971."
553
+ end
554
+ it "should format a citation without a 245b field correctly" do
555
+ @record_without_245b.export_as_chicago_citation_txt.should == "Janetzky, Kurt., and Bernhard Brüchle. <i>The Horn.</i> London: Batsford, 1988."
556
+ end
557
+ it "should format a citation with 4+ authors correctly" do
558
+ chicago_text = @record_with_10plus_authors.export_as_chicago_citation_txt
559
+ chicago_text.should == "Greer, Lowell., Steven Lubin, Stephanie Chase, Johannes Brahms, Ludwig van Beethoven, Nikolaus von Krufft, John Doe, et al. <i>Music for Horn.</i> [United States]: Harmonia Mundi USA, 2001."
560
+ chicago_text.should match(/John Doe, et al\./)
561
+ chicago_text.should_not match(/Jane Doe/)
562
+ end
563
+ it "should handle dissertation data correctly" do
564
+ @dissertation_record.export_as_chicago_citation_txt.should == "<i>Thesis On Some Subject.</i> Phd Thesis -- Goodenough College, 2009."
565
+ end
566
+ it "should handle 3 authors correctly" do
567
+ @three_authors_record.export_as_chicago_citation_txt.should match(/^Doe, John, Joe Schmoe, and Bill Schmoe\./)
568
+ end
569
+ it "should handle editors, translators, and compilers correctly" do
570
+ @special_contributor_record.export_as_chicago_citation_txt.should == "Doe, John <i>Title of Item.</i> Translated by Joe Schmoe. Edited by Bill Schmoe. Compiled by Susie Schmoe. Publisher: Place, 2009."
571
+ end
572
+ it "should handle editors, translators, and compilers correctly when there is no author present" do
573
+ @special_contributor_no_auth_record.export_as_chicago_citation_txt.should == "Schmoe, Joe trans., Bill Schmoe ed., and Susie Schmoe comp. <i>Title of Item.</i> Publisher: Place, 2009."
574
+ end
575
+ it "should handle year ranges properly" do
576
+ @year_range_record.export_as_chicago_citation_txt.should_not match(/2000/)
577
+ end
578
+ it "should handle n.d. in the 260$c properly" do
579
+ @no_date_record.export_as_chicago_citation_txt.should match(/n\.d\.$/)
580
+ end
581
+ it "should handle section title appropriately" do
582
+ @section_title_record.export_as_chicago_citation_txt.should == "Schmoe, Joe <i>Main Title: Subtitle\.<\/i> Number of Part, <i>Name of Part\.<\/i> London: Batsford, 2001."
583
+ end
584
+ it "should not fail if there is no citation data" do
585
+ @record_without_citable_data.export_as_chicago_citation_txt.should == ""
586
+ end
587
+ end
588
+
324
589
  describe "export_as_apa_citation_txt" do
325
590
  it "should format a standard citation correctly" do
326
591
  @typical_record.export_as_apa_citation_txt.should == "Ferree, D. C, &amp; Warrington, I. J. (2003). <i>Apples : botany, production, and uses.</i> Oxon, U.K.: CABI Pub."
@@ -358,7 +623,7 @@ describe Blacklight::Solr::Document::MarcExport do
358
623
  end
359
624
 
360
625
  it "should format a citation with 4+ authors correctly" do
361
- @record_with_4plus_authors.export_as_mla_citation_txt.should == "Greer, Lowell, et al. <i>Music for Horn.</i> [United States]: Harmonia Mundi USA, 2001."
626
+ @record_with_10plus_authors.export_as_mla_citation_txt.should == "Greer, Lowell, et al. <i>Music for Horn.</i> [United States]: Harmonia Mundi USA, 2001."
362
627
  end
363
628
 
364
629
  it "should not fail if there is no citation data" do
@@ -430,15 +695,50 @@ describe Blacklight::Solr::Document::MarcExport do
430
695
  endnote_entries[$1] << $2
431
696
  end
432
697
 
433
- endnote_entries["0"].should == Set.new("Format") # I have no idea WHY this is correct, it is definitely not legal, but taking from earlier test for render_endnote in applicationhelper, the previous version of this. jrochkind.
434
- endnote_entries["D"].should == Set.new("p2001. ")
435
- endnote_entries["C"].should == Set.new("[United States] : ")
698
+ endnote_entries["0"].should == Set.new(["Format"]) # I have no idea WHY this is correct, it is definitely not legal, but taking from earlier test for render_endnote in applicationhelper, the previous version of this. jrochkind.
699
+ endnote_entries["D"].should == Set.new(["p2001. "])
700
+ endnote_entries["C"].should == Set.new(["[United States] : "])
436
701
  endnote_entries["E"].should == Set.new(["Greer, Lowell. ", "Lubin, Steven. ", "Chase, Stephanie, ", "Brahms, Johannes, ", "Beethoven, Ludwig van, ", "Krufft, Nikolaus von, "])
437
- endnote_entries["I"].should == Set.new("Harmonia Mundi USA, ")
438
- endnote_entries["T"].should == Set.new("Music for horn ")
702
+ endnote_entries["I"].should == Set.new(["Harmonia Mundi USA, "])
703
+ endnote_entries["T"].should == Set.new(["Music for horn "])
439
704
 
440
705
  #nothing extra
441
706
  Set.new(endnote_entries.keys).should == Set.new(["0", "C", "D", "E", "I", "T"])
442
707
  end
443
708
  end
709
+
710
+ describe "Citation title transformation" do
711
+ before(:each) do
712
+ class CitationTitleTest
713
+ include Blacklight::Solr::Document::MarcExport
714
+ def transform_title(text)
715
+ citation_title(text)
716
+ end
717
+ end
718
+ @citation_title = CitationTitleTest.new
719
+ end
720
+ it "should tranform a normal title properlly" do
721
+ @citation_title.transform_title("This is just a test").should == "This Is Just a Test"
722
+ end
723
+ it "should not attempt to capatilize words in all-caps (e.g. acronyms)" do
724
+ @citation_title.transform_title("IBM PC applications").should == "IBM PC Applications"
725
+ end
726
+ it "should capitalize a preposition if it is the first word in a title" do
727
+ @citation_title.transform_title("of mice and men").should == "Of Mice and Men"
728
+ end
729
+ it "should handle hyphenated words properly" do
730
+ @citation_title.transform_title("Testing hyphenated-words and how they get capitalized").should == "Testing Hyphenated-Words and How They Get Capitalized"
731
+ end
732
+ it "should handle normal prepositions properly" do
733
+ @citation_title.transform_title("A little learning is a dangerous thing").should == "A Little Learning Is a Dangerous Thing"
734
+ @citation_title.transform_title("Four theories concerning the Gospel according to Matthew").should == "Four Theories Concerning the Gospel According to Matthew"
735
+ @citation_title.transform_title("Tired but happy").should == "Tired but Happy"
736
+ @citation_title.transform_title("Mnemonics that work are better than rules that do not").should == "Mnemonics That Work Are Better Than Rules That Do Not"
737
+ @citation_title.transform_title("This is just a test").should == "This Is Just a Test"
738
+ @citation_title.transform_title("the mind of the Renaissance").should == "The Mind of the Renaissance"
739
+ @citation_title.transform_title("Are you considering psychoanalysis?").should == "Are You Considering Psychoanalysis?"
740
+ @citation_title.transform_title("Not without laughter").should == "Not without Laughter"
741
+ end
742
+ end
743
+
444
744
  end
@@ -16,7 +16,7 @@ describe "solr:marc:*" do
16
16
  $stdout = STDOUT
17
17
  end
18
18
 
19
- before do
19
+ before(:all) do
20
20
  @rake = Rake::Application.new
21
21
  Rake.application = @rake
22
22
  Rake.application.rake_require "../lib/railties/solr_marc"
@@ -20,7 +20,7 @@ describe "Atom feed view" do
20
20
 
21
21
  # Load sample responses from Solr to a sample request, to test against
22
22
  @data = YAML.load(File.open(File.dirname(__FILE__) +
23
- "/../../data/sample_docs.yml"))
23
+ "/../../data/sample_docs.yml", "r:UTF-8"))
24
24
  @rsolr_response = RSolr::Ext::Response::Base.new(@data["solr_response"], nil, @data["params"])
25
25
  @params = @data["params"]
26
26
  @document_list = @data["document_list_mash"].collect do |d|
@@ -13,16 +13,16 @@ describe "/catalog/show.html.erb" do
13
13
 
14
14
 
15
15
  # TODO: should probably not have id field name hardcoded
16
- @div_doc_id = 'div[id=doc_' + @document[:id] + ']'
16
+ @div_doc_id = 'div[id=doc_' + @document.id + ']'
17
17
 
18
18
  assigns[:response] = @solr_resp
19
19
  assigns[:document_list] = @document_list
20
20
  assigns[:document] = @document
21
21
 
22
22
  @previousDocument = mock("prev_doc")
23
- @previousDocument.should_receive(:[]).with(:id).and_return("abc")
23
+ @previousDocument.should_receive(:id).and_return("abc")
24
24
  @nextDocument = mock("next_doc")
25
- @nextDocument.should_receive(:[]).with(:id).and_return("xyz")
25
+ @nextDocument.should_receive(:id).and_return("xyz")
26
26
  assigns[:previous_document] = @previousDocument
27
27
  assigns[:next_document] = @nextDocument
28
28
 
metadata CHANGED
@@ -1,29 +1,30 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blacklight
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1923832001
4
+ hash: 1923832005
5
5
  prerelease: 5
6
6
  segments:
7
7
  - 3
8
8
  - 0
9
9
  - 0
10
10
  - pre
11
- - 4
12
- version: 3.0.0pre4
11
+ - 6
12
+ version: 3.0.0pre6
13
13
  platform: ruby
14
14
  authors:
15
- - jrochkind
15
+ - Jonathan Rochkind
16
16
  - Matt Mitchell
17
17
  - Chris Beer
18
18
  - Jessie Keck
19
19
  - Jason Ronallo
20
20
  - Vernon Chapman
21
- - Marck A. Matienzo
21
+ - Mark A. Matienzo
22
+ - Dan Funk
22
23
  autorequire:
23
24
  bindir: bin
24
25
  cert_chain: []
25
26
 
26
- date: 2011-05-12 00:00:00 -04:00
27
+ date: 2011-06-16 00:00:00 -04:00
27
28
  default_executable:
28
29
  dependencies:
29
30
  - !ruby/object:Gem::Dependency
@@ -81,11 +82,12 @@ dependencies:
81
82
  requirements:
82
83
  - - ~>
83
84
  - !ruby/object:Gem::Version
84
- hash: 13
85
+ hash: 9
85
86
  segments:
86
87
  - 0
88
+ - 4
87
89
  - 3
88
- version: "0.3"
90
+ version: 0.4.3
89
91
  type: :runtime
90
92
  version_requirements: *id004
91
93
  - !ruby/object:Gem::Dependency
@@ -119,20 +121,17 @@ dependencies:
119
121
  type: :runtime
120
122
  version_requirements: *id006
121
123
  - !ruby/object:Gem::Dependency
122
- name: will_paginate
124
+ name: kaminari
123
125
  prerelease: false
124
126
  requirement: &id007 !ruby/object:Gem::Requirement
125
127
  none: false
126
128
  requirements:
127
- - - ~>
129
+ - - ">="
128
130
  - !ruby/object:Gem::Version
129
- hash: 1923831917
131
+ hash: 3
130
132
  segments:
131
- - 3
132
133
  - 0
133
- - pre
134
- - 2
135
- version: 3.0.pre2
134
+ version: "0"
136
135
  type: :runtime
137
136
  version_requirements: *id007
138
137
  description: "Blacklight is a free and open source ruby-on-rails based discovery interface (a.k.a. \xE2\x80\x9Cnext-generation catalog\xE2\x80\x9D) especially optimized for heterogeneous collections. You can use it as a library catalog, as a front end for a digital repository, or as a single-search interface to aggregate digital content that would otherwise be siloed."
@@ -220,13 +219,21 @@ files:
220
219
  - app/views/feedback/show.html.erb
221
220
  - app/views/folder/_tools.html.erb
222
221
  - app/views/folder/index.html.erb
222
+ - app/views/kaminari/blacklight/_first_page.html.erb
223
+ - app/views/kaminari/blacklight/_gap.html.erb
224
+ - app/views/kaminari/blacklight/_last_page.html.erb
225
+ - app/views/kaminari/blacklight/_next_page.html.erb
226
+ - app/views/kaminari/blacklight/_page.html.erb
227
+ - app/views/kaminari/blacklight/_paginator.html.erb
228
+ - app/views/kaminari/blacklight/_prev_page.html.erb
223
229
  - app/views/layouts/blacklight.html.erb
224
- - app/views/record_mailer/email_record.erb
225
- - app/views/record_mailer/sms_record.erb
230
+ - app/views/record_mailer/email_record.text.erb
231
+ - app/views/record_mailer/sms_record.text.erb
226
232
  - app/views/saved_searches/index.html.erb
227
233
  - app/views/search_history/index.html.erb
228
234
  - blacklight.gemspec
229
235
  - config.ru
236
+ - config/locales/kaminari.yml
230
237
  - config/routes.rb
231
238
  - db/seeds.rb
232
239
  - features/default_setup.feature
@@ -242,6 +249,7 @@ files:
242
249
  - lib/blacklight/controller.rb
243
250
  - lib/blacklight/engine.rb
244
251
  - lib/blacklight/exceptions.rb
252
+ - lib/blacklight/routes.rb
245
253
  - lib/blacklight/search_fields.rb
246
254
  - lib/blacklight/solr.rb
247
255
  - lib/blacklight/solr/document.rb
@@ -424,7 +432,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
424
432
  requirements: []
425
433
 
426
434
  rubyforge_project: blacklight
427
- rubygems_version: 1.5.2
435
+ rubygems_version: 1.6.2
428
436
  signing_key:
429
437
  specification_version: 3
430
438
  summary: A next-geration Library Catalag for Universities