enju_oai 0.1.0.pre19 → 0.1.0.pre20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (24) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/oai_controller.rb +94 -0
  3. data/app/views/{manifestations/_record_junii2.oai.builder → oai/_record_junii2.xml.builder} +5 -2
  4. data/app/views/{manifestations/_record_oai_dc.oai.builder → oai/_record_oai_dc.xml.builder} +0 -0
  5. data/app/views/{manifestations/show.oai.builder → oai/get_record.xml.builder} +0 -0
  6. data/app/views/{manifestations/identify.oai.builder → oai/identify.xml.builder} +2 -2
  7. data/app/views/{manifestations/list_identifiers.oai.builder → oai/list_identifiers.xml.builder} +2 -2
  8. data/app/views/{manifestations/list_metadata_formats.oai.builder → oai/list_metadata_formats.xml.builder} +1 -1
  9. data/app/views/{manifestations/list_records.oai.builder → oai/list_records.xml.builder} +2 -2
  10. data/app/views/{manifestations/list_sets.oai.builder → oai/list_sets.xml.builder} +1 -1
  11. data/app/views/{manifestations/index.oai.builder → oai/provider.xml.builder} +1 -1
  12. data/config/initializers/mime_types.rb +0 -1
  13. data/config/routes.rb +3 -0
  14. data/lib/enju_oai/oai_controller.rb +23 -26
  15. data/lib/enju_oai/version.rb +1 -1
  16. data/spec/controllers/oai_controller_spec.rb +67 -0
  17. data/spec/dummy/app/assets/javascripts/application.js +4 -6
  18. data/spec/views/{manifestations/show.oai.builder_spec.rb → oai/get_record.xml.builder} +1 -1
  19. data/spec/views/{manifestations/identify.oai.builder_spec.rb → oai/identify.xml.builder_spec.rb} +1 -1
  20. data/spec/views/{manifestations/list_identifiers.oai.builder_spec.rb → oai/list_identifiers.xml.builder_spec.rb} +1 -1
  21. data/spec/views/{manifestations/list_metadata_formats.oai.builder_spec.rb → oai/list_metadata_formats.xml.builder_spec.rb} +1 -1
  22. data/spec/views/{manifestations/list_records.oai.builder_spec.rb → oai/list_records.xml.builder_spec.rb} +1 -1
  23. metadata +272 -270
  24. data/spec/controllers/manifestations_controller_spec.rb +0 -61
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f6f952547e6fb1fd17016917dd03c4a2ccb18ca6
4
- data.tar.gz: 6ff27008468b09fea1e0358866575f7980764ca7
3
+ metadata.gz: e93c7658839009f877f09ddccc35a270bdec7a56
4
+ data.tar.gz: 856047f9722753c2d9fc154d39ce4af2507da87d
5
5
  SHA512:
6
- metadata.gz: aa6f72a07db0b9e60668c673d875e26c23c396661bbcc4bbb269c1939ce7dda5f109d7dc8cfa2d6d4723792f9db65ee277593ab59ac4d1400dedac0b3f1ad6a2
7
- data.tar.gz: b30081617dc9f6017d7ab4c91632200ef7f0e77b40021ca57f46ff590983c2d9226543c44ba91d521a508f9150b284c0b13ca955d7768fbd6dd5fb643ef7af7c
6
+ metadata.gz: ad9682f83dbe3bb1870b3ba3ea5984b405a33f3c4ba6b6349bb54462a31b3a3c35f247e5ecffcc5af75fa54a96f3b970d8e00392cc56dde0ec1579d4b17fad1b
7
+ data.tar.gz: e63c53b214ce4d971ebae7fd528ce545c66f7ec490910f033f71f4fc41d7c1fd62dd2ab1e738fac648f0a89b737dd0d3f32f30fe79ee929487305fb526aced22
@@ -0,0 +1,94 @@
1
+ class OaiController < ApplicationController
2
+ def provider
3
+ @oai = check_oai_params(params)
4
+ if params[:verb] == 'GetRecord'
5
+ get_record; return
6
+ else
7
+ from_and_until_times = set_from_and_until(Manifestation, params[:from], params[:until])
8
+ from_time = @from_time = from_and_until_times[:from]
9
+ until_time = @until_time = from_and_until_times[:until]
10
+
11
+ # OAI-PMHのデフォルトの件数
12
+ oai_per_page = 200
13
+ search = Manifestation.search do
14
+ order_by :updated_at, :desc
15
+ paginate page: 1, per_page: oai_per_page
16
+ end
17
+ @count = {query_result: search.execute!.total}
18
+
19
+ if params[:resumptionToken]
20
+ token = params[:resumptionToken].split(',')
21
+ if token.size == 3
22
+ @cursor = token.reverse.first.to_i
23
+ if @cursor <= @count[:query_result]
24
+ page = (@cursor.to_i + oai_per_page).div(oai_per_page)
25
+ else
26
+ @oai[:errors] << 'badResumptionToken'
27
+ end
28
+ else
29
+ @oai[:errors] << 'badResumptionToken'
30
+ end
31
+ end
32
+ page ||= 1
33
+
34
+ search.build do
35
+ order_by :updated_at, :desc
36
+ paginate page: page, per_page: oai_per_page
37
+ end
38
+ @manifestations = search.execute!.results
39
+
40
+ unless @manifestations.empty?
41
+ @resumption = set_resumption_token(
42
+ params[:resumptionToken],
43
+ @from_time || Manifestation.order(:updated_at).first.updated_at,
44
+ @until_time || Manifestation.order(:updated_at).last.updated_at
45
+ )
46
+ else
47
+ @oai[:errors] << 'noRecordsMatch'
48
+ end
49
+ end
50
+
51
+ respond_to do |format|
52
+ format.xml {
53
+ if @oai[:errors].empty?
54
+ case params[:verb]
55
+ when 'Identify'
56
+ render template: 'oai/identify', content_type: 'text/xml'
57
+ when 'ListMetadataFormats'
58
+ render template: 'oai/list_metadata_formats', content_type: 'text/xml'
59
+ when 'ListSets'
60
+ @series_statements = SeriesStatement.select([:id, :original_title])
61
+ render template: 'oai/list_sets', content_type: 'text/xml'
62
+ when 'ListIdentifiers'
63
+ render template: 'oai/list_identifiers', content_type: 'text/xml'
64
+ when 'ListRecords'
65
+ render template: 'oai/list_records', content_type: 'text/xml'
66
+ else
67
+ render template: 'oai/provider', content_type: 'text/xml'
68
+ end
69
+ else
70
+ render template: 'oai/provider', content_type: 'text/xml'
71
+ end
72
+ }
73
+ end
74
+ end
75
+
76
+ private
77
+ def get_record
78
+ if params[:identifier]
79
+ begin
80
+ @manifestation = Manifestation.find_by_oai_identifier(params[:identifier])
81
+ rescue ActiveRecord::RecordNotFound
82
+ @oai[:errors] << "idDoesNotExist"
83
+ end
84
+ else
85
+ @oai[:errors] << "idDoesNotExist"
86
+ end
87
+
88
+ if @oai[:errors].empty?
89
+ render template: 'oai/get_record', content_type: 'text/xml'
90
+ else
91
+ render template: 'oai/provider', content_type: 'text/xml'
92
+ end
93
+ end
94
+ end
@@ -1,5 +1,6 @@
1
1
  xml_builder.junii2 :version => '3.1',
2
2
  "xsi:schemaLocation" => "http://irdb.nii.ac.jp/oai http://irdb.nii.ac.jp/oai/junii2-3-1.xsd",
3
+ "xmlns:xsi" => "http://www.w3.org/2001/XMLSchema-instance",
3
4
  "xmlns" => "http://irdb.nii.ac.jp/oai",
4
5
  "xmlns:dc" => "http://purl.org/dc/elements/1.1/" do
5
6
  xml_builder.title manifestation.original_title
@@ -81,7 +82,7 @@ xml_builder.junii2 :version => '3.1',
81
82
  unless manifestation.attachment.blank?
82
83
  xml_builder.fulltextURL manifestation_url(id: manifestation.id, format: :download)
83
84
  end
84
- %w[ ISBN ISSN NCID ].each do |identifier|
85
+ %w[ isbn issn NCID ].each do |identifier|
85
86
  manifestation.identifier_contents(identifier.downcase).each do |val|
86
87
  xml_builder.tag! identifier, val
87
88
  end
@@ -93,7 +94,9 @@ xml_builder.junii2 :version => '3.1',
93
94
  xml_builder.issue manifestation.issue_number_string
94
95
  xml_builder.spage manifestation.start_page
95
96
  xml_builder.epage manifestation.end_page
96
- xml_builder.dateofissued manifestation.pub_date
97
+ if manifestation.pub_date?
98
+ xml_builder.dateofissued manifestation.pub_date
99
+ end
97
100
  #TODO: junii2: source
98
101
  if manifestation.language.blank? or manifestation.language.name == 'unknown'
