enju_biblio 0.1.0.pre21 → 0.1.0.pre22

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/app/models/item.rb +1 -1
  3. data/app/views/manifestations/_form.html.erb +5 -0
  4. data/lib/enju_biblio/version.rb +1 -1
  5. data/spec/dummy/db/migrate/20130303104849_add_state_index_to_reserve.rb +5 -0
  6. data/spec/dummy/db/migrate/20130303124821_add_retained_at_to_reserve.rb +5 -0
  7. data/spec/dummy/db/migrate/20130304015019_add_postponed_at_to_reserve.rb +5 -0
  8. data/spec/dummy/db/schema.rb +4 -2
  9. data/spec/dummy/db/test.sqlite3 +0 -0
  10. data/spec/dummy/solr/data/test/index/_tu.fdt +0 -0
  11. data/spec/dummy/solr/data/test/index/_tu.fdx +0 -0
  12. data/spec/dummy/solr/data/test/index/_tu.fnm +7 -0
  13. data/spec/dummy/solr/data/test/index/_tu.frq +0 -0
  14. data/spec/dummy/solr/data/test/index/_tu.nrm +1 -0
  15. data/spec/dummy/solr/data/test/index/_tu.prx +0 -0
  16. data/spec/dummy/solr/data/test/index/_tu.tii +0 -0
  17. data/spec/dummy/solr/data/test/index/_tu.tis +0 -0
  18. data/spec/dummy/solr/data/test/index/_tv.fdt +0 -0
  19. data/spec/dummy/solr/data/test/index/_tv.fdx +0 -0
  20. data/spec/dummy/solr/data/test/index/_tv.fnm +7 -0
  21. data/spec/dummy/solr/data/test/index/_tv.frq +0 -0
  22. data/spec/dummy/solr/data/test/index/_tv.nrm +1 -0
  23. data/spec/dummy/solr/data/test/index/_tv.prx +0 -0
  24. data/spec/dummy/solr/data/test/index/_tv.tii +0 -0
  25. data/spec/dummy/solr/data/test/index/_tv.tis +0 -0
  26. data/spec/dummy/solr/data/test/index/_tw.fdt +0 -0
  27. data/spec/dummy/solr/data/test/index/_tw.fdx +0 -0
  28. data/spec/dummy/solr/data/test/index/_tw.fnm +8 -0
  29. data/spec/dummy/solr/data/test/index/_tw.frq +0 -0
  30. data/spec/dummy/solr/data/test/index/_tw.nrm +1 -0
  31. data/spec/dummy/solr/data/test/index/_tw.prx +0 -0
  32. data/spec/dummy/solr/data/test/index/_tw.tii +0 -0
  33. data/spec/dummy/solr/data/test/index/_tw.tis +0 -0
  34. data/spec/dummy/solr/data/test/index/segments.gen +0 -0
  35. data/spec/dummy/solr/data/test/index/segments_16t +0 -0
  36. data/spec/dummy/tmp/cache/4F7/F90/default_role +0 -0
  37. data/spec/dummy/tmp/cache/6E4/420/search_engine_all +0 -0
  38. data/spec/dummy/tmp/cache/ACB/B20/manifestation_search_total +2 -0
  39. data/spec/models/item_spec.rb +2 -2
  40. metadata +66 -11
  41. data/db/migrate/20121119153944_add_manifestation_id_to_item.rb +0 -5
  42. data/spec/dummy/solr/data/test/index/segments_vu +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 43b1c3ae3a79ff7af5219d194125b2981856ebe8
4
- data.tar.gz: 0f0d22a7bea5631a8c74b729d0ebcbd30eea60c9
3
+ metadata.gz: 110e82e3513e0759085b4be6f4fc13103261b7b1
4
+ data.tar.gz: 0985130ae8accad84425cc3c6fdf8ba0d9963132
5
5
  SHA512:
