enju_biblio 0.1.0.pre36 → 0.1.0.pre37

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/scaffold.css +56 -0
  3. data/app/controllers/manifestations_controller.rb +18 -22
  4. data/app/controllers/series_statements_controller.rb +6 -35
  5. data/app/models/enju_biblio/ability.rb +2 -4
  6. data/app/models/manifestation.rb +75 -92
  7. data/app/models/series_statement.rb +13 -18
  8. data/app/views/manifestations/_edit_detail.html.erb +10 -0
  9. data/app/views/manifestations/_form.html.erb +49 -34
  10. data/app/views/manifestations/_manifestation.html.erb +2 -12
  11. data/app/views/manifestations/_show_detail_librarian.html.erb +3 -33
  12. data/app/views/manifestations/_show_detail_user.html.erb +3 -18
  13. data/app/views/manifestations/_show_parent.html.erb +0 -12
  14. data/app/views/manifestations/_show_series_detail.html.erb +26 -0
  15. data/app/views/manifestations/show.html.erb +1 -27
  16. data/app/views/series_statements/_form.html.erb +1 -1
  17. data/app/views/series_statements/_index.html.erb +3 -11
  18. data/app/views/series_statements/show.html.erb +22 -30
  19. data/config/locales/translation_en.yml +2 -0
  20. data/config/locales/translation_ja.yml +2 -0
  21. data/config/routes.rb +3 -7
  22. data/db/migrate/005_create_manifestations.rb +4 -3
  23. data/db/migrate/20081028083142_create_patron_import_files.rb +1 -1
  24. data/db/migrate/20081028083208_create_resource_import_files.rb +1 -1
  25. data/lib/enju_biblio/biblio_helper.rb +1 -1
  26. data/lib/enju_biblio/version.rb +1 -1
  27. data/spec/controllers/import_requests_controller_spec.rb +1 -1
  28. data/spec/controllers/manifestations_controller_spec.rb +0 -6
  29. data/spec/controllers/series_statements_controller_spec.rb +4 -4
  30. data/spec/dummy/app/controllers/application_controller.rb +1 -0
  31. data/spec/dummy/app/models/ability.rb +2 -4
  32. data/spec/dummy/config/application.rb +1 -0
  33. data/spec/dummy/db/development.sqlite3 +0 -0
  34. data/spec/dummy/db/migrate/029_create_subjects.rb +27 -0
  35. data/spec/dummy/db/migrate/142_create_classifications.rb +19 -0
  36. data/spec/dummy/db/migrate/144_create_classification_types.rb +16 -0
  37. data/spec/dummy/db/migrate/145_create_subject_heading_types.rb +16 -0
  38. data/spec/dummy/db/migrate/146_create_subject_types.rb +16 -0
  39. data/spec/dummy/db/migrate/20080606052544_create_work_has_subjects.rb +18 -0
  40. data/spec/dummy/db/migrate/20090208044541_create_subject_heading_type_has_subjects.rb +16 -0
  41. data/spec/dummy/db/migrate/20110913120629_add_lft_and_rgt_to_classification.rb +11 -0
  42. data/spec/dummy/db/migrate/20120406020752_add_url_to_subject.rb +5 -0
  43. data/spec/dummy/db/migrate/20130504133816_add_manifestation_id_to_subject.rb +6 -0
  44. data/spec/dummy/db/migrate/20130504143515_add_manifestation_id_to_classification.rb +6 -0
  45. data/spec/dummy/db/schema.rb +92 -9
  46. data/spec/dummy/db/test.sqlite3 +0 -0
  47. data/spec/dummy/solr/data/test/index/segments.gen +0 -0
  48. data/spec/dummy/solr/data/test/index/segments_l8s +0 -0
  49. data/spec/dummy/tmp/cache/4AD/470/country_all +0 -0
  50. data/spec/fixtures/manifestations.yml +66 -70
  51. data/spec/fixtures/series_statements.yml +1 -1
  52. data/spec/fixtures/subject_types.yml +28 -0
  53. data/spec/models/import_request_spec.rb +2 -0
  54. data/spec/models/manifestation_spec.rb +66 -70
  55. data/spec/models/series_statement_spec.rb +1 -0
  56. metadata +35 -37
  57. data/app/controllers/series_statement_relationships_controller.rb +0 -20
  58. data/app/models/series_statement_relationship.rb +0 -30
  59. data/app/views/series_statement_relationships/_form.html.erb +0 -27
  60. data/app/views/series_statement_relationships/edit.html.erb +0 -15
  61. data/app/views/series_statement_relationships/index.html.erb +0 -34
  62. data/app/views/series_statement_relationships/new.html.erb +0 -14
  63. data/app/views/series_statement_relationships/show.html.erb +0 -24
  64. data/app/views/series_statements/_index_parent.html.erb +0 -53
  65. data/app/views/series_statements/_manifestation_list.html.erb +0 -17
  66. data/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb +0 -13
  67. data/db/migrate/20120415060308_rename_resource_import_file_imported_at_to_executed_at.rb +0 -9
  68. data/db/migrate/20120415060323_rename_patron_import_file_imported_at_to_executed_at.rb +0 -9
  69. data/db/migrate/20120728204337_create_series_statement_relationships.rb +0 -11
  70. data/spec/controllers/series_statement_relationships_controller_spec.rb +0 -179
  71. data/spec/dummy/solr/data/test/index/segments_iwe +0 -0
  72. data/spec/models/series_statement_relationship_spec.rb +0 -17
  73. data/spec/requests/series_statement_relationships_spec.rb +0 -11
  74. data/spec/routing/series_statement_relationships_routing_spec.rb +0 -35
  75. data/spec/views/series_statement_relationships/edit.html.erb_spec.rb +0 -20
  76. data/spec/views/series_statement_relationships/index.html.erb_spec.rb +0 -23
  77. data/spec/views/series_statement_relationships/new.html.erb_spec.rb +0 -20
  78. data/spec/views/series_statement_relationships/show.html.erb_spec.rb +0 -17
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.pre36
4
+ version: 0.1.0.pre37
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-05-02 00:00:00.000000000 Z
11
+ date: 2013-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: enju_core
@@ -296,14 +296,14 @@ dependencies:
296
296
  requirements:
297
297
  - - ~>
298
298
  - !ruby/object:Gem::Version
299
- version: 0.1.0.pre12
299
+ version: 0.1.0.pre13
300
300
  type: :development
301
301
  prerelease: false
302
302
  version_requirements: !ruby/object:Gem::Requirement
303
303
  requirements:
304
304
  - - ~>
305
305
  - !ruby/object:Gem::Version
306
- version: 0.1.0.pre12
306
+ version: 0.1.0.pre13
307
307
  - !ruby/object:Gem::Dependency
308
308
  name: enju_inventory
309
309
  requirement: !ruby/object:Gem::Requirement
@@ -394,14 +394,14 @@ dependencies:
394
394
  requirements:
395
395
  - - ~>
396
396
  - !ruby/object:Gem::Version
397
- version: 0.1.0.pre15
397
+ version: 0.1.0.pre17
398
398
  type: :development
399
399
  prerelease: false
400
400
  version_requirements: !ruby/object:Gem::Requirement
401
401
  requirements:
402
402
  - - ~>
403
403
  - !ruby/object:Gem::Version
404
- version: 0.1.0.pre15
404
+ version: 0.1.0.pre17
405
405
  - !ruby/object:Gem::Dependency
406
406
  name: mobylette
407
407
  requirement: !ruby/object:Gem::Requirement
@@ -465,6 +465,7 @@ executables: []
465
465
  extensions: []
466
466
  extra_rdoc_files: []
467
467
  files:
468
+ - app/assets/stylesheets/scaffold.css
468
469
  - app/controllers/carrier_types_controller.rb
469
470
  - app/controllers/content_types_controller.rb
470
471
  - app/controllers/countries_controller.rb
@@ -497,7 +498,6 @@ files:
497
498
  - app/controllers/realizes_controller.rb
498
499
  - app/controllers/resource_import_files_controller.rb
499
500
  - app/controllers/resource_import_results_controller.rb
500
- - app/controllers/series_statement_relationships_controller.rb
501
501
  - app/controllers/series_statements_controller.rb
502
502
  - app/helpers/manifestations_helper.rb
503
503
  - app/helpers/owns_helper.rb
@@ -542,7 +542,6 @@ files:
542
542
  - app/models/resource_import_file.rb
543
543
  - app/models/resource_import_result.rb
544
544
  - app/models/series_statement.rb
545
- - app/models/series_statement_relationship.rb
546
545
  - app/views/carrier_types/_form.html.erb
547
546
  - app/views/carrier_types/edit.html.erb
548
547
  - app/views/carrier_types/index.html.erb
@@ -639,6 +638,7 @@ files:
639
638
  - app/views/manifestations/_attachment_file.html.erb
640
639
  - app/views/manifestations/_book_jacket.html.erb
641
640
  - app/views/manifestations/_call_number.html.erb
641
+ - app/views/manifestations/_edit_detail.html.erb
642
642
  - app/views/manifestations/_edition_and_number.html.erb
643
643
  - app/views/manifestations/_form.html.erb
644
644
  - app/views/manifestations/_history_list.html.erb
@@ -673,6 +673,7 @@ files:
673
673
  - app/views/manifestations/_show_index.mobile.erb
674
674
  - app/views/manifestations/_show_parent.html.erb
675
675
  - app/views/manifestations/_show_periodical_master.html.erb
676
+ - app/views/manifestations/_show_series_detail.html.erb
676
677
  - app/views/manifestations/_show_series_index.html.erb
677
678
  - app/views/manifestations/_show_series_statement.html.erb
678
679
  - app/views/manifestations/_submenu_parent.html.erb
@@ -798,17 +799,10 @@ files:
798
799
  - app/views/resource_import_results/index.csv.erb
799
800
  - app/views/resource_import_results/index.html.erb
800
801
  - app/views/resource_import_results/show.html.erb
801
- - app/views/series_statement_relationships/_form.html.erb
802
- - app/views/series_statement_relationships/edit.html.erb
803
- - app/views/series_statement_relationships/index.html.erb
804
- - app/views/series_statement_relationships/new.html.erb
805
- - app/views/series_statement_relationships/show.html.erb
806
802
  - app/views/series_statements/_form.html.erb