99
102
  xml_builder.language "und"
@@ -3,10 +3,10 @@ xml.tag! "OAI-PMH", :xmlns => "http://www.openarchives.org/OAI/2.0/",
3
3
  "xmlns:xsi" => "http://www.w3.org/2001/XMLSchema-instance",
4
4
  "xsi:schemaLocation" => "http://www.openarchives.org/OAI/2.0/ http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd" do
5
5
  xml.responseDate Time.zone.now.utc.iso8601
6
- xml.request manifestations_url(format: :oai), :verb => "Identify"
6
+ xml.request oai_provider_url(format: :xml), :verb => "Identify"
7
7
  xml.Identify do
8
8
  xml.repositoryName LibraryGroup.site_config.name
9
- xml.baseURL manifestations_url(format: :oai)
9
+ xml.baseURL oai_provider_url(format: :xml)
10
10
  xml.protocolVersion "2.0"
11
11
  xml.adminEmail LibraryGroup.site_config.user.email
12
12
  xml.earliestDatestamp Manifestation.last.created_at.utc.iso8601 if Manifestation.last
@@ -3,7 +3,7 @@ xml.tag! "OAI-PMH", :xmlns => "http://www.openarchives.org/OAI/2.0/",
3
3
  "xmlns:xsi" => "http://www.w3.org/2001/XMLSchema-instance",
4
4
  "xsi:schemaLocation" => "http://www.openarchives.org/OAI/2.0/ http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd" do
5
5
  xml.responseDate Time.zone.now.utc.iso8601
6
- xml.request manifestations_url(format: :oai), request_attr(@from_time, @until_time, @oai[:metadataPrefix])
6
+ xml.request oai_provider_url(format: :xml), request_attr(@from_time, @until_time, @oai[:metadataPrefix])
7
7
  @oai[:errors].each do |error|
8
8
  xml.error :code => error
9
9
  end
@@ -20,7 +20,7 @@ xml.tag! "OAI-PMH", :xmlns => "http://www.openarchives.org/OAI/2.0/",
20
20
  end
21
21
  end
22
22
  if @resumption.present?
23
- if @resumption[:cursor].to_i + @manifestations.limit_value <= @count[:query_result]
23
+ if @resumption[:cursor].to_i <= @count[:query_result]
24
24
  token = @resumption[:token]
25
25
  else
26
26
  token = nil
@@ -3,7 +3,7 @@ xml.tag! "OAI-PMH", :xmlns => "http://www.openarchives.org/OAI/2.0/",
3
3
  "xmlns:xsi" => "http://www.w3.org/2001/XMLSchema-instance",
4
4
  "xsi:schemaLocation" => "http://www.openarchives.org/OAI/2.0/ http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd" do
5
5
  xml.responseDate Time.zone.now.utc.iso8601
6
- xml.request manifestations_url(format: :oai), :verb => "ListMetadataFormats"
6
+ xml.request oai_provider_url(format: :xml), :verb => "ListMetadataFormats"
7
7
  xml.ListMetadataFormats do
8
8
  xml.metadataFormat do
9
9
  xml.metadataPrefix "oai_dc"
@@ -3,7 +3,7 @@ xml.tag! "OAI-PMH", :xmlns => "http://www.openarchives.org/OAI/2.0/",
3
3
  "xmlns:xsi" => "http://www.w3.org/2001/XMLSchema-instance",
4
4
  "xsi:schemaLocation" => "http://www.openarchives.org/OAI/2.0/ http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd" do
5
5
  xml.responseDate Time.zone.now.utc.iso8601
6
- xml.request manifestations_url(format: :oai), request_attr(@from_time, @until_time, @oai[:metadataPrefix])
6
+ xml.request oai_provider_url(format: :xml), request_attr(@from_time, @until_time, @oai[:metadataPrefix])
7
7
  @oai[:errors].each do |error|
8
8
  xml.error code: error
9
9
  end
@@ -27,7 +27,7 @@ xml.tag! "OAI-PMH", :xmlns => "http://www.openarchives.org/OAI/2.0/",
27
27
  end
28
28
  end
29
29
  if @resumption.present?
30
- if @resumption[:cursor].to_i + @manifestations.limit_value <= @count[:query_result]
30
+ if @resumption[:cursor].to_i <= @count[:query_result]
31
31
  token = @resumption[:token]
32
32
  else
33
33
  token = nil
@@ -3,7 +3,7 @@ xml.tag! "OAI-PMH", :xmlns => "http://www.openarchives.org/OAI/2.0/",
3
3
  "xmlns:xsi" => "http://www.w3.org/2001/XMLSchema-instance",
4
4
  "xsi:schemaLocation" => "http://www.openarchives.org/OAI/2.0/ http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd" do
5
5
  xml.responseDate Time.zone.now.utc.iso8601
6
- xml.request manifestations_url(format: :oai), :verb => "ListSets"
6
+ xml.request oai_provider_url(format: :xml), :verb => "ListSets"
7
7
  xml.ListSets do
8
8
  @series_statements.each do |series_statement|
9
9
  xml.set do
@@ -4,7 +4,7 @@ xml.tag! "OAI-PMH",
4
4
  "xmlns:xsi" => "http://www.w3.org/2001/XMLSchema-instance",
5
5
  "xsi:schemaLocation" => "http://www.openarchives.org/OAI/2.0/ http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd" do
6
6
  xml.responseDate Time.zone.now.utc.iso8601
7
- xml.request manifestations_url(format: :oai)
7
+ xml.request oai_provider_url(format: :xml)
8
8
  @oai[:errors].each do |error|
9
9
  xml.error :code => error
10
10
  end
@@ -3,4 +3,3 @@
3
3
  # Add new mime types for use in respond_to blocks:
4
4
  # Mime::Type.register "text/richtext", :rtf
5
5
  # Mime::Type.register_alias "text/html", :iphone
6
- Mime::Type.register_alias "text/xml", :oai
data/config/routes.rb ADDED
@@ -0,0 +1,3 @@
1
+ Rails.application.routes.draw do
2
+ get 'oai/provider' => 'oai#provider', as: 'oai_provider'
3
+ end
@@ -8,39 +8,36 @@ module EnjuOai
8
8
  module ClassMethods
9
9
  def check_oai_params(params)
10
10
  oai = {}
11
- if params[:format] == 'oai'
12
- oai[:need_not_to_search] = nil
13
- oai[:errors] = []
14
- case params[:verb]
15
- when 'Identify'
16
- oai[:need_not_to_search] = true
17
- when 'ListSets'
18
- oai[:need_not_to_search] = true
19
- when 'ListMetadataFormats'
20
- oai[:need_not_to_search] = true
21
- when 'ListIdentifiers'
22
- unless valid_metadata_format?(params[:metadataPrefix])
23
- oai[:errors] << "cannotDisseminateFormat"
24
- end
25
- when 'ListRecords'
26
- oai[:metadataPrefix] = params[:metadataPrefix]
27
- unless valid_metadata_format?(params[:metadataPrefix])
28
- oai[:errors] << "cannotDisseminateFormat"
29
- end
30
- when 'GetRecord'
11
+ oai[:errors] = []
12
+ case params[:verb]
13
+ when 'Identify'
14
+ when 'ListSets'
15
+ when 'ListMetadataFormats'
16
+ when 'ListIdentifiers'
17
+ unless valid_metadata_format?(params[:metadataPrefix])
18
+ oai[:errors] << "badArgument"
19
+ end
20
+ when 'ListRecords'
21
+ oai[:metadataPrefix] = params[:metadataPrefix]
22
+ unless valid_metadata_format?(params[:metadataPrefix])
23
+ oai[:errors] << "badArgument"
24
+ end
25
+ when 'GetRecord'
26
+ unless valid_metadata_format?(params[:metadataPrefix])
27
+ oai[:errors] << "badArgument"
28
+ else
31
29
  if params[:identifier].blank?
32
- oai[:need_not_to_search] = true
33
30
  oai[:errors] << "badArgument"
34
31
  end
35
32
  oai[:metadataPrefix] = params[:metadataPrefix]
36
33
  unless valid_metadata_format?(params[:metadataPrefix])
37
- oai[:errors] << "cannotDisseminateFormat"
34
+ oai[:errors] << "badArgument"
38
35
  end
39
- else
40
- oai[:errors] << "badVerb"
41
36
  end
37
+ else
38
+ oai[:errors] << "badVerb"
42
39
  end
43
- return oai
40
+ oai
44
41
  end
45
42
 
46
43
  def valid_metadata_format?(format)
@@ -51,7 +48,7 @@ module EnjuOai
51
48
  false
52
49
  end
53
50
  else
54
- true
51
+ false
55
52
  end
56
53
  end
57
54
 
@@ -1,3 +1,3 @@
1
1
  module EnjuOai
2
- VERSION = "0.1.0.pre19"
2
+ VERSION = "0.1.0.pre20"
3
3
  end