6
- metadata.gz: ce157cf849f7e6c062b03d72eab11f841dc7d1a520807d6469c07f28de684654a0038b99a5ff58ba5d9c1ec72ae1a91ae89b7a33ff23dfab7dc86b174c48cabe
7
- data.tar.gz: e621fcbc9bb6f3f7d28cd96a947ef30a8890f06d8fc943568542437da65ebfaf23e76a9ab383a73769ff171cfd482346ab2a11d05e1d3fbb62ef8d51d142e14a
6
+ metadata.gz: ad635f15df3b55e5d794a04bdcf0fa8be3850342b4ef2a2ef6f066d07d5701563ae400af212468c0c574d7eefa968bff8345c357c8da3926cb217c6d82c4a47f
7
+ data.tar.gz: c83a06a6418f21538a2626e354ff6a3da19fa4173e3172371db74cdeaa50f779f2cec9c82e1ec4ef88129b75917fbe57f71228cece0dd7034e0591b4c8c55c83
data/app/models/item.rb CHANGED
@@ -47,7 +47,7 @@ class Item < ActiveRecord::Base
47
47
 
48
48
  enju_circulation_item_model if defined?(EnjuCirculation)
49
49
 
50
- attr_accessor :library_id
50
+ attr_accessor :library_id, :manifestation_id
51
51
 
52
52
  if defined?(EnjuInventory)
53
53
  has_many :inventories, :dependent => :destroy
@@ -101,6 +101,11 @@
101
101
  <% end %>
102
102
  </div>
103
103
 
104
+ <div class="field">
105
+ <%= f.label :classification_number -%><br />
106
+ <%= f.text_area :classification_number, :class => 'resource_textarea' -%>
107
+ </div>
108
+
104
109
  <div class="field">
105
110
  <%= f.label :start_page -%>
106
111
  <%= f.text_field :start_page, :class => 'resource_integer' -%>
@@ -1,3 +1,3 @@
1
1
  module EnjuBiblio
2
- VERSION = "0.1.0.pre21"
2
+ VERSION = "0.1.0.pre22"
3
3
  end
@@ -0,0 +1,5 @@
1
+ class AddStateIndexToReserve < ActiveRecord::Migration
2
+ def change
3
+ add_index :reserves, :state
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddRetainedAtToReserve < ActiveRecord::Migration
2
+ def change
3
+ add_column :reserves, :retained_at, :datetime
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddPostponedAtToReserve < ActiveRecord::Migration
2
+ def change
3
+ add_column :reserves, :postponed_at, :datetime
4
+ end
5
+ end
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # It's strongly recommended to check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(:version => 20121119153944) do
14
+ ActiveRecord::Schema.define(:version => 20130304015019) do
15
15
 
16
16
  create_table "baskets", :force => true do |t|
17
17
  t.integer "user_id"
@@ -429,7 +429,6 @@ ActiveRecord::Schema.define(:version => 20121119153944) do
429
429
  t.datetime "acquired_at"
430
430
  t.integer "bookstore_id"
431
431
  t.integer "budget_type_id"
432
- t.integer "manifestation_id"
433
432
  end
434
433
 
435
434
  add_index "items", ["bookstore_id"], :name => "index_items_on_bookstore_id"
@@ -961,11 +960,14 @@ ActiveRecord::Schema.define(:version => 20121119153944) do
961
960
  t.string "state"
962
961
  t.boolean "expiration_notice_to_patron", :default => false
963
962
  t.boolean "expiration_notice_to_library", :default => false
963
+ t.datetime "retained_at"
964
+ t.datetime "postponed_at"
964
965
  end
965
966
 
966
967
  add_index "reserves", ["item_id"], :name => "index_reserves_on_item_id"
967
968
  add_index "reserves", ["manifestation_id"], :name => "index_reserves_on_manifestation_id"
968
969
  add_index "reserves", ["request_status_type_id"], :name => "index_reserves_on_request_status_type_id"