807
803
  - app/views/series_statements/_index.html.erb
808
804
  - app/views/series_statements/_index_manifestation.html.erb
809
- - app/views/series_statements/_index_parent.html.erb
810
805
  - app/views/series_statements/_index_series_statement_merge_list.html.erb
811
- - app/views/series_statements/_manifestation_list.html.erb
812
806
  - app/views/series_statements/_merge.html.erb
813
807
  - app/views/series_statements/_refine_search_form.html.erb
814
808
  - app/views/series_statements/_tab_menu.html.erb
@@ -864,7 +858,6 @@ files:
864
858
  - db/migrate/20110620173525_add_bookstore_id_to_item.rb
865
859
  - db/migrate/20110627034940_create_series_statement_merge_lists.rb
866
860
  - db/migrate/20110627035057_create_series_statement_merges.rb
867
- - db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb
868
861
  - db/migrate/20110916091020_add_volume_number_to_manifestation.rb
869
862
  - db/migrate/20110916103953_add_manifestaiton_id_to_series_statement.rb
870
863
  - db/migrate/20110918162329_add_note_to_series_statement.rb
@@ -883,13 +876,10 @@ files:
883
876
  - db/migrate/20120413161403_add_fingerprint_to_patron_import_file.rb
884
877
  - db/migrate/20120413170705_add_error_message_to_resource_import_file.rb
885
878
  - db/migrate/20120413170720_add_error_message_to_patron_import_file.rb
886
- - db/migrate/20120415060308_rename_resource_import_file_imported_at_to_executed_at.rb
887
- - db/migrate/20120415060323_rename_patron_import_file_imported_at_to_executed_at.rb
888
879
  - db/migrate/20120415164821_add_attachment_meta_to_manifestation.rb
889
880
  - db/migrate/20120418081407_add_month_of_publication_to_manifestation.rb
890
881
  - db/migrate/20120511072422_add_patron_identifier_to_patron.rb
891
882
  - db/migrate/20120602141129_add_edit_mode_to_patron_import_file.rb
892
- - db/migrate/20120728204337_create_series_statement_relationships.rb
893
883
  - db/migrate/20121116031206_add_fulltext_content_to_manifestation.rb
894
884
  - db/migrate/20121116033446_add_doi_to_manifestation.rb
895
885
  - db/migrate/20130421093852_add_periodical_to_manifestation.rb
@@ -963,7 +953,6 @@ files:
963
953
  - spec/controllers/realizes_controller_spec.rb
964
954
  - spec/controllers/resource_import_files_controller_spec.rb
965
955
  - spec/controllers/resource_import_results_controller_spec.rb
966
- - spec/controllers/series_statement_relationships_controller_spec.rb
967
956
  - spec/controllers/series_statements_controller_spec.rb
968
957
  - spec/dummy/app/assets/javascripts/application.js
969
958
  - spec/dummy/app/assets/stylesheets/application.css
@@ -1011,6 +1000,7 @@ files:
1011
1000
  - spec/dummy/config/routes.rb
1012
1001
  - spec/dummy/config.ru
1013
1002
  - spec/dummy/db/development.sqlite3
1003
+ - spec/dummy/db/migrate/029_create_subjects.rb
1014
1004
  - spec/dummy/db/migrate/032_create_checkins.rb
1015
1005
  - spec/dummy/db/migrate/033_create_checkouts.rb
1016
1006
  - spec/dummy/db/migrate/035_create_reserves.rb
@@ -1029,8 +1019,13 @@ files:
1029
1019
  - spec/dummy/db/migrate/130_create_request_status_types.rb
1030
1020
  - spec/dummy/db/migrate/131_create_request_types.rb
1031
1021
  - spec/dummy/db/migrate/132_create_circulation_statuses.rb
1022
+ - spec/dummy/db/migrate/142_create_classifications.rb
1023
+ - spec/dummy/db/migrate/144_create_classification_types.rb
1024
+ - spec/dummy/db/migrate/145_create_subject_heading_types.rb
1025
+ - spec/dummy/db/migrate/146_create_subject_types.rb
1032
1026
  - spec/dummy/db/migrate/149_create_message_templates.rb
1033
1027
  - spec/dummy/db/migrate/154_create_messages.rb
1028
+ - spec/dummy/db/migrate/20080606052544_create_work_has_subjects.rb
1034
1029
  - spec/dummy/db/migrate/20080819181903_create_message_requests.rb
1035
1030
  - spec/dummy/db/migrate/20081023092436_create_search_engines.rb
1036
1031
  - spec/dummy/db/migrate/20081028093607_create_event_import_files.rb
@@ -1049,6 +1044,7 @@ files:
1049
1044
  - spec/dummy/db/migrate/20081216190724_create_manifestation_reserve_stats.rb
1050
1045
  - spec/dummy/db/migrate/20081220023628_create_user_reserve_stats.rb
1051
1046
  - spec/dummy/db/migrate/20081220034117_create_reserve_stat_has_users.rb
1047
+ - spec/dummy/db/migrate/20090208044541_create_subject_heading_type_has_subjects.rb
1052
1048
  - spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb
1053
1049
  - spec/dummy/db/migrate/20090519203307_create_participates.rb
1054
1050
  - spec/dummy/db/migrate/20090706125521_add_attachments_inventory_to_inventory_file.rb