@@ -0,0 +1,67 @@
1
+ require 'spec_helper'
2
+
3
+ RSpec.describe OaiController, type: :controller do
4
+ fixtures :all
5
+
6
+ def valid_attributes
7
+ FactoryGirl.attributes_for(:manifestation)
8
+ end
9
+
10
+ describe "GET index", :solr => true do
11
+ before do
12
+ Manifestation.reindex
13
+ end
14
+
15
+ describe "When not logged in" do
16
+ it "assigns all manifestations as @manifestations in oai format without verb" do
17
+ get :provider, format: 'xml'
18
+ assigns(:manifestations).should_not be_nil
19
+ response.should render_template("oai/provider")
20
+ end
21
+
22
+ it "should not assign all manifestations as @manifestations in oai format with ListRecords without metadataPrefix" do
23
+ get :provider, format: 'xml', :verb => 'ListRecords'
24
+ assigns(:manifestations).should_not be_nil
25
+ response.should render_template("oai/provider")
26
+ end
27
+
28
+ it "assigns all manifestations as @manifestations in oai format with ListRecords for junii2 metadata" do
29
+ get :provider, format: 'xml', :verb => 'ListRecords', :metadataPrefix => 'junii2'
30
+ assigns(:manifestations).should_not be_nil
31
+ response.should render_template("oai/list_records")
32
+ end
33
+
34
+ it "should not assign all manifestations as @manifestations in oai format with ListIdentifiers without metadataPrefix" do
35
+ get :provider, format: 'xml', :verb => 'ListIdentifiers'
36
+ assigns(:manifestations).should_not be_nil
37
+ response.should render_template("oai/provider")
38
+ end
39
+
40
+ it "assigns all manifestations as @manifestations in oai format with ListIdentifiers for junii2 metadata" do
41
+ get :provider, format: 'xml', :verb => 'ListIdentifiers', :metadataPrefix => 'junii2'
42
+ assigns(:manifestations).should_not be_nil
43
+ response.should render_template("oai/list_identifiers")
44
+ end
45
+
46
+ it "assigns all manifestations as @manifestations in oai format with GetRecord without identifier" do
47
+ get :provider, format: 'xml', :verb => 'GetRecord'
48
+ assigns(:manifestations).should be_nil
49
+ assigns(:manifestation).should be_nil
50
+ response.should render_template('oai/provider')
51
+ end
52
+
53
+ it "should not assign all manifestations as @manifestations in oai format with GetRecord with identifier without metadataPrefix" do
54
+ get :provider, format: 'xml', :verb => 'GetRecord', :identifier => 'oai:localhost:manifestations-1'
55
+ assigns(:manifestations).should be_nil
56
+ assigns(:manifestation).should_not be_nil
57
+ response.should render_template('oai/provider')
58
+ end
59
+ it "assigns all manifestations as @manifestations in oai format with GetRecord with identifier for junii2 metadata" do
60
+ get :provider, format: 'xml', :verb => 'GetRecord', :identifier => 'oai:localhost:manifestations-1', :metadataPrefix => 'junii2'
61
+ assigns(:manifestations).should be_nil
62
+ assigns(:manifestation).should_not be_nil
63
+ response.should render_template('oai/get_record')
64
+ end
65
+ end
66
+ end
67
+ end
@@ -2,14 +2,12 @@
2
2
  // listed below.
3
3
  //
4
4
  // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
- // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
5
+ // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
6
6
  //
7
7
  // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
- // the compiled file.
8
+ // compiled file.
9
9
  //
10
- // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
11
- // GO AFTER THE REQUIRES BELOW.
10
+ // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
+ // about supported directives.
12
12
  //
13
- //= require jquery
14
- //= require jquery_ujs
15
13
  //= require_tree .
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  require 'spec_helper'
3
3
 
4
- describe "manifestations/show.oai.builder" do
4
+ describe "oai/show.xml.builder" do
5
5
  describe "When metadataPrefix is 'oai_dc'" do
6
6
  before(:each) do
7
7
  assign(:manifestation, FactoryGirl.create(:manifestation))
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  require 'spec_helper'
3
3
 
4
- describe "manifestations/identify.oai.builder" do
4
+ describe "oai/identify.xml.builder" do
5
5
  fixtures :all
6
6
 
7
7
  before(:each) do
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  require 'spec_helper'
3
3
 
4
- describe "manifestations/list_identifiers.oai.builder" do
4
+ describe "oai/list_identifiers.xml.builder" do
5
5
  fixtures :all
6
6
  before(:each) do
7
7
  view.stub(:current_user_role_name).and_return('Guest')
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  require 'spec_helper'
3
3
 
4
- describe "manifestations/list_metadata_formats.oai.builder" do
4
+ describe "oai/list_metadata_formats.xml.builder" do
5
5
  fixtures :all
6
6
  it "renders the XML template" do
7
7
  render
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  require 'spec_helper'
3
3
 
4
- describe "manifestations/list_records.oai.builder" do
4
+ describe "oai/list_records.xml.builder" do
5
5
  fixtures :all
6
6
 
7
7
  before(:each) do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_oai
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre19
4
+ version: 0.1.0.pre20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kosuke Tanabe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-21 00:00:00.000000000 Z
11
+ date: 2015-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: enju_biblio
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.1.0.pre69
19
+ version: 0.1.0.pre70
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.1.0.pre69
26
+ version: 0.1.0.pre70
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: enju_subject
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.1.0.pre33
33
+ version: 0.1.0.pre34
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.1.0.pre33
40
+ version: 0.1.0.pre34
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: sqlite3
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -56,16 +56,16 @@ dependencies:
56
56
  name: mysql2
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: 0.3.20
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: 0.3.20
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: pg
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -114,14 +114,14 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 1.1.0.rc20
117
+ version: 1.1.0.rc22
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 1.1.0.rc20
124
+ version: 1.1.0.rc22
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: enju_nii
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -202,23 +202,25 @@ files:
202
202
  - MIT-LICENSE
203
203
  - README.rdoc
204
204
  - Rakefile
205
- - app/views/manifestations/_record_junii2.oai.builder
206
- - app/views/manifestations/_record_oai_dc.oai.builder
207
- - app/views/manifestations/identify.oai.builder
208
- - app/views/manifestations/index.oai.builder
209
- - app/views/manifestations/list_identifiers.oai.builder
210
- - app/views/manifestations/list_metadata_formats.oai.builder
211
- - app/views/manifestations/list_records.oai.builder
212
- - app/views/manifestations/list_sets.oai.builder
213
- - app/views/manifestations/show.oai.builder
205
+ - app/controllers/oai_controller.rb
206
+ - app/views/oai/_record_junii2.xml.builder
207
+ - app/views/oai/_record_oai_dc.xml.builder
208
+ - app/views/oai/get_record.xml.builder
209
+ - app/views/oai/identify.xml.builder
210
+ - app/views/oai/list_identifiers.xml.builder
211
+ - app/views/oai/list_metadata_formats.xml.builder
212
+ - app/views/oai/list_records.xml.builder
213
+ - app/views/oai/list_sets.xml.builder
214
+ - app/views/oai/provider.xml.builder
214
215
  - config/initializers/mime_types.rb
216
+ - config/routes.rb
215
217
  - lib/enju_oai.rb
216
218
  - lib/enju_oai/engine.rb
217
219
  - lib/enju_oai/oai_controller.rb
218
220
  - lib/enju_oai/oai_model.rb
219
221
  - lib/enju_oai/version.rb
220
222
  - lib/tasks/enju_oai_tasks.rake
221
- - spec/controllers/manifestations_controller_spec.rb
223
+ - spec/controllers/oai_controller_spec.rb
222
224
  - spec/dummy/README.rdoc
223
225
  - spec/dummy/Rakefile
224
226
  - spec/dummy/app/assets/javascripts/application.js
@@ -507,11 +509,11 @@ files:
507
509
  - spec/spec_helper.rb
508
510
  - spec/support/controller_macros.rb
509
511
  - spec/support/devise.rb
510
- - spec/views/manifestations/identify.oai.builder_spec.rb
511
- - spec/views/manifestations/list_identifiers.oai.builder_spec.rb
512
- - spec/views/manifestations/list_metadata_formats.oai.builder_spec.rb
513
- - spec/views/manifestations/list_records.oai.builder_spec.rb
514
- - spec/views/manifestations/show.oai.builder_spec.rb
512
+ - spec/views/oai/get_record.xml.builder
513
+ - spec/views/oai/identify.xml.builder_spec.rb
514
+ - spec/views/oai/list_identifiers.xml.builder_spec.rb
515
+ - spec/views/oai/list_metadata_formats.xml.builder_spec.rb
516
+ - spec/views/oai/list_records.xml.builder_spec.rb
515
517
  homepage: https://github.com/next-l/enju_oai
516
518
  licenses: []
517
519
  metadata: {}
@@ -531,302 +533,302 @@ required_rubygems_version: !ruby/object:Gem::Requirement
531
533
  version: 1.3.1
