enju_biblio 0.0.9 → 0.1.0.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (112) hide show
  1. data/app/controllers/accepts_controller.rb +83 -0
  2. data/app/controllers/items_controller.rb +2 -2
  3. data/app/controllers/manifestations_controller.rb +8 -8
  4. data/app/controllers/patrons_controller.rb +18 -4
  5. data/app/controllers/series_has_manifestations_controller.rb +1 -1
  6. data/app/controllers/series_statements_controller.rb +2 -5
  7. data/app/models/accept.rb +36 -0
  8. data/app/models/create.rb +0 -4
  9. data/app/models/donate.rb +0 -4
  10. data/app/models/exemplify.rb +0 -4
  11. data/app/models/import_request.rb +0 -4
  12. data/app/models/item.rb +2 -4
  13. data/app/models/manifestation.rb +5 -8
  14. data/app/models/own.rb +0 -3
  15. data/app/models/patron.rb +2 -4
  16. data/app/models/picture_file.rb +0 -4
  17. data/app/models/produce.rb +0 -4
  18. data/app/models/realize.rb +0 -4
  19. data/app/models/series_has_manifestation.rb +1 -3
  20. data/app/models/series_statement.rb +2 -4
  21. data/app/views/accepts/_form.html.erb +11 -0
  22. data/app/views/accepts/_list.html.erb +31 -0
  23. data/app/views/accepts/edit.html.erb +13 -0
  24. data/app/views/accepts/index.csv.erb +4 -0
  25. data/app/views/accepts/index.html.erb +49 -0
  26. data/app/views/accepts/index.js.erb +1 -0
  27. data/app/views/accepts/new.html.erb +14 -0
  28. data/app/views/accepts/show.html.erb +31 -0
  29. data/app/views/countries/index.html.erb +1 -1
  30. data/app/views/creates/_index.html.erb +1 -1
  31. data/app/views/creates/_index_patron.html.erb +1 -1
  32. data/app/views/creates/_index_work.html.erb +1 -1
  33. data/app/views/donates/index.html.erb +1 -1
  34. data/app/views/exemplifies/index.html.erb +1 -1
  35. data/app/views/extents/index.html.erb +1 -1
  36. data/app/views/import_requests/index.html.erb +1 -1
  37. data/app/views/items/index.html.erb +1 -1
  38. data/app/views/items/index.mobile.erb +1 -1
  39. data/app/views/languages/index.html.erb +1 -1
  40. data/app/views/licenses/index.html.erb +1 -1
  41. data/app/views/manifestations/_list.html.erb +2 -2
  42. data/app/views/manifestations/_manifestation.html.erb +1 -1
  43. data/app/views/manifestations/_question_list.html.erb +2 -2
  44. data/app/views/manifestations/_tab_list.html.erb +1 -1
  45. data/app/views/manifestations/index.html.erb +2 -2
  46. data/app/views/manifestations/index.mobile.erb +1 -1
  47. data/app/views/medium_of_performances/index.html.erb +1 -1
  48. data/app/views/owns/index.html.erb +1 -1
  49. data/app/views/patron_import_files/index.html.erb +1 -1
  50. data/app/views/patron_import_results/index.html.erb +1 -1
  51. data/app/views/patrons/_expression_list.html.erb +2 -2
  52. data/app/views/patrons/_index.html.erb +1 -1
  53. data/app/views/patrons/_index_expression.html.erb +1 -1
  54. data/app/views/patrons/_index_manifestation.html.erb +1 -1
  55. data/app/views/patrons/_index_patron.html.erb +1 -1
  56. data/app/views/patrons/_index_patron_merge_list.html.erb +1 -1
  57. data/app/views/patrons/_index_work.html.erb +1 -1
  58. data/app/views/patrons/_manifestation_list.html.erb +2 -2
  59. data/app/views/patrons/_work_list.html.erb +2 -2
  60. data/app/views/patrons/index.mobile.erb +1 -1
  61. data/app/views/picture_files/_index.html.erb +1 -1
  62. data/app/views/picture_files/_index_event.html.erb +1 -1
  63. data/app/views/picture_files/_index_manifestation.html.erb +1 -1
  64. data/app/views/picture_files/_index_patron.html.erb +1 -1
  65. data/app/views/picture_files/_index_shelf.html.erb +1 -1
  66. data/app/views/produces/_index.html.erb +1 -1
  67. data/app/views/produces/_index_manifestation.html.erb +1 -1
  68. data/app/views/produces/_index_patron.html.erb +1 -1
  69. data/app/views/realizes/_index.html.erb +1 -1
  70. data/app/views/realizes/_index_expression.html.erb +1 -1
  71. data/app/views/realizes/_index_patron.html.erb +1 -1
  72. data/app/views/resource_import_files/index.html.erb +1 -1
  73. data/app/views/resource_import_results/index.html.erb +1 -1
  74. data/app/views/series_has_manifestations/index.html.erb +1 -1
  75. data/app/views/series_statements/_index.html.erb +1 -1
  76. data/app/views/series_statements/_index_manifestation.html.erb +1 -1
  77. data/app/views/series_statements/_index_series_statement_merge_list.html.erb +1 -1
  78. data/app/views/series_statements/_manifestation_list.html.erb +2 -2
  79. data/{spec/dummy/db → db}/migrate/120_create_baskets.rb +0 -0
  80. data/{spec/dummy/db → db}/migrate/20120319173203_create_accepts.rb +0 -0
  81. data/lib/enju_biblio.rb +4 -0
  82. data/lib/enju_biblio/engine.rb +0 -3
  83. data/lib/enju_biblio/version.rb +1 -1
  84. data/lib/generators/enju_biblio/views_generator.rb +51 -0
  85. data/spec/controllers/accepts_controller_spec.rb +304 -0
  86. data/spec/dummy/app/models/ability.rb +2 -0
  87. data/spec/dummy/config/application.rb +9 -1
  88. data/spec/dummy/config/initializers/kaminari_config.rb +9 -0
  89. data/spec/dummy/db/test.sqlite3 +0 -0
  90. data/spec/dummy/lib/plugins/ext.rb +0 -2
  91. data/spec/dummy/tmp/cache/4F7/F90/default_role +0 -0
  92. data/spec/dummy/tmp/cache/6E4/420/search_engine_all +0 -0
  93. data/spec/factories/accepts.rb +9 -0
  94. data/spec/factories/basket.rb +5 -0
  95. data/spec/models/accept_spec.rb +22 -0
  96. data/spec/requests/accepts_spec.rb +11 -0
  97. data/spec/routing/accepts_routing_spec.rb +27 -0
  98. data/spec/views/accepts/edit.html.erb_spec.rb +18 -0
  99. data/spec/views/accepts/index.html.erb_spec.rb +25 -0
  100. data/spec/views/accepts/new.html.erb_spec.rb +29 -0
  101. data/spec/views/accepts/show.html.erb_spec.rb +17 -0
  102. data/spec/views/creates/index.html.erb_spec.rb +2 -2
  103. data/spec/views/exemplifies/index.html.erb_spec.rb +2 -2
  104. data/spec/views/owns/index.html.erb_spec.rb +2 -2
  105. data/spec/views/produces/index.html.erb_spec.rb +2 -2
  106. data/spec/views/realizes/index.html.erb_spec.rb +2 -2
  107. data/spec/views/series_has_manifestations/index.html.erb_spec.rb +2 -2
  108. metadata +50 -42
  109. data/app/views/resource_import_files/_show_object_list.html.erb +0 -26
  110. data/spec/dummy/lib/enju_leaf.rb +0 -9
  111. data/spec/dummy/lib/enju_leaf/calculate_stat.rb +0 -30
  112. data/spec/dummy/lib/plugins/ext/will_paginate.rb +0 -64