@@ -1065,6 +1061,7 @@ files:
1065
1061
  - spec/dummy/db/migrate/20110621093332_remove_expire_date_from_reserve.rb
1066
1062
  - spec/dummy/db/migrate/20110627122938_add_number_of_day_to_notify_overdue_to_user_group.rb
1067
1063
  - spec/dummy/db/migrate/20110913115320_add_lft_and_rgt_to_message.rb
1064
+ - spec/dummy/db/migrate/20110913120629_add_lft_and_rgt_to_classification.rb
1068
1065
  - spec/dummy/db/migrate/20111201121844_create_roles.rb
1069
1066
  - spec/dummy/db/migrate/20111201155456_create_users.rb
1070
1067
  - spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb
@@ -1076,6 +1073,7 @@ files:
1076
1073
  - spec/dummy/db/migrate/20120105101944_add_queue_to_delayed_jobs.rb
1077
1074
  - spec/dummy/db/migrate/20120125050502_add_depth_to_message.rb
1078
1075
  - spec/dummy/db/migrate/20120129014038_create_budget_types.rb
1076
+ - spec/dummy/db/migrate/20120406020752_add_url_to_subject.rb
1079
1077
  - spec/dummy/db/migrate/20120413051535_add_event_import_fingerprint_to_event_import_file.rb
1080
1078
  - spec/dummy/db/migrate/20120413100431_add_fingerprint_to_inventory_file.rb
1081
1079
  - spec/dummy/db/migrate/20120413170734_add_error_message_to_event_import_file.rb
@@ -1086,6 +1084,8 @@ files:
1086
1084
  - spec/dummy/db/migrate/20130303124821_add_retained_at_to_reserve.rb
1087
1085
  - spec/dummy/db/migrate/20130304015019_add_postponed_at_to_reserve.rb
1088
1086
  - spec/dummy/db/migrate/20130416054135_add_circulation_status_id_to_item.rb
1087
+ - spec/dummy/db/migrate/20130504133816_add_manifestation_id_to_subject.rb
1088
+ - spec/dummy/db/migrate/20130504143515_add_manifestation_id_to_classification.rb
1089
1089
  - spec/dummy/db/schema.rb
1090
1090
  - spec/dummy/db/test.sqlite3
1091
1091
  - spec/dummy/lib/plugins/ext/event-calendar.rb
@@ -1130,7 +1130,7 @@ files:
1130
1130
  - spec/dummy/solr/conf/stopwords.txt
1131
1131
  - spec/dummy/solr/conf/synonyms.txt
1132
1132
  - spec/dummy/solr/data/test/index/segments.gen
1133
- - spec/dummy/solr/data/test/index/segments_iwe
1133
+ - spec/dummy/solr/data/test/index/segments_l8s
1134
1134
  - spec/dummy/solr/data/test/spellchecker/segments.gen
1135
1135
  - spec/dummy/solr/data/test/spellchecker/segments_1
1136
1136
  - spec/dummy/tmp/cache/4AD/470/country_all
@@ -1231,6 +1231,7 @@ files:
1231
1231
  - spec/fixtures/roles.yml
1232
1232
  - spec/fixtures/series_statements.yml
1233
1233
  - spec/fixtures/shelves.yml
1234
+ - spec/fixtures/subject_types.yml
1234
1235
  - spec/fixtures/use_restrictions.yml
1235
1236
  - spec/fixtures/user_checkout_stats.yml
1236
1237
  - spec/fixtures/user_group_has_checkout_types.yml
@@ -1270,7 +1271,6 @@ files:
1270
1271
  - spec/models/realize_type_spec.rb
1271
1272
  - spec/models/resource_import_file_spec.rb
1272
1273
  - spec/models/resource_import_result_spec.rb
1273
- - spec/models/series_statement_relationship_spec.rb
1274
1274
  - spec/models/series_statement_spec.rb
1275
1275
  - spec/requests/create_types_spec.rb
1276
1276
  - spec/requests/items_spec.rb
@@ -1278,7 +1278,6 @@ files:
1278
1278
  - spec/requests/patrons_spec.rb
1279
1279
  - spec/requests/produce_types_spec.rb
1280
1280
  - spec/requests/realize_types_spec.rb
1281
- - spec/requests/series_statement_relationships_spec.rb
1282
1281
  - spec/routing/content_types_routing_spec.rb
1283
1282
  - spec/routing/create_types_routing_spec.rb
1284
1283
  - spec/routing/creates_routing_spec.rb
@@ -1293,7 +1292,6 @@ files:
1293
1292
  - spec/routing/produce_types_routing_spec.rb
1294
1293
  - spec/routing/realize_types_routing_spec.rb
1295
1294
  - spec/routing/realizes_routing_spec.rb
1296
- - spec/routing/series_statement_relationships_routing_spec.rb
1297
1295
  - spec/spec_helper.rb
1298
1296
  - spec/support/controller_macros.rb
1299
1297
  - spec/support/devise.rb
@@ -1330,10 +1328,6 @@ files:
1330
1328
  - spec/views/realizes/index.html.erb_spec.rb
1331
1329
  - spec/views/realizes/new.html.erb_spec.rb