532
534
  requirements: []
533
535
  rubyforge_project:
534
- rubygems_version: 2.4.5
536
+ rubygems_version: 2.4.5.1
535
537
  signing_key:
536
538
  specification_version: 4
537
539
  summary: enju_oai plugin
538
540
  test_files:
539
- - spec/dummy/README.rdoc
541
+ - spec/controllers/oai_controller_spec.rb
540
542
  - spec/dummy/app/assets/javascripts/application.js
541
543
  - spec/dummy/app/assets/stylesheets/application.css
542
- - spec/dummy/app/helpers/application_helper.rb
543
544
  - spec/dummy/app/controllers/application_controller.rb
544
- - spec/dummy/app/models/user.rb
545
+ - spec/dummy/app/helpers/application_helper.rb
545
546
  - spec/dummy/app/models/ability.rb
547
+ - spec/dummy/app/models/user.rb
546
548
  - spec/dummy/app/views/layouts/application.html.erb
547
- - spec/dummy/config/boot.rb
548
- - spec/dummy/config/environments/development.rb
549
- - spec/dummy/config/environments/test.rb
550
- - spec/dummy/config/environments/production.rb
549
+ - spec/dummy/bin/bundle
550
+ - spec/dummy/bin/rails
551
+ - spec/dummy/bin/rake
552
+ - spec/dummy/bin/setup
551
553
  - spec/dummy/config/application.rb
552
554
  - spec/dummy/config/application.yml
553
- - spec/dummy/config/routes.rb
554
- - spec/dummy/config/environment.rb
555
- - spec/dummy/config/locales/en.yml
555
+ - spec/dummy/config/boot.rb
556
556
  - spec/dummy/config/database.yml
557
- - spec/dummy/config/initializers/wrap_parameters.rb
558
- - spec/dummy/config/initializers/session_store.rb
557
+ - spec/dummy/config/environment.rb
558
+ - spec/dummy/config/environments/development.rb
559
+ - spec/dummy/config/environments/production.rb
560
+ - spec/dummy/config/environments/test.rb
561
+ - spec/dummy/config/initializers/backtrace_silencers.rb
559
562
  - spec/dummy/config/initializers/devise.rb
560
563
  - spec/dummy/config/initializers/inflections.rb
561
- - spec/dummy/config/initializers/backtrace_silencers.rb
562
564
  - spec/dummy/config/initializers/mime_types.rb
563
565
  - spec/dummy/config/initializers/secret_token.rb
564
- - spec/dummy/bin/rake
565
- - spec/dummy/bin/bundle
566
- - spec/dummy/bin/rails
567
- - spec/dummy/bin/setup
568
- - spec/dummy/Rakefile
569
- - spec/dummy/db/schema.rb
570
- - spec/dummy/db/migrate/142_create_classifications.rb
571
- - spec/dummy/db/migrate/20120410104851_add_year_of_publication_to_manifestation.rb
572
- - spec/dummy/db/migrate/20110627122938_add_number_of_day_to_notify_overdue_to_user_group.rb
573
- - spec/dummy/db/migrate/20140814070854_add_default_event_category_id_to_event_import_file.rb
574
- - spec/dummy/db/migrate/20120413170720_add_error_message_to_agent_import_file.rb
575
- - spec/dummy/db/migrate/20140720170735_add_default_user_group_id_to_user_import_file.rb
576
- - spec/dummy/db/migrate/015_create_creates.rb
577
- - spec/dummy/db/migrate/20120424103932_add_librarian_id_to_checked_item.rb
566
+ - spec/dummy/config/initializers/session_store.rb
567
+ - spec/dummy/config/initializers/wrap_parameters.rb
568
+ - spec/dummy/config/locales/en.yml
569
+ - spec/dummy/config/routes.rb
570
+ - spec/dummy/config.ru
571
+ - spec/dummy/db/migrate/001_create_agents.rb
578
572
  - spec/dummy/db/migrate/002_devise_create_users.rb
579
- - spec/dummy/db/migrate/20130429020822_add_root_manifestation_id_to_series_statement.rb
580
- - spec/dummy/db/migrate/20110627035057_create_series_statement_merges.rb
581
- - spec/dummy/db/migrate/20120319120638_add_content_type_id_to_manifestation.rb
582
- - spec/dummy/db/migrate/20091202124834_create_versions.rb
583
- - spec/dummy/db/migrate/20130412083556_add_latitude_and_longitude_to_library.rb
584
- - spec/dummy/db/migrate/20110301121550_add_birth_date_and_death_date_to_agent.rb
585
- - spec/dummy/db/migrate/20091214131723_create_series_statements.rb
586
- - spec/dummy/db/migrate/20111217234412_add_save_checkout_history_to_user.rb
587
- - spec/dummy/db/migrate/20140721151416_add_default_shelf_id_to_resource_import_file.rb
588
- - spec/dummy/db/migrate/117_create_form_of_works.rb
589
- - spec/dummy/db/migrate/20081028083142_create_agent_import_files.rb
590
- - spec/dummy/db/migrate/20140802082007_add_manifestation_id_to_item.rb
591
- - spec/dummy/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb
592
- - spec/dummy/db/migrate/20081025083323_create_countries.rb
593
- - spec/dummy/db/migrate/20140528045600_create_manifestation_checkout_stat_transitions.rb
594
- - spec/dummy/db/migrate/20081023092436_create_search_engines.rb
595
- - spec/dummy/db/migrate/20140812152348_create_event_export_files.rb
596
- - spec/dummy/db/migrate/20081216190724_create_manifestation_reserve_stats.rb
597
- - spec/dummy/db/migrate/20140628073535_add_user_encoding_to_resource_import_file.rb
598
- - spec/dummy/db/migrate/20081215094302_create_user_checkout_stats.rb
599
- - spec/dummy/db/migrate/20140528045539_create_user_reserve_stat_transitions.rb
600
- - spec/dummy/db/migrate/20120418081407_add_month_of_publication_to_manifestation.rb
601
- - spec/dummy/db/migrate/20140110131010_create_user_import_results.rb
602
- - spec/dummy/db/migrate/080_create_library_groups.rb
603
- - spec/dummy/db/migrate/20140822114527_add_error_message_to_resource_import_result.rb
573
+ - spec/dummy/db/migrate/005_create_manifestations.rb
574
+ - spec/dummy/db/migrate/006_create_items.rb
575
+ - spec/dummy/db/migrate/012_create_owns.rb
576
+ - spec/dummy/db/migrate/015_create_creates.rb
577
+ - spec/dummy/db/migrate/029_create_subjects.rb
604
578
  - spec/dummy/db/migrate/032_create_checkins.rb
605
- - spec/dummy/db/migrate/130_create_request_status_types.rb
606
- - spec/dummy/db/migrate/20100223121519_rename_series_statement_title_to_original_title.rb
607
- - spec/dummy/db/migrate/20140519170214_create_resource_import_file_transitions.rb
608
- - spec/dummy/db/migrate/20120415060342_rename_event_import_file_imported_at_to_executed_at.rb
609
- - spec/dummy/db/migrate/20120413051535_add_event_import_fingerprint_to_event_import_file.rb
610
- - spec/dummy/db/migrate/20140810061942_add_user_id_to_user_checkout_stat.rb
611
- - spec/dummy/db/migrate/20110916091020_add_volume_number_to_manifestation.rb
579
+ - spec/dummy/db/migrate/033_create_checkouts.rb
580
+ - spec/dummy/db/migrate/035_create_reserves.rb
581
+ - spec/dummy/db/migrate/041_create_roles.rb
582
+ - spec/dummy/db/migrate/047_create_produces.rb
583
+ - spec/dummy/db/migrate/059_create_libraries.rb
584
+ - spec/dummy/db/migrate/069_create_shelves.rb
585
+ - spec/dummy/db/migrate/073_create_carrier_types.rb
586
+ - spec/dummy/db/migrate/077_create_user_groups.rb
587
+ - spec/dummy/db/migrate/080_create_library_groups.rb
588
+ - spec/dummy/db/migrate/112_create_frequencies.rb
589
+ - spec/dummy/db/migrate/113_create_events.rb
590
+ - spec/dummy/db/migrate/114_create_event_categories.rb
591
+ - spec/dummy/db/migrate/117_create_form_of_works.rb
612
592
  - spec/dummy/db/migrate/120_create_baskets.rb
613
- - spec/dummy/db/migrate/20111218002349_add_checkout_icalendar_token_to_user.rb
614
- - spec/dummy/db/migrate/20110913120629_add_lft_and_rgt_to_classification.rb
615
593
  - spec/dummy/db/migrate/121_create_checked_items.rb
616
- - spec/dummy/db/migrate/20120406020752_add_url_to_subject.rb
617
- - spec/dummy/db/migrate/134_create_agent_merge_lists.rb
618
- - spec/dummy/db/migrate/20141003181336_add_full_name_transcription_to_profile.rb
619
- - spec/dummy/db/migrate/20140823083524_add_extent_to_manifestation.rb
620
594
  - spec/dummy/db/migrate/124_create_bookstores.rb