@@ -4,6 +4,7 @@ class Ability
4
4
  def initialize(user, ip_addess = nil)
5
5
  case user.try(:role).try(:name)
6
6
  when 'Administrator'
7
+ can :manage, Accept
7
8
  can [:read, :update], ContentType
8
9
  can [:read, :update], Country
9
10
  can :manage, Create
@@ -52,6 +53,7 @@ class Ability
52
53
  can :manage, SeriesHasManifestation
53
54
  can :manage, SeriesStatement
54
55
  when 'Librarian'
56
+ can :manage, Accept
55
57
  can [:read, :update], CarrierType
56
58
  can :read, ContentType
57
59
  can :read, Country
@@ -55,4 +55,12 @@ module Dummy
55
55
  end
56
56
 
57
57
  require 'enju_core'
58
- require 'enju_leaf'
58
+ #require 'enju_library'
59
+ require 'enju_circulation'
60
+ require 'enju_inventory'
61
+ require 'enju_bookmark'
62
+ require 'enju_event'
63
+ require 'enju_manifestation_viewer'
64
+ require 'enju_book_jacket'
65
+ require 'enju_export'
66
+ require 'plugins'
@@ -0,0 +1,9 @@
1
+ Kaminari.configure do |config|
2
+ config.default_per_page = 10
3
+ config.window = 3
4
+ # config.outer_window = 0
5
+ # config.left = 0
6
+ # config.right = 0
7
+ # config.page_method_name = :page
8
+ # config.param_name = :page
9
+ end
Binary file
@@ -1,3 +1 @@
1
- require File.expand_path(File.join(File.dirname(__FILE__), 'ext', 'will_paginate'))
2
1
  require File.expand_path(File.join(File.dirname(__FILE__), 'ext', 'sunspot'))