1332
1330
  - spec/views/realizes/show.html.erb_spec.rb
1333
- - spec/views/series_statement_relationships/edit.html.erb_spec.rb
1334
- - spec/views/series_statement_relationships/index.html.erb_spec.rb
1335
- - spec/views/series_statement_relationships/new.html.erb_spec.rb
1336
- - spec/views/series_statement_relationships/show.html.erb_spec.rb
1337
1331
  homepage: https://github.com/next-l/enju_biblio
1338
1332
  licenses: []
1339
1333
  metadata: {}
@@ -1397,7 +1391,6 @@ test_files:
1397
1391
  - spec/controllers/realizes_controller_spec.rb
1398
1392
  - spec/controllers/resource_import_files_controller_spec.rb
1399
1393
  - spec/controllers/resource_import_results_controller_spec.rb
1400
- - spec/controllers/series_statement_relationships_controller_spec.rb
1401
1394
  - spec/controllers/series_statements_controller_spec.rb
1402
1395
  - spec/dummy/app/assets/javascripts/application.js
1403
1396
  - spec/dummy/app/assets/stylesheets/application.css
@@ -1445,6 +1438,7 @@ test_files:
1445
1438
  - spec/dummy/config/routes.rb
1446
1439
  - spec/dummy/config.ru
1447
1440
  - spec/dummy/db/development.sqlite3
1441
+ - spec/dummy/db/migrate/029_create_subjects.rb
1448
1442
  - spec/dummy/db/migrate/032_create_checkins.rb
1449
1443
  - spec/dummy/db/migrate/033_create_checkouts.rb
1450
1444
  - spec/dummy/db/migrate/035_create_reserves.rb
@@ -1463,8 +1457,13 @@ test_files:
1463
1457
  - spec/dummy/db/migrate/130_create_request_status_types.rb
1464
1458
  - spec/dummy/db/migrate/131_create_request_types.rb
1465
1459
  - spec/dummy/db/migrate/132_create_circulation_statuses.rb
1460
+ - spec/dummy/db/migrate/142_create_classifications.rb
1461
+ - spec/dummy/db/migrate/144_create_classification_types.rb
1462
+ - spec/dummy/db/migrate/145_create_subject_heading_types.rb
1463
+ - spec/dummy/db/migrate/146_create_subject_types.rb
1466
1464
  - spec/dummy/db/migrate/149_create_message_templates.rb
1467
1465
  - spec/dummy/db/migrate/154_create_messages.rb
1466
+ - spec/dummy/db/migrate/20080606052544_create_work_has_subjects.rb
1468
1467
  - spec/dummy/db/migrate/20080819181903_create_message_requests.rb
1469
1468
  - spec/dummy/db/migrate/20081023092436_create_search_engines.rb
1470
1469
  - spec/dummy/db/migrate/20081028093607_create_event_import_files.rb
@@ -1483,6 +1482,7 @@ test_files:
1483
1482
  - spec/dummy/db/migrate/20081216190724_create_manifestation_reserve_stats.rb
1484
1483
  - spec/dummy/db/migrate/20081220023628_create_user_reserve_stats.rb
1485
1484
  - spec/dummy/db/migrate/20081220034117_create_reserve_stat_has_users.rb
1485
+ - spec/dummy/db/migrate/20090208044541_create_subject_heading_type_has_subjects.rb
1486
1486
  - spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb
1487
1487
  - spec/dummy/db/migrate/20090519203307_create_participates.rb
1488
1488
  - spec/dummy/db/migrate/20090706125521_add_attachments_inventory_to_inventory_file.rb
@@ -1499,6 +1499,7 @@ test_files:
1499
1499
  - spec/dummy/db/migrate/20110621093332_remove_expire_date_from_reserve.rb
1500
1500
  - spec/dummy/db/migrate/20110627122938_add_number_of_day_to_notify_overdue_to_user_group.rb
1501
1501
  - spec/dummy/db/migrate/20110913115320_add_lft_and_rgt_to_message.rb
1502
+ - spec/dummy/db/migrate/20110913120629_add_lft_and_rgt_to_classification.rb
1502
1503
  - spec/dummy/db/migrate/20111201121844_create_roles.rb
1503
1504
  - spec/dummy/db/migrate/20111201155456_create_users.rb
1504
1505
  - spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb
@@ -1510,6 +1511,7 @@ test_files:
1510
1511
  - spec/dummy/db/migrate/20120105101944_add_queue_to_delayed_jobs.rb
1511
1512
  - spec/dummy/db/migrate/20120125050502_add_depth_to_message.rb
1512
1513
  - spec/dummy/db/migrate/20120129014038_create_budget_types.rb
1514
+ - spec/dummy/db/migrate/20120406020752_add_url_to_subject.rb
1513
1515
  - spec/dummy/db/migrate/20120413051535_add_event_import_fingerprint_to_event_import_file.rb
1514
1516
  - spec/dummy/db/migrate/20120413100431_add_fingerprint_to_inventory_file.rb
1515
1517
  - spec/dummy/db/migrate/20120413170734_add_error_message_to_event_import_file.rb
@@ -1520,6 +1522,8 @@ test_files:
1520
1522
  - spec/dummy/db/migrate/20130303124821_add_retained_at_to_reserve.rb