970
+ add_index "reserves", ["state"], :name => "index_reserves_on_state"
969
971
  add_index "reserves", ["user_id"], :name => "index_reserves_on_user_id"
970
972
 
971
973
  create_table "resource_import_files", :force => true do |t|
Binary file
@@ -0,0 +1,7 @@
1
+ ����+idtype
2
+ class_nametitle_smconnect_title_sconnect_creator_sconnect_publisher_sisbn_smcarrier_type_s
3
+ library_sm
4
+ language_sitem_identifier_smshelf_sm created_at_d updated_at_dcreator_ids_imcontributor_ids_impublisher_ids_im item_ids_imrequired_role_id_i start_page_i
5
+ end_page_inumber_of_pages_iseries_statement_id_irepository_content_b
6
+ creator_sm sort_title_s periodical_bperiodical_master_b reservable_b
7
+ title_text creator_textcontributor_textpublisher_textitem_identifier_text aulast_text aufirst_textau_text btitle_text isbn_textoriginal_manifestation_ids_im jtitle_text pub_date_dm
@@ -0,0 +1 @@
1
+ NRM�turxtuxutrtwsssuuvyrttrvrrtxtxswuywtrtyvywtuwwttptxy|||||||||||tuuu|||||||||||||||||||||||||||||||||wxwwx|||||||||||||||||||||||||||||||||||||||||||||wxwwx|||||||||||||||||||||||||||u|||||||||||||||||uvw|||||||x|||||||||||||||||||||||||||||||||||||||y||||||||||||w���|||||||||||||||||||||||||||||||||��|||||||||||w���|||||||||||||||||||||||||||||||||xy|||||||||||tuuu|||||||||||||||||||||||||||||||||turxtuxutrtwsssuuvyrttrvrrtxtxswuywtrtyvywtuwwttpt||||��|||||��||||||||||||||||||||||||||||||||||||||tu|||||||||||||||||||||||||||||||||||||||||||||||
@@ -0,0 +1,7 @@
1
+ ����+idtype
2
+ class_nametitle_smconnect_title_sconnect_creator_sconnect_publisher_sisbn_smcarrier_type_s
3
+ library_sm
4
+ language_sitem_identifier_smshelf_sm created_at_d updated_at_dcreator_ids_imcontributor_ids_impublisher_ids_im item_ids_imrequired_role_id_i start_page_i
5
+ end_page_inumber_of_pages_iseries_statement_id_irepository_content_b
6
+ creator_sm sort_title_s periodical_bperiodical_master_b reservable_b
7
+ title_text creator_textcontributor_textpublisher_textitem_identifier_text aulast_text aufirst_textau_text btitle_text isbn_textoriginal_manifestation_ids_im jtitle_text pub_date_dm
@@ -0,0 +1 @@
1
+ NRM�xuuwuyutxxvxvxwtyvxwxxxvvtwwxvytwxwrwvxxyxuyxyuysx||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||xuuwuyutxxvxvxwtyvxwxxxvvtwwxvytwxwrwvxxyxuyxyuysx||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
@@ -0,0 +1,8 @@
1
+ ����3idtype
2
+ class_nametitle_smconnect_title_sconnect_creator_sconnect_publisher_sisbn_smcarrier_type_s
3
+ library_sm
4
+ language_sitem_identifier_smshelf_sm created_at_d updated_at_dcreator_ids_imcontributor_ids_impublisher_ids_im item_ids_imrequired_role_id_i start_page_i
5
+ end_page_inumber_of_pages_iseries_statement_id_irepository_content_b
6
+ creator_sm sort_title_s periodical_bperiodical_master_b reservable_b
7
+ title_text creator_textcontributor_textpublisher_textitem_identifier_text aulast_text aufirst_textau_text btitle_text isbn_textoriginal_manifestation_ids_im jtitle_text pub_date_dmissn_sm issn_textvolume_number_iissue_number_iserial_number_i atitle_textdate_of_publication_d
8
+ pub_year_i
@@ -0,0 +1 @@
1
+ NRM�vruwvvuur|xutttttwwuuuuuuxx||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||xtt|uuutt||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||vruwvvuur|xu||tttwwuuuuuuxx|||||y|||��|||||||���������||||||||||||xw|||||||||||||||||||||||||y||||||||||||||||||||||||||tt|||||||||||||
@@ -0,0 +1,2 @@
1
+ o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1362472376.395749: @value"
2
+ i
@@ -27,10 +27,10 @@ describe Item do
27
27
  old_count = MessageRequest.count