3
- require File.expand_path(File.join(File.dirname(__FILE__), 'ext', 'event-calendar'))
@@ -0,0 +1,9 @@
1
+ # Read about factories at https://github.com/thoughtbot/factory_girl
2
+
3
+ FactoryGirl.define do
4
+ factory :accept do
5
+ basket_id{FactoryGirl.create(:basket).id}
6
+ item_id{FactoryGirl.create(:item).id}
7
+ librarian_id{FactoryGirl.create(:librarian).id}
8
+ end
9
+ end
@@ -0,0 +1,5 @@
1
+ FactoryGirl.define do
2
+ factory :basket do |f|
3
+ f.user_id{FactoryGirl.create(:user).id}
4
+ end
5
+ end
@@ -0,0 +1,22 @@
1
+ require 'spec_helper'
2
+
3
+ describe Accept do
4
+ fixtures :all
5
+
6
+ it "should change circulation_status" do
7
+ accept = FactoryGirl.create(:accept)
8
+ accept.item.circulation_status.name.should eq 'Available On Shelf'
9
+ end
10
+ end
11
+ # == Schema Information
12
+ #
13
+ # Table name: accepts
14
+ #
15
+ # id :integer not null, primary key
16
+ # basket_id :integer
17
+ # item_id :integer
18
+ # librarian_id :integer
19
+ # created_at :datetime not null
20
+ # updated_at :datetime not null
21
+ #
22
+
@@ -0,0 +1,11 @@
1
+ require 'spec_helper'
2
+
3
+ describe "Accepts" do
4
+ describe "GET /accepts" do
5
+ it "works! (now write some real specs)" do
6
+ # Run the generator again with the --webrat flag if you want to use webrat methods/matchers
7
+ get accepts_path
8
+ response.status.should be(302)
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,27 @@
1
+ require "spec_helper"
2
+
3
+ describe AcceptsController do
4
+ describe "routing" do
5
+
6
+ it "routes to #index" do
7
+ get("/accepts").should route_to("accepts#index")
8
+ end
9
+
10
+ it "routes to #new" do
11
+ get("/accepts/new").should route_to("accepts#new")
12
+ end
13
+
14
+ it "routes to #show" do
15
+ get("/accepts/1").should route_to("accepts#show", :id => "1")
16
+ end
17
+
18
+ it "routes to #create" do
19
+ post("/accepts").should route_to("accepts#create")
20
+ end
21
+
22
+ it "routes to #destroy" do
23
+ delete("/accepts/1").should route_to("accepts#destroy", :id => "1")
24
+ end
25
+
26
+ end
27
+ end
@@ -0,0 +1,18 @@
1
+ require 'spec_helper'
2
+
3
+ describe "accepts/edit" do
4
+ before(:each) do
5
+ @accept = assign(:accept, stub_model(Accept,
6
+ :item_id => 1
7
+ ))
8
+ end
9
+
10
+ it "renders the edit accept form" do
11
+ render
12
+
13
+ # Run the generator again with the --webrat flag if you want to use webrat matchers
14
+ assert_select "form", :action => accepts_path(@accept), :method => "post" do
15
+ assert_select "input#accept_item_id", :name => "accept[item_id]"
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,25 @@
1
+ require 'spec_helper'
2
+
3
+ describe "accepts/index" do
4
+ before(:each) do
5
+ assign(:accepts, Kaminari::paginate_array([
6
+ stub_model(Accept,
7
+ :item_id => 1,
8
+ :created_at => Time.zone.now
9
+ ),
10
+ stub_model(Accept,
11
+ :item_id => 1,
12
+ :created_at => Time.zone.now
13
+ )
14
+ ]).page(1))
15
+ basket = FactoryGirl.create(:basket)
16
+ assign(:basket, basket)
17
+ assign(:accept, basket.accepts.new)
18
+ end
19
+
20
+ it "renders a list of accepts" do
21
+ render
22
+ # Run the generator again with the --webrat flag if you want to use webrat matchers
23
+ assert_select "tr>td"
24
+ end
25
+ end
@@ -0,0 +1,29 @@
1
+ require 'spec_helper'
2
+
3
+ describe "accepts/new" do
4
+ before(:each) do
5
+ assign(:accept, stub_model(Accept,
6
+ :item_id => 1
7
+ ).as_new_record)
8
+ assign(:basket, FactoryGirl.create(:basket))
9
+ assign(:accepts, Kaminari::paginate_array([
10
+ stub_model(Accept,
11
+ :item_id => 1,
12
+ :created_at => Time.zone.now
13
+ ),
14
+ stub_model(Accept,
15
+ :item_id => 1,
16
+ :created_at => Time.zone.now
17
+ )
18
+ ]).page(1))
19
+ end
20
+
21
+ it "renders new accept form" do
22
+ render
23
+
24
+ # Run the generator again with the --webrat flag if you want to use webrat matchers
25
+ assert_select "form", :action => accepts_path, :method => "post" do
26
+ assert_select "input#accept_item_identifier", :name => "accept[item_identifier]"
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,17 @@
1
+ require 'spec_helper'
2
+
3
+ describe "accepts/show" do
4
+ before(:each) do
5
+ @accept = assign(:accept, stub_model(Accept,
6
+ :item_id => 1,
7
+ :librarian_id => 1,
8
+ :created_at => Time.zone.now
9
+ ))
10
+ end
11
+
12
+ it "renders attributes in <p>" do
13
+ render
14
+ # Run the generator again with the --webrat flag if you want to use webrat matchers
15
+ rendered.should match(/1/)
16
+ end
17
+ end
@@ -2,7 +2,7 @@ require 'spec_helper'
2
2
 