621
- - spec/dummy/db/migrate/20140628071719_add_user_encoding_to_event_import_file.rb
622
- - spec/dummy/db/migrate/20101212070145_add_acquired_at_to_item.rb
623
- - spec/dummy/db/migrate/033_create_checkouts.rb
624
- - spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
625
- - spec/dummy/db/migrate/20081006090811_create_subscriptions.rb
626
- - spec/dummy/db/migrate/20140610123439_drop_email_unique_constraint_enju_leaf_rc10.rb
627
- - spec/dummy/db/migrate/145_create_subject_heading_types.rb
628
- - spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb
629
- - spec/dummy/db/migrate/20120129020544_add_budget_type_id_to_item.rb
630
- - spec/dummy/db/migrate/20081006093246_create_subscribes.rb
631
- - spec/dummy/db/migrate/20120511072422_add_agent_identifier_to_agent.rb
632
595
  - spec/dummy/db/migrate/125_create_donates.rb
633
- - spec/dummy/db/migrate/20130506175834_create_identifiers.rb
634
- - spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb
635
- - spec/dummy/db/migrate/20120125152919_add_title_subseries_transcription_to_series_statement.rb
636
- - spec/dummy/db/migrate/20100129142347_create_import_requests.rb
637
- - spec/dummy/db/migrate/20090519203307_create_participates.rb
638
- - spec/dummy/db/migrate/20120129014038_create_budget_types.rb
639
- - spec/dummy/db/migrate/20081216190517_create_reserve_stat_has_manifestations.rb
640
- - spec/dummy/db/migrate/20140821151023_create_colors.rb
641
- - spec/dummy/db/migrate/20111124110059_create_create_types.rb
642
- - spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb
643
- - spec/dummy/db/migrate/20100925074559_create_agent_import_results.rb
644
- - spec/dummy/db/migrate/20140813182425_add_publication_place_to_manifestation.rb
645
- - spec/dummy/db/migrate/20150221063719_add_settings_to_library_group.rb
596
+ - spec/dummy/db/migrate/127_create_use_restrictions.rb
597
+ - spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb
598
+ - spec/dummy/db/migrate/130_create_request_status_types.rb
599
+ - spec/dummy/db/migrate/131_create_request_types.rb
600
+ - spec/dummy/db/migrate/132_create_circulation_statuses.rb
601
+ - spec/dummy/db/migrate/133_create_agent_merges.rb
602
+ - spec/dummy/db/migrate/134_create_agent_merge_lists.rb
603
+ - spec/dummy/db/migrate/142_create_classifications.rb
646
604
  - spec/dummy/db/migrate/144_create_classification_types.rb
647
- - spec/dummy/db/migrate/20120413072700_add_picture_meta_to_picture_file.rb
648
- - spec/dummy/db/migrate/035_create_reserves.rb
649
- - spec/dummy/db/migrate/20090720091106_create_medium_of_performances.rb
650
- - spec/dummy/db/migrate/20140823095740_rename_manifestation_periodical_to_serial.rb
651
- - spec/dummy/db/migrate/20130304015019_add_postponed_at_to_reserve.rb
652
- - spec/dummy/db/migrate/113_create_events.rb
605
+ - spec/dummy/db/migrate/145_create_subject_heading_types.rb
606
+ - spec/dummy/db/migrate/146_create_subject_types.rb
607
+ - spec/dummy/db/migrate/20080830154109_create_realizes.rb
608
+ - spec/dummy/db/migrate/20080830172106_create_exemplifies.rb
609
+ - spec/dummy/db/migrate/20080905191442_create_agent_types.rb
610
+ - spec/dummy/db/migrate/20081006090811_create_subscriptions.rb
611
+ - spec/dummy/db/migrate/20081006093246_create_subscribes.rb
612
+ - spec/dummy/db/migrate/20081023092436_create_search_engines.rb
613
+ - spec/dummy/db/migrate/20081025083323_create_countries.rb
653
614
  - spec/dummy/db/migrate/20081025083905_create_languages.rb
654
- - spec/dummy/db/migrate/20140614141500_create_resource_export_file_transitions.rb
655
- - spec/dummy/db/migrate/20120413100352_add_fingerprint_to_picture_file.rb
656
- - spec/dummy/db/migrate/20110301134521_add_expire_date_to_reserve.rb
657
- - spec/dummy/db/migrate/20110619064807_add_edition_string_to_manifestation.rb
658
- - spec/dummy/db/migrate/20090812151902_create_agent_relationship_types.rb
659
- - spec/dummy/db/migrate/20110918162329_add_note_to_series_statement.rb
660
- - spec/dummy/db/migrate/20100607044753_create_manifestation_relationship_types.rb
661
- - spec/dummy/db/migrate/20110603184217_add_edit_mode_to_resource_import_file.rb
662
- - spec/dummy/db/migrate/20140110122216_create_user_import_files.rb
615
+ - spec/dummy/db/migrate/20081027150907_create_picture_files.rb
616
+ - spec/dummy/db/migrate/20081028083142_create_agent_import_files.rb
663
617
  - spec/dummy/db/migrate/20081028083208_create_resource_import_files.rb
664
- - spec/dummy/db/migrate/114_create_event_categories.rb
665
- - spec/dummy/db/migrate/20120413161340_add_fingerprint_to_resource_import_file.rb
666
- - spec/dummy/db/migrate/20140628072217_add_user_encoding_to_user_import_file.rb
667
- - spec/dummy/db/migrate/20081030023615_create_carrier_type_has_checkout_types.rb
668
- - spec/dummy/db/migrate/20140720192418_add_default_library_id_to_event_import_file.rb
669
- - spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb
670
- - spec/dummy/db/migrate/20090720091429_create_content_types.rb
671
- - spec/dummy/db/migrate/20100925074639_create_event_import_results.rb
672
- - spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb
673
- - spec/dummy/db/migrate/20141014065831_add_shelf_id_to_checkout.rb
674
- - spec/dummy/db/migrate/20130504133816_add_manifestation_id_to_subject.rb
675
- - spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb
676
- - spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb
677
- - spec/dummy/db/migrate/041_create_roles.rb
678
- - spec/dummy/db/migrate/20140528045518_create_user_checkout_stat_transitions.rb
679
- - spec/dummy/db/migrate/073_create_carrier_types.rb
680
- - spec/dummy/db/migrate/20140810091417_add_save_checkout_history_to_profile.rb
681
- - spec/dummy/db/migrate/20130421093852_add_periodical_to_manifestation.rb
682
- - spec/dummy/db/migrate/029_create_subjects.rb
683
- - spec/dummy/db/migrate/20140810091231_add_checkout_icalendar_token_to_profile.rb
684
- - spec/dummy/db/migrate/20140523171309_create_event_import_file_transitions.rb
685
- - spec/dummy/db/migrate/132_create_circulation_statuses.rb
686
- - spec/dummy/db/migrate/20100814091104_add_position_to_agent_relationship.rb
687
- - spec/dummy/db/migrate/20081030023518_create_user_group_has_checkout_types.rb
688
- - spec/dummy/db/migrate/127_create_use_restrictions.rb
689
- - spec/dummy/db/migrate/20140812153137_create_event_export_file_transitions.rb
690
- - spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb
691
- - spec/dummy/db/migrate/20081215094955_create_checkout_stat_has_users.rb
692
- - spec/dummy/db/migrate/20120413170734_add_error_message_to_event_import_file.rb
693
- - spec/dummy/db/migrate/20140720170714_add_default_library_id_to_user_import_file.rb
694
- - spec/dummy/db/migrate/20120413161403_add_fingerprint_to_agent_import_file.rb
695
- - spec/dummy/db/migrate/20130504195916_add_subject_heading_type_id_to_subject.rb
696
- - spec/dummy/db/migrate/20110222073537_add_url_to_library_group.rb
697
- - spec/dummy/db/migrate/20090913173236_create_nii_types.rb
698
- - spec/dummy/db/migrate/20110627034940_create_series_statement_merge_lists.rb
699
618
  - spec/dummy/db/migrate/20081028093607_create_event_import_files.rb
700
- - spec/dummy/db/migrate/20141003182825_add_date_of_birth_to_profile.rb
701
- - spec/dummy/db/migrate/20140518050147_create_reserve_transitions.rb
702
- - spec/dummy/db/migrate/20140614065404_create_resource_export_files.rb
703
- - spec/dummy/db/migrate/20090705212043_add_attachments_attachment_to_manifestation.rb
704
- - spec/dummy/db/migrate/20140709113413_create_user_export_files.rb
705
- - spec/dummy/db/migrate/059_create_libraries.rb
706
- - spec/dummy/db/migrate/20081220034117_create_reserve_stat_has_users.rb
707
- - spec/dummy/db/migrate/20140628073524_add_user_encoding_to_agent_import_file.rb
708
- - spec/dummy/db/migrate/001_create_agents.rb
709
619
  - spec/dummy/db/migrate/20081030023412_create_checkout_types.rb