28
28
  items(:item_00013).retain(users(:librarian1)).should be_true
29
29
  items(:item_00013).reserves.first.state.should eq 'retained'
30
- MessageRequest.count.should eq old_count + 2
30
+ MessageRequest.count.should eq old_count + 4
31
31
  end
32
32
 
33
- it "should not be checked out when it is clamed" do
33
+ it "should not be checked out when it is reserved" do
34
34
  items(:item_00012).available_for_checkout?.should be_false
35
35
  end
36
36
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_biblio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre21
4
+ version: 0.1.0.pre22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kosuke Tanabe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-03-04 00:00:00.000000000 Z
11
+ date: 2013-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -324,14 +324,14 @@ dependencies:
324
324
  requirements:
325
325
  - - ~>
326
326
  - !ruby/object:Gem::Version
327
- version: 0.1.0.pre9
327
+ version: 0.1.0.pre11
328
328
  type: :development
329
329
  prerelease: false
330
330
  version_requirements: !ruby/object:Gem::Requirement
331
331
  requirements:
332
332
  - - ~>
333
333
  - !ruby/object:Gem::Version
334
- version: 0.1.0.pre9
334
+ version: 0.1.0.pre11
335
335
  - !ruby/object:Gem::Dependency
336
336
  name: enju_inventory
337
337
  requirement: !ruby/object:Gem::Requirement
@@ -422,14 +422,14 @@ dependencies:
422
422
  requirements:
423
423
  - - ~>
424
424
  - !ruby/object:Gem::Version
425
- version: 0.1.0.pre11
425
+ version: 0.1.0.pre12
426
426
  type: :development
427
427
  prerelease: false
428
428
  version_requirements: !ruby/object:Gem::Requirement
429
429
  requirements:
430
430
  - - ~>
431
431
  - !ruby/object:Gem::Version
432
- version: 0.1.0.pre11
432
+ version: 0.1.0.pre12
433
433
  - !ruby/object:Gem::Dependency
434
434
  name: enju_oai
435
435
  requirement: !ruby/object:Gem::Requirement
@@ -450,14 +450,14 @@ dependencies:
450
450
  requirements:
451
451
  - - ~>
452
452
  - !ruby/object:Gem::Version
453
- version: 0.1.0.pre8
453
+ version: 0.1.0.pre9
454
454
  type: :development
455
455
  prerelease: false
456
456
  version_requirements: !ruby/object:Gem::Requirement
457
457
  requirements:
458
458
  - - ~>
459
459
  - !ruby/object:Gem::Version
460
- version: 0.1.0.pre8
460
+ version: 0.1.0.pre9
461
461
  - !ruby/object:Gem::Dependency
462
462
  name: mobylette
463
463
  requirement: !ruby/object:Gem::Requirement
@@ -931,7 +931,6 @@ files:
931
931
  - db/migrate/20120728204337_create_series_statement_relationships.rb
932
932
  - db/migrate/20121116031206_add_fulltext_content_to_manifestation.rb
933
933
  - db/migrate/20121116033446_add_doi_to_manifestation.rb
934
- - db/migrate/20121119153944_add_manifestation_id_to_item.rb
935
934
  - lib/enju_biblio/biblio_helper.rb
936
935
  - lib/enju_biblio/engine.rb