3
3
  describe "creates/index" do
4
4
  before(:each) do
5
- assign(:creates, [
5
+ assign(:creates, Kaminari::paginate_array([
6
6
  stub_model(Create,
7
7
  :work_id => 1,
8
8
  :patron_id => 1
@@ -11,7 +11,7 @@ describe "creates/index" do
11
11
  :work_id => 1,
12
12
  :patron_id => 2
13
13
  )
14
- ].paginate(:page => 1))
14
+ ]).page(1))
15
15
  @ability = Object.new
16
16
  @ability.extend(CanCan::Ability)
17
17
  controller.stub(:current_ability) { @ability }
@@ -2,7 +2,7 @@ require 'spec_helper'
2
2
 
3
3
  describe "exemplifies/index" do
4
4
  before(:each) do
5
- assign(:exemplifies, [
5
+ assign(:exemplifies, Kaminari::paginate_array([
6
6
  stub_model(Exemplify,
7
7
  :manifestation_id => 1,
8
8
  :item_id => 1
@@ -11,7 +11,7 @@ describe "exemplifies/index" do
11
11
  :manifestation_id => 1,
12
12
  :item_id => 2
13
13
  )
14
- ].paginate(:page => 1))
14
+ ]).page(1))
15
15
  @ability = Object.new
16
16
  @ability.extend(CanCan::Ability)
17
17
  controller.stub(:current_ability) { @ability }
@@ -2,7 +2,7 @@ require 'spec_helper'
2
2
 
3
3
  describe "owns/index" do
4
4
  before(:each) do
5
- assign(:owns, [
5
+ assign(:owns, Kaminari::paginate_array([
6
6
  stub_model(Own,
7
7
  :item_id => 1,
8
8
  :patron_id => 1
@@ -11,7 +11,7 @@ describe "owns/index" do
11
11
  :item_id => 1,
12
12
  :patron_id => 2
13
13
  )
14
- ].paginate(:page => 1))
14
+ ]).page(1))
15
15
  @ability = Object.new
16
16
  @ability.extend(CanCan::Ability)
17
17
  controller.stub(:current_ability) { @ability }
@@ -2,7 +2,7 @@ require 'spec_helper'
2
2
 
3
3
  describe "produces/index" do
4
4
  before(:each) do
5
- assign(:produces, [
5
+ assign(:produces, Kaminari::paginate_array([
6
6
  stub_model(Produce,
7
7
  :manifestation_id => 1,
8
8
  :patron_id => 2
@@ -11,7 +11,7 @@ describe "produces/index" do
11
11
  :manifestation_id => 1,
12
12
  :patron_id => 2
13
13
  )
14
- ].paginate(:page => 1))
14
+ ]).page(1))
15
15
  @ability = Object.new
16
16
  @ability.extend(CanCan::Ability)
17
17
  controller.stub(:current_ability) { @ability }
@@ -2,7 +2,7 @@ require 'spec_helper'
2
2
 
3
3
  describe "realizes/index" do
4
4
  before(:each) do
5
- assign(:realizes, [
5
+ assign(:realizes, Kaminari::paginate_array([
6
6
  stub_model(Realize,
7
7
  :expression_id => 1,
8
8
  :patron_id => 2
@@ -11,7 +11,7 @@ describe "realizes/index" do
11
11
  :expression_id => 1,
12
12
  :patron_id => 2
13
13
  )
14
- ].paginate(:page => 1))
14
+ ]).page(1))
15
15
  @ability = Object.new
16
16
  @ability.extend(CanCan::Ability)
17
17
  controller.stub(:current_ability) { @ability }
@@ -2,7 +2,7 @@ require 'spec_helper'
2
2
 
3
3
  describe "series_has_manifestations/index" do
4
4
  before(:each) do
5
- assign(:series_has_manifestations, [
5
+ assign(:series_has_manifestations, Kaminari::paginate_array([
6
6
  stub_model(SeriesHasManifestation,
7
7
  :series_statement_id => 1,
8
8
  :manifestation_id => 1,
@@ -13,7 +13,7 @@ describe "series_has_manifestations/index" do
13
13
  :manifestation_id => 1,
14
14
  :position => 1
15
15
  )
16
- ].paginate(:page => 1))
16
+ ]).page(1))
17
17
  @ability = Object.new
18
18
  @ability.extend(CanCan::Ability)
19
19
  controller.stub(:current_ability) { @ability }
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_biblio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
5
- prerelease:
4
+ version: 0.1.0.pre
5
+ prerelease: 6
6
6
  platform: ruby
7
7
  authors:
8
8
  - Kosuke Tanabe
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-22 00:00:00.000000000 Z
12
+ date: 2012-07-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -240,33 +240,17 @@ dependencies:
240
240
  requirement: !ruby/object:Gem::Requirement
241
241
  none: false