1521
1523
  - spec/dummy/db/migrate/20130304015019_add_postponed_at_to_reserve.rb
1522
1524
  - spec/dummy/db/migrate/20130416054135_add_circulation_status_id_to_item.rb
1525
+ - spec/dummy/db/migrate/20130504133816_add_manifestation_id_to_subject.rb
1526
+ - spec/dummy/db/migrate/20130504143515_add_manifestation_id_to_classification.rb
1523
1527
  - spec/dummy/db/schema.rb
1524
1528
  - spec/dummy/db/test.sqlite3
1525
1529
  - spec/dummy/lib/plugins/ext/event-calendar.rb
@@ -1564,7 +1568,7 @@ test_files:
1564
1568
  - spec/dummy/solr/conf/stopwords.txt
1565
1569
  - spec/dummy/solr/conf/synonyms.txt
1566
1570
  - spec/dummy/solr/data/test/index/segments.gen
1567
- - spec/dummy/solr/data/test/index/segments_iwe
1571
+ - spec/dummy/solr/data/test/index/segments_l8s
1568
1572
  - spec/dummy/solr/data/test/spellchecker/segments.gen
1569
1573
  - spec/dummy/solr/data/test/spellchecker/segments_1
1570
1574
  - spec/dummy/tmp/cache/4AD/470/country_all
@@ -1665,6 +1669,7 @@ test_files:
1665
1669
  - spec/fixtures/roles.yml
1666
1670
  - spec/fixtures/series_statements.yml
1667
1671
  - spec/fixtures/shelves.yml
1672
+ - spec/fixtures/subject_types.yml
1668
1673
  - spec/fixtures/use_restrictions.yml
1669
1674
  - spec/fixtures/user_checkout_stats.yml
1670
1675
  - spec/fixtures/user_group_has_checkout_types.yml
@@ -1704,7 +1709,6 @@ test_files:
1704
1709
  - spec/models/realize_type_spec.rb
1705
1710
  - spec/models/resource_import_file_spec.rb
1706
1711
  - spec/models/resource_import_result_spec.rb
1707
- - spec/models/series_statement_relationship_spec.rb
1708
1712
  - spec/models/series_statement_spec.rb
1709
1713
  - spec/requests/create_types_spec.rb
1710
1714
  - spec/requests/items_spec.rb
@@ -1712,7 +1716,6 @@ test_files:
1712
1716
  - spec/requests/patrons_spec.rb
1713
1717
  - spec/requests/produce_types_spec.rb
1714
1718
  - spec/requests/realize_types_spec.rb
1715
- - spec/requests/series_statement_relationships_spec.rb
1716
1719
  - spec/routing/content_types_routing_spec.rb
1717
1720
  - spec/routing/create_types_routing_spec.rb
1718
1721
  - spec/routing/creates_routing_spec.rb
@@ -1727,7 +1730,6 @@ test_files:
1727
1730
  - spec/routing/produce_types_routing_spec.rb
1728
1731
  - spec/routing/realize_types_routing_spec.rb
1729
1732
  - spec/routing/realizes_routing_spec.rb
1730
- - spec/routing/series_statement_relationships_routing_spec.rb
1731
1733
  - spec/spec_helper.rb
1732
1734
  - spec/support/controller_macros.rb
1733
1735
  - spec/support/devise.rb
@@ -1764,7 +1766,3 @@ test_files:
1764
1766
  - spec/views/realizes/index.html.erb_spec.rb
1765
1767
  - spec/views/realizes/new.html.erb_spec.rb
1766
1768
  - spec/views/realizes/show.html.erb_spec.rb