710
- - spec/dummy/db/migrate/069_create_shelves.rb
711
- - spec/dummy/db/migrate/20130504143515_add_manifestation_id_to_classification.rb
712
- - spec/dummy/db/migrate/20130509185724_add_statement_of_responsibility_to_manifestation.rb
713
- - spec/dummy/db/migrate/006_create_items.rb
714
- - spec/dummy/db/migrate/20081027150907_create_picture_files.rb
715
- - spec/dummy/db/migrate/20140720140916_add_binding_item_identifier_to_item.rb
716
- - spec/dummy/db/migrate/012_create_owns.rb
717
- - spec/dummy/db/migrate/20100211105551_add_admin_networks_to_library_group.rb
718
- - spec/dummy/db/migrate/20090913185239_add_nii_type_id_to_manifestation.rb
719
- - spec/dummy/db/migrate/131_create_request_types.rb
720
- - spec/dummy/db/migrate/20080830172106_create_exemplifies.rb
620
+ - spec/dummy/db/migrate/20081030023518_create_user_group_has_checkout_types.rb
621
+ - spec/dummy/db/migrate/20081030023615_create_carrier_type_has_checkout_types.rb
721
622
  - spec/dummy/db/migrate/20081212075554_create_checkout_stat_has_manifestations.rb
722
- - spec/dummy/db/migrate/047_create_produces.rb
723
- - spec/dummy/db/migrate/20130416054135_add_circulation_status_id_to_item.rb
724
- - spec/dummy/db/migrate/20080830154109_create_realizes.rb
725
- - spec/dummy/db/migrate/20120105074911_add_isil_to_library.rb
726
- - spec/dummy/db/migrate/20140823094847_add_dimensions_to_manifestation.rb
727
- - spec/dummy/db/migrate/20110301035123_add_pub_date_to_manifestation.rb
728
- - spec/dummy/db/migrate/112_create_frequencies.rb
623
+ - spec/dummy/db/migrate/20081212080038_create_manifestation_checkout_stats.rb
624
+ - spec/dummy/db/migrate/20081215094302_create_user_checkout_stats.rb
625
+ - spec/dummy/db/migrate/20081215094955_create_checkout_stat_has_users.rb
626
+ - spec/dummy/db/migrate/20081216190517_create_reserve_stat_has_manifestations.rb
627
+ - spec/dummy/db/migrate/20081216190724_create_manifestation_reserve_stats.rb
729
628
  - spec/dummy/db/migrate/20081220023628_create_user_reserve_stats.rb
730
- - spec/dummy/db/migrate/20100314190054_add_opening_hour_to_library.rb
629
+ - spec/dummy/db/migrate/20081220034117_create_reserve_stat_has_users.rb
630
+ - spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb
631
+ - spec/dummy/db/migrate/20090519203307_create_participates.rb
632
+ - spec/dummy/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb
633
+ - spec/dummy/db/migrate/20090705212043_add_attachments_attachment_to_manifestation.rb
634
+ - spec/dummy/db/migrate/20090720091106_create_medium_of_performances.rb
635
+ - spec/dummy/db/migrate/20090720091429_create_content_types.rb
636
+ - spec/dummy/db/migrate/20090812151902_create_agent_relationship_types.rb
637
+ - spec/dummy/db/migrate/20090831220301_create_lending_policies.rb
638
+ - spec/dummy/db/migrate/20090913173236_create_nii_types.rb
639
+ - spec/dummy/db/migrate/20090913185239_add_nii_type_id_to_manifestation.rb
731
640
  - spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb
732
- - spec/dummy/db/migrate/20130421164124_add_series_master_to_series_statement.rb
733
641
  - spec/dummy/db/migrate/20091025080447_create_licenses.rb
734
- - spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb
642
+ - spec/dummy/db/migrate/20091202124834_create_versions.rb
643
+ - spec/dummy/db/migrate/20091214131723_create_series_statements.rb
644
+ - spec/dummy/db/migrate/20100129142347_create_import_requests.rb
645
+ - spec/dummy/db/migrate/20100211105551_add_admin_networks_to_library_group.rb
646
+ - spec/dummy/db/migrate/20100223121519_rename_series_statement_title_to_original_title.rb
647
+ - spec/dummy/db/migrate/20100314190054_add_opening_hour_to_library.rb
735
648
  - spec/dummy/db/migrate/20100321235924_add_series_statement_identifier_to_series_statement.rb
736
- - spec/dummy/db/migrate/077_create_user_groups.rb
737
- - spec/dummy/db/migrate/005_create_manifestations.rb
738
649
  - spec/dummy/db/migrate/20100525124311_create_manifestation_relationships.rb
650
+ - spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb
651
+ - spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb
652
+ - spec/dummy/db/migrate/20100607044753_create_manifestation_relationship_types.rb
653
+ - spec/dummy/db/migrate/20100814091104_add_position_to_agent_relationship.rb
654
+ - spec/dummy/db/migrate/20100925043847_create_resource_import_results.rb
655
+ - spec/dummy/db/migrate/20100925074559_create_agent_import_results.rb
656
+ - spec/dummy/db/migrate/20100925074639_create_event_import_results.rb
657
+ - spec/dummy/db/migrate/20101212070145_add_acquired_at_to_item.rb
658
+ - spec/dummy/db/migrate/20110222073537_add_url_to_library_group.rb
659
+ - spec/dummy/db/migrate/20110301035123_add_pub_date_to_manifestation.rb
660
+ - spec/dummy/db/migrate/20110301121550_add_birth_date_and_death_date_to_agent.rb
661
+ - spec/dummy/db/migrate/20110301134521_add_expire_date_to_reserve.rb
662
+ - spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
663
+ - spec/dummy/db/migrate/20110328130826_add_current_checkout_count_to_user_group_has_checkout_type.rb
664
+ - spec/dummy/db/migrate/20110603184217_add_edit_mode_to_resource_import_file.rb
665
+ - spec/dummy/db/migrate/20110619064807_add_edition_string_to_manifestation.rb
666
+ - spec/dummy/db/migrate/20110620173525_add_bookstore_id_to_item.rb
667
+ - spec/dummy/db/migrate/20110621093332_remove_expire_date_from_reserve.rb
668
+ - spec/dummy/db/migrate/20110627034940_create_series_statement_merge_lists.rb
669
+ - spec/dummy/db/migrate/20110627035057_create_series_statement_merges.rb
670
+ - spec/dummy/db/migrate/20110627122938_add_number_of_day_to_notify_overdue_to_user_group.rb
671
+ - spec/dummy/db/migrate/20110913120629_add_lft_and_rgt_to_classification.rb
672
+ - spec/dummy/db/migrate/20110916091020_add_volume_number_to_manifestation.rb
673
+ - spec/dummy/db/migrate/20110916103953_add_manifestaiton_id_to_series_statement.rb
674
+ - spec/dummy/db/migrate/20110918162329_add_note_to_series_statement.rb
675
+ - spec/dummy/db/migrate/20111124110059_create_create_types.rb
676
+ - spec/dummy/db/migrate/20111124110319_create_realize_types.rb
739
677
  - spec/dummy/db/migrate/20111124110355_create_produce_types.rb
740
- - spec/dummy/db/migrate/20130519065638_add_lock_version_to_reserve.rb
741
- - spec/dummy/db/migrate/20140811031145_add_expired_at_to_profile.rb
742
- - spec/dummy/db/migrate/20081212080038_create_manifestation_checkout_stats.rb
743
- - spec/dummy/db/migrate/146_create_subject_types.rb
744
- - spec/dummy/db/migrate/20080905191442_create_agent_types.rb
745
- - spec/dummy/db/migrate/20130421155019_add_creator_string_to_series_statement.rb
746
- - spec/dummy/db/migrate/20140122054321_create_profiles.rb
747
678
  - spec/dummy/db/migrate/20111124112131_add_create_type_to_create.rb
748
- - spec/dummy/db/migrate/20130519065837_add_lock_version_to_checkin.rb
679
+ - spec/dummy/db/migrate/20111217234412_add_save_checkout_history_to_user.rb
680
+ - spec/dummy/db/migrate/20111218002349_add_checkout_icalendar_token_to_user.rb
681
+ - spec/dummy/db/migrate/20120105074911_add_isil_to_library.rb
682
+ - spec/dummy/db/migrate/20120125152919_add_title_subseries_transcription_to_series_statement.rb
683
+ - spec/dummy/db/migrate/20120129014038_create_budget_types.rb
684
+ - spec/dummy/db/migrate/20120129020544_add_budget_type_id_to_item.rb
685
+ - spec/dummy/db/migrate/20120319120638_add_content_type_id_to_manifestation.rb
749
686
  - spec/dummy/db/migrate/20120319173203_create_accepts.rb