242
242
  requirements:
243
- - - ! '>='
244
- - !ruby/object:Gem::Version
245
- version: '0'
246
- type: :runtime
247
- prerelease: false
248
- version_requirements: !ruby/object:Gem::Requirement
249
- none: false
250
- requirements:
251
- - - ! '>='
252
- - !ruby/object:Gem::Version
253
- version: '0'
254
- - !ruby/object:Gem::Dependency
255
- name: enju_export
256
- requirement: !ruby/object:Gem::Requirement
257
- none: false
258
- requirements:
259
- - - ! '>='
243
+ - - ~>
260
244
  - !ruby/object:Gem::Version
261
- version: '0'
245
+ version: 0.1.0.pre
262
246
  type: :runtime
263
247
  prerelease: false
264
248
  version_requirements: !ruby/object:Gem::Requirement
265
249
  none: false
266
250
  requirements:
267
- - - ! '>='
251
+ - - ~>
268
252
  - !ruby/object:Gem::Version
269
- version: '0'
253
+ version: 0.1.0.pre
270
254
  - !ruby/object:Gem::Dependency
271
255
  name: resque_mailer
272
256
  requirement: !ruby/object:Gem::Requirement
@@ -380,13 +364,13 @@ dependencies:
380
364
  - !ruby/object:Gem::Version
381
365
  version: 2.0.0.pre.120720
382
366
  - !ruby/object:Gem::Dependency
383
- name: enju_circulation
367
+ name: enju_library
384
368
  requirement: !ruby/object:Gem::Requirement
385
369
  none: false
386
370
  requirements:
387
371
  - - ~>
388
372
  - !ruby/object:Gem::Version
389
- version: 0.0.70
373
+ version: 0.1.0.pre
390
374
  type: :development
391
375
  prerelease: false
392
376
  version_requirements: !ruby/object:Gem::Requirement
@@ -394,7 +378,7 @@ dependencies:
394
378
  requirements:
395
379
  - - ~>
396
380
  - !ruby/object:Gem::Version
397
- version: 0.0.70
381
+ version: 0.1.0.pre
398
382
  - !ruby/object:Gem::Dependency
399
383
  name: enju_inventory
400
384
  requirement: !ruby/object:Gem::Requirement
@@ -476,7 +460,7 @@ dependencies:
476
460
  - !ruby/object:Gem::Version
477
461
  version: '0'
478
462
  - !ruby/object:Gem::Dependency
479
- name: enju_library
463
+ name: enju_export
480
464
  requirement: !ruby/object:Gem::Requirement
481
465
  none: false
482
466
  requirements:
@@ -498,6 +482,7 @@ executables: []
498
482
  extensions: []
499
483
  extra_rdoc_files: []
500
484
  files:
485
+ - app/controllers/accepts_controller.rb
501
486
  - app/controllers/carrier_types_controller.rb
502
487
  - app/controllers/content_types_controller.rb
503
488
  - app/controllers/countries_controller.rb
@@ -537,6 +522,7 @@ files:
537
522
  - app/helpers/patrons_helper.rb
538
523
  - app/helpers/picture_files_helper.rb
539
524
  - app/helpers/series_statements_helper.rb
525
+ - app/models/accept.rb
540
526
  - app/models/carrier_type.rb
541
527
  - app/models/content_type.rb
542
528
  - app/models/country.rb
@@ -575,6 +561,14 @@ files:
575
561
  - app/models/resource_import_result.rb
576
562
  - app/models/series_has_manifestation.rb
577
563
  - app/models/series_statement.rb
564
+ - app/views/accepts/_form.html.erb
565
+ - app/views/accepts/_list.html.erb
566
+ - app/views/accepts/edit.html.erb
567
+ - app/views/accepts/index.csv.erb
568
+ - app/views/accepts/index.html.erb
569
+ - app/views/accepts/index.js.erb
570
+ - app/views/accepts/new.html.erb
571
+ - app/views/accepts/show.html.erb
578
572
  - app/views/carrier_types/_form.html.erb
579
573
  - app/views/carrier_types/edit.html.erb
580
574
  - app/views/carrier_types/index.html.erb
@@ -823,7 +817,6 @@ files:
823
817
  - app/views/realizes/index.html.erb
824
818
  - app/views/realizes/new.html.erb
825
819
  - app/views/realizes/show.html.erb
826
- - app/views/resource_import_files/_show_object_list.html.erb
827
820
  - app/views/resource_import_files/edit.html.erb
828
821
  - app/views/resource_import_files/index.html.erb
829
822
  - app/views/resource_import_files/new.html.erb
@@ -861,6 +854,7 @@ files:
861
854
  - db/migrate/073_create_carrier_types.rb
862
855
  - db/migrate/112_create_frequencies.rb
863
856
  - db/migrate/117_create_form_of_works.rb
857
+ - db/migrate/120_create_baskets.rb
864
858
  - db/migrate/125_create_donates.rb
865
859
  - db/migrate/20080830154109_create_realizes.rb
