enju_biblio 0.1.0.pre33 → 0.1.0.pre34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/controllers/manifestations_controller.rb +6 -27
- data/app/controllers/series_has_manifestations_controller.rb +2 -2
- data/app/controllers/series_statements_controller.rb +1 -17
- data/app/models/enju_biblio/ability.rb +2 -2
- data/app/models/item.rb +2 -3
- data/app/models/manifestation.rb +109 -163
- data/app/models/page_sweeper.rb +1 -3
- data/app/models/resource_import_file.rb +26 -62
- data/app/models/series_statement.rb +35 -76
- data/app/views/manifestations/_form.html.erb +9 -24
- data/app/views/manifestations/_manifestation.html.erb +5 -5
- data/app/views/manifestations/_show_detail_librarian.html.erb +6 -2
- data/app/views/manifestations/_show_detail_user.html.erb +6 -2
- data/app/views/manifestations/_show_index.html.erb +3 -8
- data/app/views/manifestations/_show_periodical_master.html.erb +6 -23
- data/app/views/manifestations/_show_series_index.html.erb +1 -9
- data/app/views/manifestations/show.html.erb +1 -1
- data/app/views/series_statements/_form.html.erb +0 -8
- data/app/views/series_statements/_index.html.erb +3 -17
- data/app/views/series_statements/_index_manifestation.html.erb +0 -15
- data/app/views/series_statements/_index_parent.html.erb +0 -2
- data/app/views/series_statements/_index_series_statement_merge_list.html.erb +0 -2
- data/app/views/series_statements/_manifestation_list.html.erb +1 -1
- data/app/views/series_statements/show.html.erb +0 -9
- data/config/locales/translation_en.yml +1 -0
- data/config/locales/translation_ja.yml +1 -0
- data/db/migrate/20130421093852_add_periodical_to_manifestation.rb +5 -0
- data/db/migrate/20130421155019_add_creator_string_to_series_statement.rb +7 -0
- data/db/migrate/20130421164124_add_series_master_to_series_statement.rb +5 -0
- data/lib/enju_biblio/version.rb +1 -1
- data/spec/cassette_library/ImportRequest/import/should_import_bibliographic_record.yml +49 -47
- data/spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Administrator/with_isbn_which_is_already_imported/redirects_to_the_created_import_request.yml +624 -0
- data/spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Administrator/with_valid_params/assigns_a_newly_created_import_request_as_import_request.yml +624 -0
- data/spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Administrator/with_valid_params/redirects_to_the_created_import_request.yml +624 -0
- data/spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Librarian/with_valid_params/assigns_a_newly_created_import_request_as_import_request.yml +624 -0
- data/spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Librarian/with_valid_params/redirects_to_the_created_import_request.yml +624 -0
- data/spec/controllers/import_requests_controller_spec.rb +29 -31
- data/spec/controllers/manifestations_controller_spec.rb +5 -37
- data/spec/dummy/app/models/ability.rb +2 -2
- data/spec/dummy/config/application.rb +0 -1
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/schema.rb +10 -7
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/private/system/resource_import_files/resource_imports/000/000/004/original/resource_import_file_sample1.tsv +1 -1
- data/spec/dummy/private/system/resource_import_files/resource_imports/000/000/004/original/resource_import_file_sample2.tsv +1 -1
- data/spec/dummy/solr/data/test/index/segments.gen +0 -0
- data/spec/dummy/solr/data/test/index/segments_gs2 +0 -0
- data/spec/dummy/tmp/cache/4AD/470/country_all +0 -0
- data/spec/fixtures/items.yml +2 -3
- data/spec/fixtures/manifestations.yml +72 -72
- data/spec/fixtures/series_statements.yml +21 -23
- data/spec/models/item_spec.rb +26 -28
- data/spec/models/manifestation_spec.rb +80 -76
- data/spec/models/resource_import_file_spec.rb +33 -9
- data/spec/models/series_statement_spec.rb +22 -34
- metadata +22 -25
- data/app/views/series_statements/_periodical_facet.html.erb +0 -15
- data/db/migrate/20110425133109_add_issn_to_series_statement.rb +0 -9
- data/db/migrate/20110618091240_add_periodical_to_series_statement.rb +0 -9
- data/db/migrate/20110918161853_rename_series_statement_manifestation_id_to_root_manifestation_id.rb +0 -13
- data/spec/dummy/solr/data/test/index/segments_6n6 +0 -0
@@ -75,7 +75,7 @@ describe Manifestation, :solr => true do
|
|
75
75
|
openurl = Openurl.new({:api => "openurl", :issn => "0913"})
|
76
76
|
results = openurl.search
|
77
77
|
openurl.query_text.should eq "issn_sm:0913*"
|
78
|
-
results.size.should eq
|
78
|
+
results.size.should eq 1
|
79
79
|
end
|
80
80
|
|
81
81
|
it "should search any in openurl" do
|
@@ -90,7 +90,7 @@ describe Manifestation, :solr => true do
|
|
90
90
|
results.size.should eq 3
|
91
91
|
openurl = Openurl.new({:jtitle => "テスト", :pub => "テスト"})
|
92
92
|
results = openurl.search
|
93
|
-
results.size.should eq
|
93
|
+
results.size.should eq 2
|
94
94
|
end
|
95
95
|
|
96
96
|
it "shoulld get search_error in openurl" do
|
@@ -214,15 +214,14 @@ describe Manifestation, :solr => true do
|
|
214
214
|
manifestations(:manifestation_00202).periodical?.should be_true
|
215
215
|
end
|
216
216
|
|
217
|
-
it "should set series_statement if the manifestation is periodical" do
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
end
|
217
|
+
#it "should set series_statement if the manifestation is periodical" do
|
218
|
+
# manifestation = series_statements(:two).manifestations.new
|
219
|
+
# manifestation.set_series_statements([series_statements(:two)])
|
220
|
+
# #manifestation.original_title.should eq 'テスト雑誌2月号'
|
221
|
+
# #manifestation.serial_number.should eq 3
|
222
|
+
# #manifestation.issue_number.should eq 3
|
223
|
+
# #manifestation.volume_number.should eq 1
|
224
|
+
#end
|
226
225
|
|
227
226
|
if defined?(EnjuCirculation)
|
228
227
|
it "should respond to is_checked_out_by?" do
|
@@ -236,70 +235,75 @@ end
|
|
236
235
|
#
|
237
236
|
# Table name: manifestations
|
238
237
|
#
|
239
|
-
# id
|
240
|
-
# original_title
|
241
|
-
# title_alternative
|
242
|
-
# title_transcription
|
243
|
-
# classification_number
|
244
|
-
# manifestation_identifier
|
245
|
-
# date_of_publication
|
246
|
-
# date_copyrighted
|
247
|
-
# created_at
|
248
|
-
# updated_at
|
249
|
-
# deleted_at
|
250
|
-
# access_address
|
251
|
-
# language_id
|
252
|
-
# carrier_type_id
|
253
|
-
# extent_id
|
254
|
-
# start_page
|
255
|
-
# end_page
|
256
|
-
# height
|
257
|
-
# width
|
258
|
-
# depth
|
259
|
-
# isbn
|
260
|
-
# isbn10
|
261
|
-
# wrong_isbn
|
262
|
-
# nbn
|
263
|
-
# lccn
|
264
|
-
# oclc_number
|
265
|
-
# issn
|
266
|
-
# price
|
267
|
-
# fulltext
|
268
|
-
# volume_number_string
|
269
|
-
# issue_number_string
|
270
|
-
# serial_number_string
|
271
|
-
# edition
|
272
|
-
# note
|
273
|
-
# repository_content
|
274
|
-
# lock_version
|
275
|
-
# required_role_id
|
276
|
-
# state
|
277
|
-
# required_score
|
278
|
-
# frequency_id
|
279
|
-
# subscription_master
|
280
|
-
# attachment_file_name
|
281
|
-
# attachment_content_type
|
282
|
-
# attachment_file_size
|
283
|
-
# attachment_updated_at
|
284
|
-
# title_alternative_transcription
|
285
|
-
# description
|
286
|
-
# abstract
|
287
|
-
# available_at
|
288
|
-
# valid_until
|
289
|
-
# date_submitted
|
290
|
-
# date_accepted
|
291
|
-
# date_caputured
|
292
|
-
# pub_date
|
293
|
-
# edition_string
|
294
|
-
# volume_number
|
295
|
-
# issue_number
|
296
|
-
# serial_number
|
297
|
-
# ndc
|
298
|
-
# content_type_id
|
299
|
-
# year_of_publication
|
300
|
-
# attachment_meta
|
301
|
-
# month_of_publication
|
302
|
-
# fulltext_content
|
303
|
-
# doi
|
238
|
+
# id :integer not null, primary key
|
239
|
+
# original_title :text not null
|
240
|
+
# title_alternative :text
|
241
|
+
# title_transcription :text
|
242
|
+
# classification_number :string(255)
|
243
|
+
# manifestation_identifier :string(255)
|
244
|
+
# date_of_publication :datetime
|
245
|
+
# date_copyrighted :datetime
|
246
|
+
# created_at :datetime not null
|
247
|
+
# updated_at :datetime not null
|
248
|
+
# deleted_at :datetime
|
249
|
+
# access_address :string(255)
|
250
|
+
# language_id :integer default(1), not null
|
251
|
+
# carrier_type_id :integer default(1), not null
|
252
|
+
# extent_id :integer default(1), not null
|
253
|
+
# start_page :integer
|
254
|
+
# end_page :integer
|
255
|
+
# height :integer
|
256
|
+
# width :integer
|
257
|
+
# depth :integer
|
258
|
+
# isbn :string(255)
|
259
|
+
# isbn10 :string(255)
|
260
|
+
# wrong_isbn :string(255)
|
261
|
+
# nbn :string(255)
|
262
|
+
# lccn :string(255)
|
263
|
+
# oclc_number :string(255)
|
264
|
+
# issn :string(255)
|
265
|
+
# price :integer
|
266
|
+
# fulltext :text
|
267
|
+
# volume_number_string :string(255)
|
268
|
+
# issue_number_string :string(255)
|
269
|
+
# serial_number_string :string(255)
|
270
|
+
# edition :integer
|
271
|
+
# note :text
|
272
|
+
# repository_content :boolean default(FALSE), not null
|
273
|
+
# lock_version :integer default(0), not null
|
274
|
+
# required_role_id :integer default(1), not null
|
275
|
+
# state :string(255)
|
276
|
+
# required_score :integer default(0), not null
|
277
|
+
# frequency_id :integer default(1), not null
|
278
|
+
# subscription_master :boolean default(FALSE), not null
|
279
|
+
# attachment_file_name :string(255)
|
280
|
+
# attachment_content_type :string(255)
|
281
|
+
# attachment_file_size :integer
|
282
|
+
# attachment_updated_at :datetime
|
283
|
+
# title_alternative_transcription :text
|
284
|
+
# description :text
|
285
|
+
# abstract :text
|
286
|
+
# available_at :datetime
|
287
|
+
# valid_until :datetime
|
288
|
+
# date_submitted :datetime
|
289
|
+
# date_accepted :datetime
|
290
|
+
# date_caputured :datetime
|
291
|
+
# pub_date :string(255)
|
292
|
+
# edition_string :string(255)
|
293
|
+
# volume_number :integer
|
294
|
+
# issue_number :integer
|
295
|
+
# serial_number :integer
|
296
|
+
# ndc :string(255)
|
297
|
+
# content_type_id :integer default(1)
|
298
|
+
# year_of_publication :integer
|
299
|
+
# attachment_meta :text
|
300
|
+
# month_of_publication :integer
|
301
|
+
# fulltext_content :boolean
|
302
|
+
# doi :string(255)
|
303
|
+
# periodical :boolean
|
304
|
+
# series_original_title :text
|
305
|
+
# series_title_transcription :text
|
306
|
+
# series_title_creator_string :text
|
307
|
+
# series_title_volume_number_string :text
|
304
308
|
#
|
305
309
|
|
@@ -16,7 +16,7 @@ describe ResourceImportFile do
|
|
16
16
|
old_items_count = Item.count
|
17
17
|
old_patrons_count = Patron.count
|
18
18
|
old_import_results_count = ResourceImportResult.count
|
19
|
-
@file.import_start.should eq({:manifestation_imported =>
|
19
|
+
@file.import_start.should eq({:manifestation_imported => 11, :item_imported => 6, :manifestation_found => 1, :item_found => 3, :failed => 7})
|
20
20
|
manifestation = Item.where(:item_identifier => '11111').first.manifestation
|
21
21
|
manifestation.publishers.first.full_name.should eq 'test4'
|
22
22
|
manifestation.publishers.first.full_name_transcription.should eq 'てすと4'
|
@@ -29,10 +29,11 @@ describe ResourceImportFile do
|
|
29
29
|
ResourceImportResult.count.should eq old_import_results_count + 17
|
30
30
|
|
31
31
|
manifestation_101 = Manifestation.where(:manifestation_identifier => '101').first
|
32
|
-
manifestation_101.
|
33
|
-
manifestation_101.
|
34
|
-
manifestation_101.
|
35
|
-
manifestation_101.
|
32
|
+
manifestation_101.series_statements.count.should eq 1
|
33
|
+
manifestation_101.series_statements.first.original_title.should eq '主シリーズ'
|
34
|
+
manifestation_101.series_statements.first.title_transcription.should eq 'しゅしりーず'
|
35
|
+
manifestation_101.series_statements.first.title_subseries.should eq '副シリーズ 1'
|
36
|
+
manifestation_101.series_statements.first.title_subseries_transcription.should eq 'ふくしりーず いち'
|
36
37
|
|
37
38
|
item_10101 = Item.where(:item_identifier => '10101').first
|
38
39
|
item_10101.manifestation.creators.size.should eq 2
|
@@ -81,7 +82,7 @@ describe ResourceImportFile do
|
|
81
82
|
old_items_count = Item.count
|
82
83
|
old_patrons_count = Patron.count
|
83
84
|
old_import_results_count = ResourceImportResult.count
|
84
|
-
@file.import_start.should eq({:manifestation_imported =>
|
85
|
+
@file.import_start.should eq({:manifestation_imported => 11, :item_imported => 6, :manifestation_found => 1, :item_found => 3, :failed => 7})
|
85
86
|
manifestation = Item.where(:item_identifier => '11111').first.manifestation
|
86
87
|
manifestation.publishers.first.full_name.should eq 'test4'
|
87
88
|
manifestation.publishers.first.full_name_transcription.should eq 'てすと4'
|
@@ -135,8 +136,8 @@ describe ResourceImportFile do
|
|
135
136
|
manifestation = Manifestation.find(10)
|
136
137
|
file = ResourceImportFile.create :resource_import => File.new("#{Rails.root.to_s}/../../examples/update_series_statement.tsv"), :edit_mode => 'update'
|
137
138
|
file.modify
|
138
|
-
manifestation.reload
|
139
|
-
manifestation.
|
139
|
+
#manifestation.reload
|
140
|
+
#manifestation.series_statements.should eq [SeriesStatement.find(2)]
|
140
141
|
end
|
141
142
|
end
|
142
143
|
|
@@ -173,4 +174,27 @@ end
|
|
173
174
|
# resource_import_fingerprint :string(255)
|
174
175
|
# error_message :text
|
175
176
|
#
|
176
|
-
|
177
|
+
|
178
|
+
# == Schema Information
|
179
|
+
#
|
180
|
+
# Table name: resource_import_files
|
181
|
+
#
|
182
|
+
# id :integer not null, primary key
|
183
|
+
# parent_id :integer
|
184
|
+
# content_type :string(255)
|
185
|
+
# size :integer
|
186
|
+
# user_id :integer
|
187
|
+
# note :text
|
188
|
+
# executed_at :datetime
|
189
|
+
# state :string(255)
|
190
|
+
# resource_import_file_name :string(255)
|
191
|
+
# resource_import_content_type :string(255)
|
192
|
+
# resource_import_file_size :integer
|
193
|
+
# resource_import_updated_at :datetime
|
194
|
+
# created_at :datetime not null
|
195
|
+
# updated_at :datetime not null
|
196
|
+
# edit_mode :string(255)
|
197
|
+
# resource_import_fingerprint :string(255)
|
198
|
+
# error_message :text
|
199
|
+
#
|
200
|
+
|
@@ -1,27 +1,13 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
1
|
require 'spec_helper'
|
3
2
|
|
4
3
|
describe SeriesStatement do
|
5
4
|
fixtures :all
|
6
5
|
|
7
|
-
it "should create
|
8
|
-
series_statement = FactoryGirl.create(:series_statement
|
9
|
-
series_statement.
|
10
|
-
series_statement.manifestations.size.should eq 1
|
6
|
+
it "should create manifestation" do
|
7
|
+
series_statement = FactoryGirl.create(:series_statement)
|
8
|
+
series_statement.manifestation.should be_true
|
11
9
|
series_statement.reload
|
12
|
-
series_statement.
|
13
|
-
end
|
14
|
-
|
15
|
-
it "should destroy root_manifestation" do
|
16
|
-
series_statement = FactoryGirl.create(:series_statement, :periodical => true)
|
17
|
-
series_statement.root_manifestation = Manifestation.first
|
18
|
-
series_statement.save
|
19
|
-
series_statement.reload
|
20
|
-
series_statement.root_manifestation.should be_true
|
21
|
-
series_statement.periodical = false
|
22
|
-
series_statement.save
|
23
|
-
series_statement.reload
|
24
|
-
series_statement.root_manifestation.should be_nil
|
10
|
+
series_statement.manifestation.series_statements.count.should eq 1
|
25
11
|
end
|
26
12
|
end
|
27
13
|
|
@@ -29,21 +15,23 @@ end
|
|
29
15
|
#
|
30
16
|
# Table name: series_statements
|
31
17
|
#
|
32
|
-
# id
|
33
|
-
# original_title
|
34
|
-
# numbering
|
35
|
-
# title_subseries
|
36
|
-
# numbering_subseries
|
37
|
-
# position
|
38
|
-
# created_at
|
39
|
-
# updated_at
|
40
|
-
# title_transcription
|
41
|
-
# title_alternative
|
42
|
-
# series_statement_identifier
|
43
|
-
#
|
44
|
-
#
|
45
|
-
#
|
46
|
-
#
|
47
|
-
#
|
18
|
+
# id :integer not null, primary key
|
19
|
+
# original_title :text
|
20
|
+
# numbering :text
|
21
|
+
# title_subseries :text
|
22
|
+
# numbering_subseries :text
|
23
|
+
# position :integer
|
24
|
+
# created_at :datetime not null
|
25
|
+
# updated_at :datetime not null
|
26
|
+
# title_transcription :text
|
27
|
+
# title_alternative :text
|
28
|
+
# series_statement_identifier :string(255)
|
29
|
+
# manifestation_id :integer
|
30
|
+
# note :text
|
31
|
+
# title_subseries_transcription :text
|
32
|
+
# creator_string :text
|
33
|
+
# volume_number_string :text
|
34
|
+
# volume_number_transcription_string :text
|
35
|
+
# series_master :boolean
|
48
36
|
#
|
49
37
|
|
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.
|
4
|
+
version: 0.1.0.pre34
|
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-04-
|
11
|
+
date: 2013-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: enju_core
|
@@ -380,28 +380,14 @@ dependencies:
|
|
380
380
|
requirements:
|
381
381
|
- - ~>
|
382
382
|
- !ruby/object:Gem::Version
|
383
|
-
version: 0.1.0.
|
383
|
+
version: 0.1.0.pre23
|
384
384
|
type: :development
|
385
385
|
prerelease: false
|
386
386
|
version_requirements: !ruby/object:Gem::Requirement
|
387
387
|
requirements:
|
388
388
|
- - ~>
|
389
389
|
- !ruby/object:Gem::Version
|
390
|
-
version: 0.1.0.
|
391
|
-
- !ruby/object:Gem::Dependency
|
392
|
-
name: enju_oai
|
393
|
-
requirement: !ruby/object:Gem::Requirement
|
394
|
-
requirements:
|
395
|
-
- - ~>
|
396
|
-
- !ruby/object:Gem::Version
|
397
|
-
version: 0.1.0.pre9
|
398
|
-
type: :development
|
399
|
-
prerelease: false
|
400
|
-
version_requirements: !ruby/object:Gem::Requirement
|
401
|
-
requirements:
|
402
|
-
- - ~>
|
403
|
-
- !ruby/object:Gem::Version
|
404
|
-
version: 0.1.0.pre9
|
390
|
+
version: 0.1.0.pre23
|
405
391
|
- !ruby/object:Gem::Dependency
|
406
392
|
name: enju_ndl
|
407
393
|
requirement: !ruby/object:Gem::Requirement
|
@@ -830,7 +816,6 @@ files:
|
|
830
816
|
- app/views/series_statements/_index_series_statement_merge_list.html.erb
|
831
817
|
- app/views/series_statements/_manifestation_list.html.erb
|
832
818
|
- app/views/series_statements/_merge.html.erb
|
833
|
-
- app/views/series_statements/_periodical_facet.html.erb
|
834
819
|
- app/views/series_statements/_refine_search_form.html.erb
|
835
820
|
- app/views/series_statements/_tab_menu.html.erb
|
836
821
|
- app/views/series_statements/edit.html.erb
|
@@ -880,9 +865,7 @@ files:
|
|
880
865
|
- db/migrate/20101212070145_add_acquired_at_to_item.rb
|
881
866
|
- db/migrate/20110301035123_add_pub_date_to_manifestation.rb
|
882
867
|
- db/migrate/20110301121550_add_birth_date_and_death_date_to_patron.rb
|
883
|
-
- db/migrate/20110425133109_add_issn_to_series_statement.rb
|
884
868
|
- db/migrate/20110603184217_add_edit_mode_to_resource_import_file.rb
|
885
|
-
- db/migrate/20110618091240_add_periodical_to_series_statement.rb
|
886
869
|
- db/migrate/20110619064807_add_edition_string_to_manifestation.rb
|
887
870
|
- db/migrate/20110620173525_add_bookstore_id_to_item.rb
|
888
871
|
- db/migrate/20110627034940_create_series_statement_merge_lists.rb
|
@@ -891,7 +874,6 @@ files:
|
|
891
874
|
- db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb
|
892
875
|
- db/migrate/20110916091020_add_volume_number_to_manifestation.rb
|
893
876
|
- db/migrate/20110916103953_add_manifestaiton_id_to_series_statement.rb
|
894
|
-
- db/migrate/20110918161853_rename_series_statement_manifestation_id_to_root_manifestation_id.rb
|
895
877
|
- db/migrate/20110918162329_add_note_to_series_statement.rb
|
896
878
|
- db/migrate/20111009183423_add_ndc_to_manifestation.rb
|
897
879
|
- db/migrate/20111124110059_create_create_types.rb
|
@@ -917,6 +899,9 @@ files:
|
|
917
899
|
- db/migrate/20120728204337_create_series_statement_relationships.rb
|
918
900
|
- db/migrate/20121116031206_add_fulltext_content_to_manifestation.rb
|
919
901
|
- db/migrate/20121116033446_add_doi_to_manifestation.rb
|
902
|
+
- db/migrate/20130421093852_add_periodical_to_manifestation.rb
|
903
|
+
- db/migrate/20130421155019_add_creator_string_to_series_statement.rb
|
904
|
+
- db/migrate/20130421164124_add_series_master_to_series_statement.rb
|
920
905
|
- lib/enju_biblio/biblio_helper.rb
|
921
906
|
- lib/enju_biblio/engine.rb
|
922
907
|
- lib/enju_biblio/openurl.rb
|
@@ -946,6 +931,11 @@ files:
|
|
946
931
|
- Rakefile
|
947
932
|
- README.rdoc
|
948
933
|
- spec/cassette_library/ImportRequest/import/should_import_bibliographic_record.yml
|
934
|
+
- spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Administrator/with_isbn_which_is_already_imported/redirects_to_the_created_import_request.yml
|
935
|
+
- spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Administrator/with_valid_params/assigns_a_newly_created_import_request_as_import_request.yml
|
936
|
+
- spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Administrator/with_valid_params/redirects_to_the_created_import_request.yml
|
937
|
+
- spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Librarian/with_valid_params/assigns_a_newly_created_import_request_as_import_request.yml
|
938
|
+
- spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Librarian/with_valid_params/redirects_to_the_created_import_request.yml
|
949
939
|
- spec/controllers/carrier_types_controller_spec.rb
|
950
940
|
- spec/controllers/content_types_controller_spec.rb
|
951
941
|
- spec/controllers/countries_controller_spec.rb
|
@@ -1026,6 +1016,7 @@ files:
|
|
1026
1016
|
- spec/dummy/config/locales/ja.yml
|
1027
1017
|
- spec/dummy/config/routes.rb
|
1028
1018
|
- spec/dummy/config.ru
|
1019
|
+
- spec/dummy/db/development.sqlite3
|
1029
1020
|
- spec/dummy/db/migrate/032_create_checkins.rb
|
1030
1021
|
- spec/dummy/db/migrate/033_create_checkouts.rb
|
1031
1022
|
- spec/dummy/db/migrate/035_create_reserves.rb
|
@@ -1145,7 +1136,7 @@ files:
|
|
1145
1136
|
- spec/dummy/solr/conf/stopwords.txt
|
1146
1137
|
- spec/dummy/solr/conf/synonyms.txt
|
1147
1138
|
- spec/dummy/solr/data/test/index/segments.gen
|
1148
|
-
- spec/dummy/solr/data/test/index/
|
1139
|
+
- spec/dummy/solr/data/test/index/segments_gs2
|
1149
1140
|
- spec/dummy/solr/data/test/spellchecker/segments.gen
|
1150
1141
|
- spec/dummy/solr/data/test/spellchecker/segments_1
|
1151
1142
|
- spec/dummy/tmp/cache/4AD/470/country_all
|
@@ -1375,12 +1366,17 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1375
1366
|
version: 1.3.1
|
1376
1367
|
requirements: []
|
1377
1368
|
rubyforge_project:
|
1378
|
-
rubygems_version: 2.0.
|
1369
|
+
rubygems_version: 2.0.3
|
1379
1370
|
signing_key:
|
1380
1371
|
specification_version: 4
|
1381
1372
|
summary: enju_biblio plugin
|
1382
1373
|
test_files:
|
1383
1374
|
- spec/cassette_library/ImportRequest/import/should_import_bibliographic_record.yml
|
1375
|
+
- spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Administrator/with_isbn_which_is_already_imported/redirects_to_the_created_import_request.yml
|
1376
|
+
- spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Administrator/with_valid_params/assigns_a_newly_created_import_request_as_import_request.yml
|
1377
|
+
- spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Administrator/with_valid_params/redirects_to_the_created_import_request.yml
|
1378
|
+
- spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Librarian/with_valid_params/assigns_a_newly_created_import_request_as_import_request.yml
|
1379
|
+
- spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Librarian/with_valid_params/redirects_to_the_created_import_request.yml
|
1384
1380
|
- spec/controllers/carrier_types_controller_spec.rb
|
1385
1381
|
- spec/controllers/content_types_controller_spec.rb
|
1386
1382
|
- spec/controllers/countries_controller_spec.rb
|
@@ -1461,6 +1457,7 @@ test_files:
|
|
1461
1457
|
- spec/dummy/config/locales/ja.yml
|
1462
1458
|
- spec/dummy/config/routes.rb
|
1463
1459
|
- spec/dummy/config.ru
|
1460
|
+
- spec/dummy/db/development.sqlite3
|
1464
1461
|
- spec/dummy/db/migrate/032_create_checkins.rb
|
1465
1462
|
- spec/dummy/db/migrate/033_create_checkouts.rb
|
1466
1463
|
- spec/dummy/db/migrate/035_create_reserves.rb
|
@@ -1580,7 +1577,7 @@ test_files:
|
|
1580
1577
|
- spec/dummy/solr/conf/stopwords.txt
|
1581
1578
|
- spec/dummy/solr/conf/synonyms.txt
|
1582
1579
|
- spec/dummy/solr/data/test/index/segments.gen
|
1583
|
-
- spec/dummy/solr/data/test/index/
|
1580
|
+
- spec/dummy/solr/data/test/index/segments_gs2
|
1584
1581
|
- spec/dummy/solr/data/test/spellchecker/segments.gen
|
1585
1582
|
- spec/dummy/solr/data/test/spellchecker/segments_1
|
1586
1583
|
- spec/dummy/tmp/cache/4AD/470/country_all
|
@@ -1,15 +0,0 @@
|
|
1
|
-
<h4><%= t('manifestation.periodical') -%></h4>
|
2
|
-
<ul>
|
3
|
-
<%- @periodical_facet.each do |facet| -%>
|
4
|
-
<% facet.value ? facet_periodical = true : facet_periodical = false %>
|
5
|
-
<li>
|
6
|
-
<%- if @periodical == facet_periodical -%><strong><%- end -%>
|
7
|
-
<%= link_to localized_boolean(facet.value), url_for(params.merge(:page => nil, :periodical => facet.value.to_s, :view => nil, :only_path => true)) -%>
|
8
|
-
(<%= facet.count -%>)
|
9
|
-
<%- if @periodical == facet_periodical -%></strong><%- end -%>
|
10
|
-
</li>
|
11
|
-
<%- end -%>
|
12
|
-
<%- unless @periodical.nil? -%>
|
13
|
-
<li><%= link_to t('page.remove_this_facet'), url_for(params.merge(:periodical => nil, :page => nil, :view => nil, :only_path => true)) -%></li>
|
14
|
-
<%- end -%>
|
15
|
-
</ul>
|
data/db/migrate/20110918161853_rename_series_statement_manifestation_id_to_root_manifestation_id.rb
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
class RenameSeriesStatementManifestationIdToRootManifestationId < ActiveRecord::Migration
|
2
|
-
def self.up
|
3
|
-
remove_index :series_statements, :series_statement_identifier
|
4
|
-
rename_column :series_statements, :manifestation_id, :root_manifestation_id
|
5
|
-
add_index :series_statements, :series_statement_identifier
|
6
|
-
end
|
7
|
-
|
8
|
-
def self.down
|
9
|
-
remove_index :series_statements, :series_statement_identifier
|
10
|
-
rename_column :series_statements, :root_manifestation_id, :manifestation_id
|
11
|
-
add_index :series_statements, :series_statement_identifier
|
12
|
-
end
|
13
|
-
end
|
Binary file
|