937
936
  - lib/enju_biblio/openurl.rb
@@ -1096,6 +1095,9 @@ files:
1096
1095
  - spec/dummy/db/migrate/20120415060342_rename_event_import_file_imported_at_to_executed_at.rb
1097
1096
  - spec/dummy/db/migrate/20120424103932_add_librarian_id_to_checked_item.rb
1098
1097
  - spec/dummy/db/migrate/20120510140958_add_closed_to_shelf.rb
1098
+ - spec/dummy/db/migrate/20130303104849_add_state_index_to_reserve.rb
1099
+ - spec/dummy/db/migrate/20130303124821_add_retained_at_to_reserve.rb
1100
+ - spec/dummy/db/migrate/20130304015019_add_postponed_at_to_reserve.rb
1099
1101
  - spec/dummy/db/schema.rb
1100
1102
  - spec/dummy/db/test.sqlite3
1101
1103
  - spec/dummy/lib/plugins/ext/event-calendar.rb
@@ -1139,12 +1141,37 @@ files:
1139
1141
  - spec/dummy/solr/conf/spellings.txt
1140
1142
  - spec/dummy/solr/conf/stopwords.txt
1141
1143
  - spec/dummy/solr/conf/synonyms.txt
1144
+ - spec/dummy/solr/data/test/index/_tu.fdt
1145
+ - spec/dummy/solr/data/test/index/_tu.fdx
1146
+ - spec/dummy/solr/data/test/index/_tu.fnm
1147
+ - spec/dummy/solr/data/test/index/_tu.frq
1148
+ - spec/dummy/solr/data/test/index/_tu.nrm
1149
+ - spec/dummy/solr/data/test/index/_tu.prx
1150
+ - spec/dummy/solr/data/test/index/_tu.tii
1151
+ - spec/dummy/solr/data/test/index/_tu.tis
1152
+ - spec/dummy/solr/data/test/index/_tv.fdt
1153
+ - spec/dummy/solr/data/test/index/_tv.fdx
1154
+ - spec/dummy/solr/data/test/index/_tv.fnm
1155
+ - spec/dummy/solr/data/test/index/_tv.frq
1156
+ - spec/dummy/solr/data/test/index/_tv.nrm
1157
+ - spec/dummy/solr/data/test/index/_tv.prx
1158
+ - spec/dummy/solr/data/test/index/_tv.tii
1159
+ - spec/dummy/solr/data/test/index/_tv.tis
1160
+ - spec/dummy/solr/data/test/index/_tw.fdt
1161
+ - spec/dummy/solr/data/test/index/_tw.fdx
1162
+ - spec/dummy/solr/data/test/index/_tw.fnm
1163
+ - spec/dummy/solr/data/test/index/_tw.frq
1164
+ - spec/dummy/solr/data/test/index/_tw.nrm
1165
+ - spec/dummy/solr/data/test/index/_tw.prx
1166
+ - spec/dummy/solr/data/test/index/_tw.tii
1167
+ - spec/dummy/solr/data/test/index/_tw.tis
1142
1168
  - spec/dummy/solr/data/test/index/segments.gen
1143
- - spec/dummy/solr/data/test/index/segments_vu
1169
+ - spec/dummy/solr/data/test/index/segments_16t
1144
1170
  - spec/dummy/solr/data/test/spellchecker/segments.gen
1145
1171
  - spec/dummy/solr/data/test/spellchecker/segments_1
1146
1172
  - spec/dummy/tmp/cache/4F7/F90/default_role
1147
1173
  - spec/dummy/tmp/cache/6E4/420/search_engine_all
1174
+ - spec/dummy/tmp/cache/ACB/B20/manifestation_search_total
1148
1175
  - spec/factories/basket.rb
1149
1176
  - spec/factories/carrier_type.rb
1150
1177
  - spec/factories/content_type.rb