750
- - spec/dummy/db/migrate/20110621093332_remove_expire_date_from_reserve.rb
751
- - spec/dummy/db/migrate/20100925043847_create_resource_import_results.rb
752
- - spec/dummy/db/migrate/133_create_agent_merges.rb
753
- - spec/dummy/db/migrate/20120602141129_add_edit_mode_to_agent_import_file.rb
687
+ - spec/dummy/db/migrate/20120406020752_add_url_to_subject.rb
688
+ - spec/dummy/db/migrate/20120410104851_add_year_of_publication_to_manifestation.rb
689
+ - spec/dummy/db/migrate/20120413051535_add_event_import_fingerprint_to_event_import_file.rb
690
+ - spec/dummy/db/migrate/20120413072700_add_picture_meta_to_picture_file.rb
691
+ - spec/dummy/db/migrate/20120413100352_add_fingerprint_to_picture_file.rb
692
+ - spec/dummy/db/migrate/20120413161340_add_fingerprint_to_resource_import_file.rb
693
+ - spec/dummy/db/migrate/20120413161403_add_fingerprint_to_agent_import_file.rb
694
+ - spec/dummy/db/migrate/20120413170705_add_error_message_to_resource_import_file.rb
695
+ - spec/dummy/db/migrate/20120413170720_add_error_message_to_agent_import_file.rb
696
+ - spec/dummy/db/migrate/20120413170734_add_error_message_to_event_import_file.rb
697
+ - spec/dummy/db/migrate/20120415060342_rename_event_import_file_imported_at_to_executed_at.rb
754
698
  - spec/dummy/db/migrate/20120415164821_add_attachment_meta_to_manifestation.rb
755
- - spec/dummy/db/migrate/20110328130826_add_current_checkout_count_to_user_group_has_checkout_type.rb
756
- - spec/dummy/db/migrate/20140528045617_create_manifestation_reserve_stat_transitions.rb
757
- - spec/dummy/db/migrate/20130506175303_create_identifier_types.rb
758
- - spec/dummy/db/migrate/20110916103953_add_manifestaiton_id_to_series_statement.rb
699
+ - spec/dummy/db/migrate/20120418081407_add_month_of_publication_to_manifestation.rb
700
+ - spec/dummy/db/migrate/20120424103932_add_librarian_id_to_checked_item.rb
701
+ - spec/dummy/db/migrate/20120510140958_add_closed_to_shelf.rb
702
+ - spec/dummy/db/migrate/20120511072422_add_agent_identifier_to_agent.rb
703
+ - spec/dummy/db/migrate/20120602141129_add_edit_mode_to_agent_import_file.rb
759
704
  - spec/dummy/db/migrate/20121116031206_add_fulltext_content_to_manifestation.rb
705
+ - spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb
760
706
  - spec/dummy/db/migrate/20130303124821_add_retained_at_to_reserve.rb
761
- - spec/dummy/db/migrate/20090831220301_create_lending_policies.rb
762
- - spec/dummy/db/migrate/20120510140958_add_closed_to_shelf.rb
763
- - spec/dummy/db/migrate/20111124110319_create_realize_types.rb
764
- - spec/dummy/db/migrate/20110620173525_add_bookstore_id_to_item.rb
765
- - spec/dummy/db/migrate/20120413170705_add_error_message_to_resource_import_file.rb
766
- - spec/dummy/config.ru
707
+ - spec/dummy/db/migrate/20130304015019_add_postponed_at_to_reserve.rb
708
+ - spec/dummy/db/migrate/20130412083556_add_latitude_and_longitude_to_library.rb
709
+ - spec/dummy/db/migrate/20130416054135_add_circulation_status_id_to_item.rb
710
+ - spec/dummy/db/migrate/20130421093852_add_periodical_to_manifestation.rb
711
+ - spec/dummy/db/migrate/20130421155019_add_creator_string_to_series_statement.rb
712
+ - spec/dummy/db/migrate/20130421164124_add_series_master_to_series_statement.rb
713
+ - spec/dummy/db/migrate/20130429020822_add_root_manifestation_id_to_series_statement.rb
714
+ - spec/dummy/db/migrate/20130504133816_add_manifestation_id_to_subject.rb
715
+ - spec/dummy/db/migrate/20130504143515_add_manifestation_id_to_classification.rb
716
+ - spec/dummy/db/migrate/20130504195916_add_subject_heading_type_id_to_subject.rb
717
+ - spec/dummy/db/migrate/20130506175303_create_identifier_types.rb
718
+ - spec/dummy/db/migrate/20130506175834_create_identifiers.rb
719
+ - spec/dummy/db/migrate/20130509185724_add_statement_of_responsibility_to_manifestation.rb
720
+ - spec/dummy/db/migrate/20130519065638_add_lock_version_to_reserve.rb
721
+ - spec/dummy/db/migrate/20130519065837_add_lock_version_to_checkin.rb
722
+ - spec/dummy/db/migrate/20140110122216_create_user_import_files.rb
723
+ - spec/dummy/db/migrate/20140110131010_create_user_import_results.rb
724
+ - spec/dummy/db/migrate/20140122054321_create_profiles.rb
725
+ - spec/dummy/db/migrate/20140518050147_create_reserve_transitions.rb
726
+ - spec/dummy/db/migrate/20140519170214_create_resource_import_file_transitions.rb
727
+ - spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb
728
+ - spec/dummy/db/migrate/20140523171309_create_event_import_file_transitions.rb
729
+ - spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb
730
+ - spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb
731
+ - spec/dummy/db/migrate/20140528045518_create_user_checkout_stat_transitions.rb
732
+ - spec/dummy/db/migrate/20140528045539_create_user_reserve_stat_transitions.rb
733
+ - spec/dummy/db/migrate/20140528045600_create_manifestation_checkout_stat_transitions.rb
734
+ - spec/dummy/db/migrate/20140528045617_create_manifestation_reserve_stat_transitions.rb
735
+ - spec/dummy/db/migrate/20140610123439_drop_email_unique_constraint_enju_leaf_rc10.rb
736
+ - spec/dummy/db/migrate/20140614065404_create_resource_export_files.rb
737
+ - spec/dummy/db/migrate/20140614141500_create_resource_export_file_transitions.rb
738
+ - spec/dummy/db/migrate/20140628071719_add_user_encoding_to_event_import_file.rb
739
+ - spec/dummy/db/migrate/20140628072217_add_user_encoding_to_user_import_file.rb
740
+ - spec/dummy/db/migrate/20140628073524_add_user_encoding_to_agent_import_file.rb
741
+ - spec/dummy/db/migrate/20140628073535_add_user_encoding_to_resource_import_file.rb
742
+ - spec/dummy/db/migrate/20140709113413_create_user_export_files.rb
743
+ - spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb
744
+ - spec/dummy/db/migrate/20140720140916_add_binding_item_identifier_to_item.rb
745
+ - spec/dummy/db/migrate/20140720170714_add_default_library_id_to_user_import_file.rb
746
+ - spec/dummy/db/migrate/20140720170735_add_default_user_group_id_to_user_import_file.rb
747
+ - spec/dummy/db/migrate/20140720192418_add_default_library_id_to_event_import_file.rb
748
+ - spec/dummy/db/migrate/20140721151416_add_default_shelf_id_to_resource_import_file.rb
749
+ - spec/dummy/db/migrate/20140802082007_add_manifestation_id_to_item.rb
750
+ - spec/dummy/db/migrate/20140810061942_add_user_id_to_user_checkout_stat.rb
751
+ - spec/dummy/db/migrate/20140810091231_add_checkout_icalendar_token_to_profile.rb
752
+ - spec/dummy/db/migrate/20140810091417_add_save_checkout_history_to_profile.rb
753
+ - spec/dummy/db/migrate/20140811031145_add_expired_at_to_profile.rb
754
+ - spec/dummy/db/migrate/20140812152348_create_event_export_files.rb
755
+ - spec/dummy/db/migrate/20140812153137_create_event_export_file_transitions.rb
756
+ - spec/dummy/db/migrate/20140813182425_add_publication_place_to_manifestation.rb
757
+ - spec/dummy/db/migrate/20140814070854_add_default_event_category_id_to_event_import_file.rb
758
+ - spec/dummy/db/migrate/20140821151023_create_colors.rb
759
+ - spec/dummy/db/migrate/20140822114527_add_error_message_to_resource_import_result.rb
760
+ - spec/dummy/db/migrate/20140823083524_add_extent_to_manifestation.rb
761
+ - spec/dummy/db/migrate/20140823094847_add_dimensions_to_manifestation.rb
762
+ - spec/dummy/db/migrate/20140823095740_rename_manifestation_periodical_to_serial.rb
763
+ - spec/dummy/db/migrate/20141003181336_add_full_name_transcription_to_profile.rb
764
+ - spec/dummy/db/migrate/20141003182825_add_date_of_birth_to_profile.rb
765
+ - spec/dummy/db/migrate/20141014065831_add_shelf_id_to_checkout.rb
766
+ - spec/dummy/db/migrate/20150221063719_add_settings_to_library_group.rb
767
+ - spec/dummy/db/schema.rb
767
768
  - spec/dummy/public/404.html