866
860
  - db/migrate/20080830172106_create_exemplifies.rb
@@ -912,6 +906,7 @@ files:
912
906
  - db/migrate/20120125152919_add_title_subseries_transcription_to_series_statement.rb
913
907
  - db/migrate/20120129020544_add_budget_type_id_to_item.rb
914
908
  - db/migrate/20120319120638_add_content_type_id_to_manifestation.rb
909
+ - db/migrate/20120319173203_create_accepts.rb
915
910
  - db/migrate/20120410104851_add_year_of_publication_to_manifestation.rb
916
911
  - db/migrate/20120413072700_add_picture_meta_to_picture_file.rb
917
912
  - db/migrate/20120413100352_add_fingerprint_to_picture_file.rb
@@ -932,12 +927,14 @@ files:
932
927
  - lib/enju_biblio/sru.rb
933
928
  - lib/enju_biblio/version.rb
934
929
  - lib/enju_biblio.rb
930
+ - lib/generators/enju_biblio/views_generator.rb
935
931
  - lib/tasks/enju_biblio_tasks.rake
936
932
  - MIT-LICENSE
937
933
  - Rakefile
938
934
  - README.rdoc
939
935
  - spec/cassette_library/enju_ndl/manifestation.yml
940
936
  - spec/cassette_library/enju_ndl/ndl_search.yml
937
+ - spec/controllers/accepts_controller_spec.rb
941
938
  - spec/controllers/content_types_controller_spec.rb
942
939
  - spec/controllers/countries_controller_spec.rb
943
940
  - spec/controllers/create_types_controller_spec.rb
@@ -1003,6 +1000,7 @@ files:
1003
1000
  - spec/dummy/config/initializers/configatron.rb
1004
1001
  - spec/dummy/config/initializers/devise.rb
1005
1002
  - spec/dummy/config/initializers/inflections.rb
1003
+ - spec/dummy/config/initializers/kaminari_config.rb
1006
1004
  - spec/dummy/config/initializers/mime_types.rb
1007
1005
  - spec/dummy/config/initializers/resque_mailer.rb
1008
1006
  - spec/dummy/config/initializers/secret_token.rb
@@ -1023,7 +1021,6 @@ files:
1023
1021
  - spec/dummy/db/migrate/080_create_library_groups.rb
1024
1022
  - spec/dummy/db/migrate/113_create_events.rb
1025
1023
  - spec/dummy/db/migrate/114_create_event_categories.rb
1026
- - spec/dummy/db/migrate/120_create_baskets.rb
1027
1024
  - spec/dummy/db/migrate/121_create_checked_items.rb
1028
1025
  - spec/dummy/db/migrate/124_create_bookstores.rb
1029
1026
  - spec/dummy/db/migrate/127_create_use_restrictions.rb
@@ -1078,7 +1075,6 @@ files:
1078
1075
  - spec/dummy/db/migrate/20120105101944_add_queue_to_delayed_jobs.rb
1079
1076
  - spec/dummy/db/migrate/20120125050502_add_depth_to_message.rb
1080
1077
  - spec/dummy/db/migrate/20120129014038_create_budget_types.rb
1081
- - spec/dummy/db/migrate/20120319173203_create_accepts.rb
1082
1078
  - spec/dummy/db/migrate/20120413051535_add_event_import_fingerprint_to_event_import_file.rb
1083
1079
  - spec/dummy/db/migrate/20120413100431_add_fingerprint_to_inventory_file.rb
1084
1080
  - spec/dummy/db/migrate/20120413170734_add_error_message_to_event_import_file.rb
@@ -1087,14 +1083,11 @@ files:
1087
1083
  - spec/dummy/db/migrate/20120510140958_add_closed_to_shelf.rb
1088
1084
  - spec/dummy/db/schema.rb
1089
1085
  - spec/dummy/db/test.sqlite3
1090
- - spec/dummy/lib/enju_leaf/calculate_stat.rb
1091
- - spec/dummy/lib/enju_leaf.rb
1092
1086
  - spec/dummy/lib/plugins/ext/event-calendar.rb
1093
1087
  - spec/dummy/lib/plugins/ext/sunspot/abstract_search.rb
1094
1088
  - spec/dummy/lib/plugins/ext/sunspot/dismax.rb
1095
1089
  - spec/dummy/lib/plugins/ext/sunspot/start_record.rb
1096
1090
  - spec/dummy/lib/plugins/ext/sunspot.rb
1097
- - spec/dummy/lib/plugins/ext/will_paginate.rb
1098
1091
  - spec/dummy/lib/plugins/ext.rb
1099
1092
  - spec/dummy/lib/plugins.rb
1100
1093
  - spec/dummy/private/system/patron_import_files/patron_imports/000/000/004/original/patron_delete_file.tsv
@@ -1142,6 +1135,8 @@ files:
1142
1135
  - spec/dummy/solr/data/test/spellchecker/segments_1
1143
1136
  - spec/dummy/tmp/cache/4F7/F90/default_role
1144
1137
  - spec/dummy/tmp/cache/6E4/420/search_engine_all