1767
- - spec/views/series_statement_relationships/edit.html.erb_spec.rb
1768
- - spec/views/series_statement_relationships/index.html.erb_spec.rb
1769
- - spec/views/series_statement_relationships/new.html.erb_spec.rb
1770
- - spec/views/series_statement_relationships/show.html.erb_spec.rb
@@ -1,20 +0,0 @@
1
- class SeriesStatementRelationshipsController < InheritedResources::Base
2
- respond_to :html, :json
3
- has_scope :page, :default => 1
4
- load_and_authorize_resource
5
-
6
- def new
7
- @series_statement_relationship = SeriesStatementRelationship.new(params[:series_statement_relationship])
8
- @series_statement_relationship.parent = SeriesStatement.find(params[:parent_id]) rescue nil
9
- @series_statement_relationship.child = SeriesStatement.find(params[:child_id]) rescue nil
10
- end
11
-
12
- def update
13
- @series_statement_relationship = SeriesStatementRelationship.find(params[:id])
14
- if params[:move]
15
- move_position(@series_statement_relationship, params[:move])
16
- return
17
- end
18
- update!
19
- end
20
- end
@@ -1,30 +0,0 @@
1
- class SeriesStatementRelationship < ActiveRecord::Base
2
- attr_accessible :child_id, :parent_id
3
- belongs_to :parent, :foreign_key => 'parent_id', :class_name => 'SeriesStatement'
4
- belongs_to :child, :foreign_key => 'child_id', :class_name => 'SeriesStatement'
5
- after_save :reindex
6
- after_destroy :reindex
7
-
8
- validates_presence_of :parent_id, :child_id
9
- validates_uniqueness_of :child_id, :scope => :parent_id
10
- acts_as_list :scope => :parent_id
11
-
12
- def reindex
13
- parent.try(:index)
14
- child.try(:index)
15
- Sunspot.commit
16
- end
17
- end
18
-
19
- # == Schema Information
20
- #
21
- # Table name: series_statement_relationships
22
- #
23
- # id :integer not null, primary key
24
- # parent_id :integer
25
- # child_id :integer
26
- # position :integer
27
- # created_at :datetime not null
28
- # updated_at :datetime not null
29
- #
30
-
@@ -1,27 +0,0 @@
1
- <%= form_for(@series_statement_relationship) do |f| %>
2
- <%= f.error_messages -%>
3
-
4
- <div class="field">
5
- <% if @series_statement_relationship.try(:parent) %>
6
- <%= f.label :parent_id %><br />
7
- <%= link_to @series_statement_relationship.parent.original_title, @series_statement_relationship.parent %>
8
- <%= f.hidden_field :parent_id %>
9
- <% else %>
10
- <%= f.label :parent_id %><br />
11
- <%= f.text_field :parent_id %>
12
- <% end %>
13
- </div>
14
- <div class="field">
15
- <% if @series_statement_relationship.child.try(:original_title) %>
16
- <%= f.label :child_id %><br />
17
- <%= link_to @series_statement_relationship.child.original_title, @series_statement_relationship.child %>
18
- <%= f.hidden_field :child_id %>
19
- <% else %>
20
- <%= f.label :child_id %><br />
21
- <%= f.text_field :child_id %>
22
- <% end %>
23
- </div>
24
- <div class="actions">
25
- <%= f.submit %>
26
- </div>
27
- <% end %>
@@ -1,15 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.editing', :model => t('activerecord.models.series_statement_relationship')) -%></h1>
3
- <div id="content_list">
4
-
5
- <%= render 'form' %>
6
-
7
- </div>
8
- </div>
9
-
10
- <div id="submenu" class="ui-corner-all">
11
- <ul>
12
- <li><%= link_to t('page.show'), @series_statement_relationship %></li>
13
- <li><%= link_to t('page.back'), series_statement_relationships_path %></li>
14
- </ul>
15
- </div>
@@ -1,34 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.listing', :model => t('activerecord.models.series_statement_relationship')) -%></h1>
3
- <div id="content_list">
4
-
5
- <table class="table table-striped index">
6
- <tr>
7
- <th><%= t('activerecord.attributes.series_statement_relationship.parent_id') %></th>
8
- <th><%= t('activerecord.attributes.series_statement_relationship.child_id') %></th>
9
- <th></th>
10
- <th></th>
11
- <th></th>
12
- </tr>
13
-
14
- <% @series_statement_relationships.each do |series_statement_relationship| %>
15
- <tr>
16
- <td><%= link_to series_statement_relationship.parent.original_title, series_statement_relationship.parent %></td>
17
- <td><%= link_to series_statement_relationship.child.original_title, series_statement_relationship.child %></td>
18
- <td><%= link_to t('page.show'), series_statement_relationship %></td>
19
- <td><%= link_to t('page.edit'), edit_series_statement_relationship_path(series_statement_relationship) %></td>
20
- <td><%= link_to t('page.destroy'), series_statement_relationship, method: :delete, data: { confirm: t('page.are_you_sure') } %></td>
21
- </tr>
22
- <% end %>
23
- </table>
24
-
25
- <%= paginate(@series_statement_relationships) %>
26
-
27
- </div>
28
- </div>
29
-
30
- <div id="submenu" class="ui-corner-all">
31
- <ul>
32
- <li><%= link_to t('page.new', :model => t('activerecord.models.series_statement_relationship')), new_series_statement_relationship_path -%></li>
33
- </ul>
34
- </div>
@@ -1,14 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.new', :model => t('activerecord.models.series_statement_relationship')) -%></h1>
3
- <div id="content_list">
4
-
5
- <%= render 'form' %>
6
-
7
- </div>
8
- </div>
9
-
10
- <div id="submenu" class="ui-corner-all">
11
- <ul>
12
- <li><%= link_to t('page.back'), series_statement_relationships_path %></li>
13
- </ul>
14
- </div>
@@ -1,24 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.showing', :model => t('activerecord.models.series_statement_relationship')) -%></h1>
3
- <div id="content_list">
4
- <p id="notice"><%= notice %></p>
5
-
6
- <p>
7
- <b><%= t('activerecord.attributes.series_statement_relationship.parent_id') %></b>
8
- <%= link_to @series_statement_relationship.parent.original_title, @series_statement_relationship.parent %>
9
- </p>
10
-
11
- <p>
12
- <b><%= t('activerecord.attributes.series_statement_relationship.child_id') %></b>
13
- <%= link_to @series_statement_relationship.child.original_title, @series_statement_relationship.child %>
14
- </p>
15
-
16
- </div>
17
- </div>
18
-
19
- <div id="submenu" class="ui-corner-all">
20
- <ul>
21
- <li><%= link_to t('page.edit'), edit_series_statement_relationship_path(@series_statement_relationship) %></li>
22
- <li><%= link_to t('page.back'), series_statement_relationships_path %></li>
23
- </ul>
24
- </div>
@@ -1,53 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.listing', :model => t('activerecord.models.series_statement')) -%></h1>
3
- <div id="content_list">
4
-
5
- <div class="search_form">
6
- <h2>[S] <%= link_to @parent.original_title, @parent %></h2>
7
- <%= form_for :series_statements, :url => series_statements_path, :html => {:method => 'get'} do -%>
8
- <p>
9
- <%= label_tag :search_form_top, t('page.search_term') -%>: <%= search_field_tag 'query', h(@query), {:id => 'search_form_top', :class => 'search_form', :placeholder => t('page.search_term')} -%>
10
- <%- if can? :update, @parent -%>
11
- <%= render 'page/add' %>
12
- <%- end -%>
13
- <%= hidden_field_tag :parent_id, @parent.id %>
14
- <%= submit_tag t('page.search') -%>
15
- <%= link_to t('page.back_to_index'), series_statements_path -%>
16
- </p>
17
- <%- end -%>
18
- </div>
19
-
20
- <table class="table table-striped index">
21
- <tr>
22
- <th><%= t('activerecord.attributes.series_statement.original_title') -%></th>
23
- <th><%= t('activerecord.attributes.series_statement.series_statement_identifier') -%></th>
24
- <th id="edit_icons"></th>
25
- </tr>
26
-
27
- <%- @series_statements.each do |series_statement| -%>
28
- <tr class="line<%= cycle("0", "1") -%>">
29
- <td><%= link_to series_statement.original_title, series_statement -%></td>
30
- <td><%= series_statement.series_statement_identifier -%></td>
31
- <td>
32
- <%- if can? :update, series_statement -%>
33
- <%- if params[:mode] == 'add' -%>
34
- <%= link_to t('page.add'), new_series_statement_relationship_path(:parent_id => @parent.id, :child_id => series_statement.id) unless series_statement.parents.where(:id => @parent.id).first or series_statement == @parent -%>
35
- <%- else -%>
36
- <% relationship = SeriesStatementRelationship.where(:parent_id => @parent.id, :child_id => series_statement.id).first %>
37
- <%= link_to t('page.destroy'), series_statement_relationship_path(relationship), :data => {:confirm => t('page.are_you_sure')}, :method => :delete if series_statement.parents.where(:id => @parent.id).first -%>
38
- <%- end -%>
39
- <%- end -%>
40
- </td>
41
- </tr>
42
- <%- end -%>
43
- </table>
44
-
45
- <%= paginate(@series_statements) -%>
46
- </div>
47
- </div>
48
-
49
- <div id="submenu" class="ui-corner-all">
50
- <ul>
51
- <li><%= link_to t('page.listing', :model => t('activerecord.models.series_statement_merge_list')), @series_statement_merge_list -%></li>
52
- </ul>
53
- </div>
@@ -1,17 +0,0 @@
1
- <div id="manifestation">
2
- <%= paginate(@manifestations, :param_name => :manifestation_page, :remote => true) -%>
3
- <table class="table table-striped index">
4
- <%- @manifestations.each do |manifestation| -%>
5
- <% next if manifestation.series_master? %>
6
- <tr class="line<%= cycle("0", "1") -%>">
7
- <td>
8
- <%= render 'manifestations/show_index', :manifestation => manifestation %>
9
- <% if manifestation.items.exists? %>
10
- <%= render 'manifestations/show_holding', :manifestation => manifestation %>
11
- <% end %>
12
- </td>
13
- </tr>
14
- <%- end -%>
15
- </table>
16
- <%= paginate(@manifestations, :param_name => :manifestation_page, :remote => true) -%>
17
- </div>
@@ -1,13 +0,0 @@
1
- class RenameManifestationNumberListToNumberString < ActiveRecord::Migration
2
- def self.up
3
- rename_column :manifestations, :volume_number_list, :volume_number_string
4
- rename_column :manifestations, :issue_number_list, :issue_number_string
5
- rename_column :manifestations, :serial_number_list, :serial_number_string
6
- end
7
-
8
- def self.down
9
- rename_column :manifestations, :serial_number_string, :serial_number_list
10
- rename_column :manifestations, :issue_number_string, :issue_number_list
11
- rename_column :manifestations, :volume_number_string, :volume_number_list
12
- end
13
- end
@@ -1,9 +0,0 @@
1
- class RenameResourceImportFileImportedAtToExecutedAt < ActiveRecord::Migration
2
- def up
3
- rename_column :resource_import_files, :imported_at, :executed_at
4
- end
5
-
6
- def down
7
- rename_column :resource_import_files, :executed_at, :imported_at
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- class RenamePatronImportFileImportedAtToExecutedAt < ActiveRecord::Migration
2
- def up
3
- rename_column :patron_import_files, :imported_at, :executed_at
4
- end
5
-
6
- def down
7
- rename_column :patron_import_files, :executed_at, :imported_at
8
- end
9
- end
@@ -1,11 +0,0 @@
1
- class CreateSeriesStatementRelationships < ActiveRecord::Migration
2
- def change
3
- create_table :series_statement_relationships do |t|
4
- t.integer :parent_id
5
- t.integer :child_id
6
- t.integer :position
7
-
8
- t.timestamps
9
- end
10
- end
11
- end