768
- - spec/dummy/public/500.html
769
769
  - spec/dummy/public/422.html
770
+ - spec/dummy/public/500.html
770
771
  - spec/dummy/public/favicon.ico
771
- - spec/support/devise.rb
772
- - spec/support/controller_macros.rb
773
- - spec/fixtures/item_has_use_restrictions.yml
774
- - spec/fixtures/series_statements.yml
775
- - spec/fixtures/budget_types.yml
776
- - spec/fixtures/form_of_works.yml
777
- - spec/fixtures/create_types.yml
772
+ - spec/dummy/Rakefile
773
+ - spec/dummy/README.rdoc
774
+ - spec/factories/manifestation.rb
775
+ - spec/factories/user.rb
776
+ - spec/fixtures/agent_import_files.yml
777
+ - spec/fixtures/agent_import_results.yml
778
+ - spec/fixtures/agent_relationship_types.yml
779
+ - spec/fixtures/agent_relationships.yml
780
+ - spec/fixtures/agent_types.yml
781
+ - spec/fixtures/agents.yml
782
+ - spec/fixtures/baskets.yml
778
783
  - spec/fixtures/bookstores.yml
779
- - spec/fixtures/request_types.yml
784
+ - spec/fixtures/budget_types.yml
785
+ - spec/fixtures/carrier_types.yml
786
+ - spec/fixtures/circulation_statuses.yml
780
787
  - spec/fixtures/content_types.yml
781
- - spec/fixtures/profiles.yml
782
- - spec/fixtures/languages.yml
783
- - spec/fixtures/produces.yml
784
- - spec/fixtures/user_has_roles.yml
785
- - spec/fixtures/manifestations.yml
786
- - spec/fixtures/agents.yml
787
- - spec/fixtures/roles.yml
788
- - spec/fixtures/picture_files.yml
789
- - spec/fixtures/import_requests.yml
788
+ - spec/fixtures/countries.yml
789
+ - spec/fixtures/create_types.yml
790
790
  - spec/fixtures/creates.yml
791
- - spec/fixtures/identifiers.yml
791
+ - spec/fixtures/donates.yml
792
+ - spec/fixtures/event_categories.yml
793
+ - spec/fixtures/events.yml
794
+ - spec/fixtures/exemplifies.yml
795
+ - spec/fixtures/form_of_works.yml
792
796
  - spec/fixtures/frequencies.yml
793
- - spec/fixtures/baskets.yml
794
- - spec/fixtures/circulation_statuses.yml
797
+ - spec/fixtures/identifier_types.yml
798
+ - spec/fixtures/identifiers.yml
799
+ - spec/fixtures/import_requests.yml
800
+ - spec/fixtures/item_has_use_restrictions.yml
795
801
  - spec/fixtures/items.yml
802
+ - spec/fixtures/languages.yml
803
+ - spec/fixtures/libraries.yml
804
+ - spec/fixtures/library_groups.yml
796
805
  - spec/fixtures/licenses.yml
797
- - spec/fixtures/agent_types.yml
798
- - spec/fixtures/agent_relationships.yml
799
- - spec/fixtures/donates.yml
800
806
  - spec/fixtures/manifestation_relationship_types.yml
801
- - spec/fixtures/shelves.yml
807
+ - spec/fixtures/manifestation_relationships.yml
808
+ - spec/fixtures/manifestations.yml
802
809
  - spec/fixtures/medium_of_performances.yml
810
+ - spec/fixtures/nii_types.yml
811
+ - spec/fixtures/owns.yml
812
+ - spec/fixtures/picture_files.yml
803
813
  - spec/fixtures/produce_types.yml
804
- - spec/fixtures/libraries.yml
805
- - spec/fixtures/carrier_types.yml
814
+ - spec/fixtures/produces.yml
815
+ - spec/fixtures/profiles.yml
816
+ - spec/fixtures/realize_types.yml
806
817
  - spec/fixtures/realizes.yml
807
818
  - spec/fixtures/request_status_types.yml
808
- - spec/fixtures/agent_import_results.yml
809
- - spec/fixtures/agent_relationship_types.yml
810
- - spec/fixtures/event_categories.yml
811
- - spec/fixtures/manifestation_relationships.yml
812
- - spec/fixtures/realize_types.yml
819
+ - spec/fixtures/request_types.yml
820
+ - spec/fixtures/roles.yml
821
+ - spec/fixtures/series_statements.yml
822
+ - spec/fixtures/shelves.yml
813
823
  - spec/fixtures/user_group_has_checkout_types.yml
814
- - spec/fixtures/identifier_types.yml
815
- - spec/fixtures/agent_import_files.yml
816
- - spec/fixtures/events.yml
817
- - spec/fixtures/library_groups.yml
818
- - spec/fixtures/nii_types.yml
819
- - spec/fixtures/exemplifies.yml
820
- - spec/fixtures/users.yml
821
824
  - spec/fixtures/user_groups.yml
822
- - spec/fixtures/countries.yml
823
- - spec/fixtures/owns.yml
824
- - spec/controllers/manifestations_controller_spec.rb
825
- - spec/factories/manifestation.rb
826
- - spec/factories/user.rb
825
+ - spec/fixtures/user_has_roles.yml
826
+ - spec/fixtures/users.yml
827
827
  - spec/spec_helper.rb
828
- - spec/views/manifestations/show.oai.builder_spec.rb
829
- - spec/views/manifestations/list_metadata_formats.oai.builder_spec.rb
830
- - spec/views/manifestations/list_records.oai.builder_spec.rb
831
- - spec/views/manifestations/list_identifiers.oai.builder_spec.rb
832
- - spec/views/manifestations/identify.oai.builder_spec.rb
828
+ - spec/support/controller_macros.rb
829
+ - spec/support/devise.rb
830
+ - spec/views/oai/get_record.xml.builder
831
+ - spec/views/oai/identify.xml.builder_spec.rb
832
+ - spec/views/oai/list_identifiers.xml.builder_spec.rb
833
+ - spec/views/oai/list_metadata_formats.xml.builder_spec.rb
834
+ - spec/views/oai/list_records.xml.builder_spec.rb
@@ -1,61 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe ManifestationsController do
4
- fixtures :all
5
-
6
- def valid_attributes
7
- FactoryGirl.attributes_for(:manifestation)
8
- end
9
-
10
- describe "GET index", :solr => true do
11
- before do
12
- Manifestation.reindex
13
- end
14
-
15
- describe "When not logged in" do
16
- it "assigns all manifestations as @manifestations in oai format without verb" do
17
- get :index, :format => 'oai'
18
- assigns(:manifestations).should_not be_nil
19
- response.should render_template("manifestations/index")
20
- end
21
-
22
- it "assigns all manifestations as @manifestations in oai format with ListRecords" do
23
- get :index, :format => 'oai', :verb => 'ListRecords'
24
- assigns(:manifestations).should_not be_nil
25
- response.should render_template("manifestations/list_records")
26
- end
27
-
28
- it "assigns all manifestations as @manifestations in oai format with ListRecords for junii2 metadata" do
29
- get :index, :format => 'oai', :verb => 'ListRecords', :metadataPrefix => 'junii2'
30
- assigns(:manifestations).should_not be_nil
31
- response.should render_template("manifestations/list_records")
32
- end
33
-
34
- it "assigns all manifestations as @manifestations in oai format with ListIdentifiers" do
35
- get :index, :format => 'oai', :verb => 'ListIdentifiers'
36
- assigns(:manifestations).should_not be_nil
37
- response.should render_template("manifestations/list_identifiers")
38
- end
39
-
40
- it "assigns all manifestations as @manifestations in oai format with GetRecord without identifier" do
41
- get :index, :format => 'oai', :verb => 'GetRecord'
42
- assigns(:manifestations).should be_nil
43
- assigns(:manifestation).should be_nil
44
- response.should render_template('manifestations/index')
45
- end
46
-
47
- it "assigns all manifestations as @manifestations in oai format with GetRecord with identifier" do
48
- get :index, :format => 'oai', :verb => 'GetRecord', :identifier => 'oai:localhost:manifestations-1'
49
- assigns(:manifestations).should be_nil
50
- assigns(:manifestation).should_not be_nil
51
- response.should render_template('manifestations/show')
52
- end
53
- it "assigns all manifestations as @manifestations in oai format with GetRecord with identifier for junii2 metadata" do
54
- get :index, :format => 'oai', :verb => 'GetRecord', :identifier => 'oai:localhost:manifestations-1', :metadataPrefix => 'junii2'
55
- assigns(:manifestations).should be_nil
56
- assigns(:manifestation).should_not be_nil
57
- response.should render_template('manifestations/show')
58
- end
59
- end
60
- end
61
- end