1138
+ - spec/factories/accepts.rb
1139
+ - spec/factories/basket.rb
1145
1140
  - spec/factories/carrier_type.rb
1146
1141
  - spec/factories/content_type.rb
1147
1142
  - spec/factories/country.rb
@@ -1243,6 +1238,7 @@ files:
1243
1238
  - spec/fixtures/user_has_roles.yml
1244
1239
  - spec/fixtures/user_reserve_stats.yml
1245
1240
  - spec/fixtures/users.yml
1241
+ - spec/models/accept_spec.rb
1246
1242
  - spec/models/carrier_type_spec.rb
1247
1243
  - spec/models/content_type_spec.rb
1248
1244
  - spec/models/country_spec.rb
@@ -1277,12 +1273,14 @@ files:
1277
1273
  - spec/models/resource_import_result_spec.rb
1278
1274
  - spec/models/series_has_manifestation_spec.rb
1279
1275
  - spec/models/series_statement_spec.rb
1276
+ - spec/requests/accepts_spec.rb
1280
1277
  - spec/requests/create_types_spec.rb
1281
1278
  - spec/requests/items_spec.rb
1282
1279
  - spec/requests/manifestations_spec.rb
1283
1280
  - spec/requests/patrons_spec.rb
1284
1281
  - spec/requests/produce_types_spec.rb
1285
1282
  - spec/requests/realize_types_spec.rb
1283
+ - spec/routing/accepts_routing_spec.rb
1286
1284
  - spec/routing/content_types_routing_spec.rb
1287
1285
  - spec/routing/create_types_routing_spec.rb
1288
1286
  - spec/routing/creates_routing_spec.rb
@@ -1302,6 +1300,10 @@ files:
1302
1300
  - spec/support/controller_macros.rb
1303
1301
  - spec/support/devise.rb
1304
1302
  - spec/support/vcr.rb
1303
+ - spec/views/accepts/edit.html.erb_spec.rb
1304
+ - spec/views/accepts/index.html.erb_spec.rb
1305
+ - spec/views/accepts/new.html.erb_spec.rb
1306
+ - spec/views/accepts/show.html.erb_spec.rb
1305
1307
  - spec/views/create_types/edit.html.erb_spec.rb
1306
1308
  - spec/views/create_types/index.html.erb_spec.rb
1307
1309
  - spec/views/create_types/new.html.erb_spec.rb
@@ -1339,7 +1341,7 @@ files:
1339
1341
  - spec/views/series_has_manifestations/index.html.erb_spec.rb
1340
1342
  - spec/views/series_has_manifestations/new.html.erb_spec.rb
1341
1343
  - spec/views/series_has_manifestations/show.html.erb_spec.rb
1342
- homepage: https://github.com/nabeta/enju_circulation
1344
+ homepage: https://github.com/nabeta/enju_biblio
1343
1345
  licenses: []
1344
1346
  post_install_message:
1345
1347
  rdoc_options: []
@@ -1354,18 +1356,19 @@ required_ruby_version: !ruby/object:Gem::Requirement
1354
1356
  required_rubygems_version: !ruby/object:Gem::Requirement
1355
1357
  none: false
1356
1358
  requirements:
1357
- - - ! '>='
1359
+ - - ! '>'
1358
1360
  - !ruby/object:Gem::Version
1359
- version: '0'
1361
+ version: 1.3.1
1360
1362
  requirements: []
1361
1363
  rubyforge_project:
1362
1364
  rubygems_version: 1.8.23
1363
1365
  signing_key:
1364
1366
  specification_version: 3
1365
- summary: enju_circulation plugin
1367
+ summary: enju_biblio plugin
1366
1368
  test_files:
1367
1369
  - spec/cassette_library/enju_ndl/manifestation.yml
1368
1370
  - spec/cassette_library/enju_ndl/ndl_search.yml
1371
+ - spec/controllers/accepts_controller_spec.rb
1369
1372
  - spec/controllers/content_types_controller_spec.rb
1370
1373
  - spec/controllers/countries_controller_spec.rb
1371
1374
  - spec/controllers/create_types_controller_spec.rb
@@ -1431,6 +1434,7 @@ test_files:
1431
1434
  - spec/dummy/config/initializers/configatron.rb
1432
1435
  - spec/dummy/config/initializers/devise.rb
1433
1436
  - spec/dummy/config/initializers/inflections.rb
1437
+ - spec/dummy/config/initializers/kaminari_config.rb
1434
1438
  - spec/dummy/config/initializers/mime_types.rb
1435
1439
  - spec/dummy/config/initializers/resque_mailer.rb
1436
1440
  - spec/dummy/config/initializers/secret_token.rb
@@ -1451,7 +1455,6 @@ test_files:
1451
1455
  - spec/dummy/db/migrate/080_create_library_groups.rb
1452
1456
  - spec/dummy/db/migrate/113_create_events.rb
1453
1457
  - spec/dummy/db/migrate/114_create_event_categories.rb