@@ -1526,6 +1553,9 @@ test_files:
1526
1553
  - spec/dummy/db/migrate/20120415060342_rename_event_import_file_imported_at_to_executed_at.rb
1527
1554
  - spec/dummy/db/migrate/20120424103932_add_librarian_id_to_checked_item.rb
1528
1555
  - spec/dummy/db/migrate/20120510140958_add_closed_to_shelf.rb
1556
+ - spec/dummy/db/migrate/20130303104849_add_state_index_to_reserve.rb
1557
+ - spec/dummy/db/migrate/20130303124821_add_retained_at_to_reserve.rb
1558
+ - spec/dummy/db/migrate/20130304015019_add_postponed_at_to_reserve.rb
1529
1559
  - spec/dummy/db/schema.rb
1530
1560
  - spec/dummy/db/test.sqlite3
1531
1561
  - spec/dummy/lib/plugins/ext/event-calendar.rb
@@ -1569,12 +1599,37 @@ test_files:
1569
1599
  - spec/dummy/solr/conf/spellings.txt
1570
1600
  - spec/dummy/solr/conf/stopwords.txt
1571
1601
  - spec/dummy/solr/conf/synonyms.txt
1602
+ - spec/dummy/solr/data/test/index/_tu.fdt
1603
+ - spec/dummy/solr/data/test/index/_tu.fdx
1604
+ - spec/dummy/solr/data/test/index/_tu.fnm
1605
+ - spec/dummy/solr/data/test/index/_tu.frq
1606
+ - spec/dummy/solr/data/test/index/_tu.nrm
1607
+ - spec/dummy/solr/data/test/index/_tu.prx
1608
+ - spec/dummy/solr/data/test/index/_tu.tii
1609
+ - spec/dummy/solr/data/test/index/_tu.tis
1610
+ - spec/dummy/solr/data/test/index/_tv.fdt
1611
+ - spec/dummy/solr/data/test/index/_tv.fdx
1612
+ - spec/dummy/solr/data/test/index/_tv.fnm
1613
+ - spec/dummy/solr/data/test/index/_tv.frq
1614
+ - spec/dummy/solr/data/test/index/_tv.nrm
1615
+ - spec/dummy/solr/data/test/index/_tv.prx
1616
+ - spec/dummy/solr/data/test/index/_tv.tii
1617
+ - spec/dummy/solr/data/test/index/_tv.tis
1618
+ - spec/dummy/solr/data/test/index/_tw.fdt
1619
+ - spec/dummy/solr/data/test/index/_tw.fdx
1620
+ - spec/dummy/solr/data/test/index/_tw.fnm
1621
+ - spec/dummy/solr/data/test/index/_tw.frq
1622
+ - spec/dummy/solr/data/test/index/_tw.nrm
1623
+ - spec/dummy/solr/data/test/index/_tw.prx
1624
+ - spec/dummy/solr/data/test/index/_tw.tii
1625
+ - spec/dummy/solr/data/test/index/_tw.tis
1572
1626
  - spec/dummy/solr/data/test/index/segments.gen
1573
- - spec/dummy/solr/data/test/index/segments_vu
1627
+ - spec/dummy/solr/data/test/index/segments_16t
1574
1628
  - spec/dummy/solr/data/test/spellchecker/segments.gen
1575
1629
  - spec/dummy/solr/data/test/spellchecker/segments_1
1576
1630
  - spec/dummy/tmp/cache/4F7/F90/default_role
1577
1631
  - spec/dummy/tmp/cache/6E4/420/search_engine_all
1632
+ - spec/dummy/tmp/cache/ACB/B20/manifestation_search_total
1578
1633
  - spec/factories/basket.rb
1579
1634
  - spec/factories/carrier_type.rb
1580
1635
  - spec/factories/content_type.rb
@@ -1,5 +0,0 @@
1
- class AddManifestationIdToItem < ActiveRecord::Migration
2
- def change
3
- add_column :items, :manifestation_id, :integer
4
- end
5
- end