1454
- - spec/dummy/db/migrate/120_create_baskets.rb
1455
1458
  - spec/dummy/db/migrate/121_create_checked_items.rb
1456
1459
  - spec/dummy/db/migrate/124_create_bookstores.rb
1457
1460
  - spec/dummy/db/migrate/127_create_use_restrictions.rb
@@ -1506,7 +1509,6 @@ test_files:
1506
1509
  - spec/dummy/db/migrate/20120105101944_add_queue_to_delayed_jobs.rb
1507
1510
  - spec/dummy/db/migrate/20120125050502_add_depth_to_message.rb
1508
1511
  - spec/dummy/db/migrate/20120129014038_create_budget_types.rb
1509
- - spec/dummy/db/migrate/20120319173203_create_accepts.rb
1510
1512
  - spec/dummy/db/migrate/20120413051535_add_event_import_fingerprint_to_event_import_file.rb
1511
1513
  - spec/dummy/db/migrate/20120413100431_add_fingerprint_to_inventory_file.rb
1512
1514
  - spec/dummy/db/migrate/20120413170734_add_error_message_to_event_import_file.rb
@@ -1515,14 +1517,11 @@ test_files:
1515
1517
  - spec/dummy/db/migrate/20120510140958_add_closed_to_shelf.rb
1516
1518
  - spec/dummy/db/schema.rb
1517
1519
  - spec/dummy/db/test.sqlite3
1518
- - spec/dummy/lib/enju_leaf/calculate_stat.rb
1519
- - spec/dummy/lib/enju_leaf.rb
1520
1520
  - spec/dummy/lib/plugins/ext/event-calendar.rb
1521
1521
  - spec/dummy/lib/plugins/ext/sunspot/abstract_search.rb
1522
1522
  - spec/dummy/lib/plugins/ext/sunspot/dismax.rb
1523
1523
  - spec/dummy/lib/plugins/ext/sunspot/start_record.rb
1524
1524
  - spec/dummy/lib/plugins/ext/sunspot.rb
1525
- - spec/dummy/lib/plugins/ext/will_paginate.rb
1526
1525
  - spec/dummy/lib/plugins/ext.rb
1527
1526
  - spec/dummy/lib/plugins.rb
1528
1527
  - spec/dummy/private/system/patron_import_files/patron_imports/000/000/004/original/patron_delete_file.tsv
@@ -1570,6 +1569,8 @@ test_files:
1570
1569
  - spec/dummy/solr/data/test/spellchecker/segments_1
1571
1570
  - spec/dummy/tmp/cache/4F7/F90/default_role
1572
1571
  - spec/dummy/tmp/cache/6E4/420/search_engine_all
1572
+ - spec/factories/accepts.rb
1573
+ - spec/factories/basket.rb
1573
1574
  - spec/factories/carrier_type.rb
1574
1575
  - spec/factories/content_type.rb
1575
1576
  - spec/factories/country.rb
@@ -1671,6 +1672,7 @@ test_files:
1671
1672
  - spec/fixtures/user_has_roles.yml
1672
1673
  - spec/fixtures/user_reserve_stats.yml
1673
1674
  - spec/fixtures/users.yml
1675
+ - spec/models/accept_spec.rb
1674
1676
  - spec/models/carrier_type_spec.rb
1675
1677
  - spec/models/content_type_spec.rb
1676
1678
  - spec/models/country_spec.rb
@@ -1705,12 +1707,14 @@ test_files:
1705
1707
  - spec/models/resource_import_result_spec.rb
1706
1708
  - spec/models/series_has_manifestation_spec.rb
1707
1709
  - spec/models/series_statement_spec.rb
1710
+ - spec/requests/accepts_spec.rb
1708
1711
  - spec/requests/create_types_spec.rb
1709
1712
  - spec/requests/items_spec.rb
1710
1713
  - spec/requests/manifestations_spec.rb
1711
1714
  - spec/requests/patrons_spec.rb
1712
1715
  - spec/requests/produce_types_spec.rb
1713
1716
  - spec/requests/realize_types_spec.rb
1717
+ - spec/routing/accepts_routing_spec.rb
1714
1718
  - spec/routing/content_types_routing_spec.rb
1715
1719
  - spec/routing/create_types_routing_spec.rb
1716
1720
  - spec/routing/creates_routing_spec.rb
@@ -1730,6 +1734,10 @@ test_files:
1730
1734
  - spec/support/controller_macros.rb
1731
1735
  - spec/support/devise.rb
1732
1736
  - spec/support/vcr.rb
1737
+ - spec/views/accepts/edit.html.erb_spec.rb
1738
+ - spec/views/accepts/index.html.erb_spec.rb
1739
+ - spec/views/accepts/new.html.erb_spec.rb
1740
+ - spec/views/accepts/show.html.erb_spec.rb
1733
1741
  - spec/views/create_types/edit.html.erb_spec.rb
1734
1742
  - spec/views/create_types/index.html.erb_spec.rb
1735
1743
  - spec/views/create_types/new.html.erb_spec.rb