enju_oai 0.1.0.pre9 → 0.1.0.pre10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/manifestations/show.oai.builder +3 -1
- data/config/initializers/mime_types.rb +6 -0
- data/lib/enju_oai/version.rb +1 -1
- data/spec/dummy/app/controllers/application_controller.rb +1 -256
- data/spec/dummy/config/application.rb +1 -3
- data/spec/dummy/config/initializers/mime_types.rb +0 -9
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20130421093852_add_periodical_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20130421155019_add_creator_string_to_series_statement.rb +7 -0
- data/spec/dummy/db/migrate/20130421164124_add_series_master_to_series_statement.rb +5 -0
- data/spec/dummy/db/migrate/20130429020822_add_root_manifestation_id_to_series_statement.rb +6 -0
- data/spec/dummy/db/migrate/20130506175303_create_identifier_types.rb +12 -0
- data/spec/dummy/db/migrate/20130506175834_create_identifiers.rb +14 -0
- data/spec/dummy/db/migrate/20130509185724_add_statement_of_responsibility_to_manifestation.rb +5 -0
- data/spec/dummy/db/schema.rb +34 -5
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/solr/data/test/index/{_1l.fdt → _43.fdt} +0 -0
- data/spec/dummy/solr/data/test/index/{_1l.fdx → _43.fdx} +0 -0
- data/spec/dummy/solr/data/test/index/{_1l.fnm → _43.fnm} +4 -4
- data/spec/dummy/solr/data/test/index/{_1l.frq → _43.frq} +0 -0
- data/spec/dummy/solr/data/test/index/{_1l.nrm → _43.nrm} +1 -1
- data/spec/dummy/solr/data/test/index/{_1l.prx → _43.prx} +0 -0
- data/spec/dummy/solr/data/test/index/_43.tii +0 -0
- data/spec/dummy/solr/data/test/index/{_1l.tis → _43.tis} +0 -0
- data/spec/dummy/solr/data/test/index/{_1m.fdt → _44.fdt} +0 -0
- data/spec/dummy/solr/data/test/index/{_1m.fdx → _44.fdx} +0 -0
- data/spec/dummy/solr/data/test/index/{_1m.fnm → _44.fnm} +4 -4
- data/spec/dummy/solr/data/test/index/{_1m.frq → _44.frq} +0 -0
- data/spec/dummy/solr/data/test/index/{_1m.nrm → _44.nrm} +0 -0
- data/spec/dummy/solr/data/test/index/{_1m.prx → _44.prx} +0 -0
- data/spec/dummy/solr/data/test/index/_44.tii +0 -0
- data/spec/dummy/solr/data/test/index/{_1m.tis → _44.tis} +0 -0
- data/spec/dummy/solr/data/test/index/{_1n.fdt → _45.fdt} +0 -0
- data/spec/dummy/solr/data/test/index/{_1n.fdx → _45.fdx} +0 -0
- data/spec/dummy/solr/data/test/index/{_1n.fnm → _45.fnm} +3 -3
- data/spec/dummy/solr/data/test/index/_45.frq +0 -0
- data/spec/dummy/solr/data/test/index/_45.nrm +1 -0
- data/spec/dummy/solr/data/test/index/_45.prx +0 -0
- data/spec/dummy/solr/data/test/index/_45.tii +0 -0
- data/spec/dummy/solr/data/test/index/_45.tis +0 -0
- data/spec/dummy/solr/data/test/index/segments.gen +0 -0
- data/spec/dummy/solr/data/test/index/{segments_29 → segments_5v} +0 -0
- data/spec/fixtures/identifier_types.yml +29 -0
- data/spec/fixtures/identifiers.yml +113 -0
- data/spec/fixtures/series_statements.yml +21 -23
- metadata +78 -77
- data/spec/dummy/db/migrate/20110918161853_rename_series_statement_manifestation_id_to_root_manifestation_id.rb +0 -13
- data/spec/dummy/lib/enju_leaf.rb +0 -8
- data/spec/dummy/solr/data/test/index/_1l.tii +0 -0
- data/spec/dummy/solr/data/test/index/_1m.tii +0 -0
- data/spec/dummy/solr/data/test/index/_1n.frq +0 -0
- data/spec/dummy/solr/data/test/index/_1n.nrm +0 -1
- data/spec/dummy/solr/data/test/index/_1n.prx +0 -0
- data/spec/dummy/solr/data/test/index/_1n.tii +0 -0
- data/spec/dummy/solr/data/test/index/_1n.tis +0 -0
- data/spec/fixtures/series_has_manifestations.yml +0 -35
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f400fdd737e3282f52ac35730f6e3bbae43747c7
|
4
|
+
data.tar.gz: 6e40aa2615024e5c9ca83a198ca63447e6c0128e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78f66495df1e1411012dfd47d744d4c23a77ff7023e52ae930d650194562f8f6755e0b569e0e6c8d00029f22598cbd22bef8a16a9e39d7f34e3ed36922f52941
|
7
|
+
data.tar.gz: 4ae4986823eddeb1ae985355e9337748eead6e04314e95759d7ce553b452f627ffbd6d873a93568d96992f9a6fbc49bf1743671765607fac9c85de1827207e48
|
@@ -9,7 +9,9 @@ xml.tag! "OAI-PMH", :xmlns => "http://www.openarchives.org/OAI/2.0/",
|
|
9
9
|
xml.header do
|
10
10
|
xml.identifier @manifestation.oai_identifier
|
11
11
|
xml.datestamp @manifestation.updated_at.utc.iso8601
|
12
|
-
|
12
|
+
@manifestation.series_statements.each do |series_statement|
|
13
|
+
xml.setSpec series_statement.id
|
14
|
+
end
|
13
15
|
end
|
14
16
|
xml.metadata do
|
15
17
|
xml.tag! "oai_dc:dc",
|
data/lib/enju_oai/version.rb
CHANGED
@@ -1,262 +1,7 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
class ApplicationController < ActionController::Base
|
3
3
|
protect_from_forgery
|
4
|
-
|
5
|
-
|
6
|
-
rescue_from CanCan::AccessDenied, :with => :render_403
|
7
|
-
rescue_from ActiveRecord::RecordNotFound, :with => :render_404
|
8
|
-
rescue_from Errno::ECONNREFUSED, :with => :render_500
|
9
|
-
rescue_from ActionView::MissingTemplate, :with => :render_404_invalid_format
|
10
|
-
#rescue_from ActionController::RoutingError, :with => :render_404
|
11
|
-
|
4
|
+
enju_leaf
|
12
5
|
enju_biblio
|
13
6
|
enju_library
|
14
|
-
before_filter :get_library_group, :set_locale, :set_available_languages,
|
15
|
-
:set_mobile_request
|
16
|
-
|
17
|
-
private
|
18
|
-
def after_sign_in_path_for(resource)
|
19
|
-
session[:locale] = nil
|
20
|
-
super
|
21
|
-
end
|
22
|
-
|
23
|
-
def render_403
|
24
|
-
return if performed?
|
25
|
-
if user_signed_in?
|
26
|
-
respond_to do |format|
|
27
|
-
format.html {render :template => 'page/403', :status => 403}
|
28
|
-
format.mobile {render :template => 'page/403', :status => 403}
|
29
|
-
format.xml {render :template => 'page/403', :status => 403}
|
30
|
-
format.json { render :text => '{"error": "forbidden"}' }
|
31
|
-
end
|
32
|
-
else
|
33
|
-
respond_to do |format|
|
34
|
-
format.html {redirect_to new_user_session_url}
|
35
|
-
format.mobile {redirect_to new_user_session_url}
|
36
|
-
format.xml {render :template => 'page/403', :status => 403}
|
37
|
-
format.json { render :text => '{"error": "forbidden"}' }
|
38
|
-
end
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
def render_404
|
43
|
-
return if performed?
|
44
|
-
respond_to do |format|
|
45
|
-
format.html {render :template => 'page/404', :status => 404}
|
46
|
-
format.mobile {render :template => 'page/404', :status => 404}
|
47
|
-
format.xml {render :template => 'page/404', :status => 404}
|
48
|
-
format.json { render :text => '{"error": "not_found"}' }
|
49
|
-
end
|
50
|
-
end
|
51
|
-
|
52
|
-
def render_404_invalid_format
|
53
|
-
return if performed?
|
54
|
-
render :file => "#{Rails.root}/public/404.html"
|
55
|
-
end
|
56
|
-
|
57
|
-
def render_500
|
58
|
-
Rails.logger.fatal("please confirm that the Solr is running.")
|
59
|
-
return if performed?
|
60
|
-
#flash[:notice] = t('page.connection_failed')
|
61
|
-
respond_to do |format|
|
62
|
-
format.html {render :file => "#{Rails.root.to_s}/public/500.html", :layout => false, :status => 500}
|
63
|
-
format.mobile {render :file => "#{Rails.root.to_s}/public/500.html", :layout => false, :status => 500}
|
64
|
-
format.xml {render :template => 'page/500', :status => 500}
|
65
|
-
format.json { render :text => '{"error": "server_error"}' }
|
66
|
-
end
|
67
|
-
end
|
68
|
-
|
69
|
-
def set_locale
|
70
|
-
if params[:locale]
|
71
|
-
unless I18n.available_locales.include?(params[:locale].to_s.intern)
|
72
|
-
raise InvalidLocaleError
|
73
|
-
end
|
74
|
-
end
|
75
|
-
if user_signed_in?
|
76
|
-
locale = params[:locale] || session[:locale] || current_user.locale.try(:to_sym)
|
77
|
-
else
|
78
|
-
locale = params[:locale] || session[:locale]
|
79
|
-
end
|
80
|
-
if locale
|
81
|
-
I18n.locale = @locale = session[:locale] = locale.to_sym
|
82
|
-
else
|
83
|
-
I18n.locale = @locale = session[:locale] = I18n.default_locale
|
84
|
-
end
|
85
|
-
rescue InvalidLocaleError
|
86
|
-
@locale = I18n.default_locale
|
87
|
-
end
|
88
|
-
|
89
|
-
def default_url_options(options={})
|
90
|
-
{:locale => nil}
|
91
|
-
end
|
92
|
-
|
93
|
-
def set_available_languages
|
94
|
-
if Rails.env == 'production'
|
95
|
-
@available_languages = Rails.cache.fetch('available_languages'){
|
96
|
-
Language.where(:iso_639_1 => I18n.available_locales.map{|l| l.to_s}).select([:id, :iso_639_1, :name, :native_name, :display_name, :position]).all
|
97
|
-
}
|
98
|
-
else
|
99
|
-
@available_languages = Language.where(:iso_639_1 => I18n.available_locales.map{|l| l.to_s})
|
100
|
-
end
|
101
|
-
end
|
102
|
-
|
103
|
-
def reset_params_session
|
104
|
-
session[:params] = nil
|
105
|
-
end
|
106
|
-
|
107
|
-
def not_found
|
108
|
-
raise ActiveRecord::RecordNotFound
|
109
|
-
end
|
110
|
-
|
111
|
-
def access_denied
|
112
|
-
raise CanCan::AccessDenied
|
113
|
-
end
|
114
|
-
|
115
|
-
def get_user
|
116
|
-
@user = User.where(:username => params[:user_id]).first if params[:user_id]
|
117
|
-
#authorize! :show, @user if @user
|
118
|
-
end
|
119
|
-
|
120
|
-
def get_user_group
|
121
|
-
@user_group = UserGroup.find(params[:user_group_id]) if params[:user_group_id]
|
122
|
-
end
|
123
|
-
|
124
|
-
def convert_charset
|
125
|
-
case params[:format]
|
126
|
-
when 'csv'
|
127
|
-
return unless configatron.csv_charset_conversion
|
128
|
-
# TODO: 他の言語
|
129
|
-
if @locale.to_sym == :ja
|
130
|
-
headers["Content-Type"] = "text/csv; charset=Shift_JIS"
|
131
|
-
response.body = NKF::nkf('-Ws', response.body)
|
132
|
-
end
|
133
|
-
when 'xml'
|
134
|
-
if @locale.to_sym == :ja
|
135
|
-
headers["Content-Type"] = "application/xml; charset=Shift_JIS"
|
136
|
-
response.body = NKF::nkf('-Ws', response.body)
|
137
|
-
end
|
138
|
-
end
|
139
|
-
end
|
140
|
-
|
141
|
-
def store_page
|
142
|
-
if request.get? and request.format.try(:html?) and !request.xhr?
|
143
|
-
flash[:page] = params[:page] if params[:page].to_i > 0
|
144
|
-
end
|
145
|
-
end
|
146
|
-
|
147
|
-
def store_location
|
148
|
-
if request.get? and request.format.try(:html?) and !request.xhr?
|
149
|
-
session[:user_return_to] = request.fullpath
|
150
|
-
end
|
151
|
-
end
|
152
|
-
|
153
|
-
def set_role_query(user, search)
|
154
|
-
role = user.try(:role) || Role.default_role
|
155
|
-
search.build do
|
156
|
-
with(:required_role_id).less_than_or_equal_to role.id
|
157
|
-
end
|
158
|
-
end
|
159
|
-
|
160
|
-
def make_internal_query(search)
|
161
|
-
# 内部的なクエリ
|
162
|
-
set_role_query(current_user, search)
|
163
|
-
|
164
|
-
unless params[:mode] == "add"
|
165
|
-
expression = @expression
|
166
|
-
patron = @patron
|
167
|
-
manifestation = @manifestation
|
168
|
-
reservable = @reservable
|
169
|
-
carrier_type = params[:carrier_type]
|
170
|
-
library = params[:library]
|
171
|
-
language = params[:language]
|
172
|
-
if defined?(EnjuSubject)
|
173
|
-
subject = params[:subject]
|
174
|
-
subject_by_term = Subject.where(:term => params[:subject]).first
|
175
|
-
@subject_by_term = subject_by_term
|
176
|
-
end
|
177
|
-
|
178
|
-
search.build do
|
179
|
-
with(:publisher_ids).equal_to patron.id if patron
|
180
|
-
with(:original_manifestation_ids).equal_to manifestation.id if manifestation
|
181
|
-
with(:reservable).equal_to reservable unless reservable.nil?
|
182
|
-
unless carrier_type.blank?
|
183
|
-
with(:carrier_type).equal_to carrier_type
|
184
|
-
end
|
185
|
-
unless library.blank?
|
186
|
-
library_list = library.split.uniq
|
187
|
-
library_list.each do |library|
|
188
|
-
with(:library).equal_to library
|
189
|
-
end
|
190
|
-
end
|
191
|
-
unless language.blank?
|
192
|
-
language_list = language.split.uniq
|
193
|
-
language_list.each do |language|
|
194
|
-
with(:language).equal_to language
|
195
|
-
end
|
196
|
-
end
|
197
|
-
if defined?(EnjuSubject)
|
198
|
-
unless subject.blank?
|
199
|
-
with(:subject).equal_to subject_by_term.term
|
200
|
-
end
|
201
|
-
end
|
202
|
-
end
|
203
|
-
end
|
204
|
-
return search
|
205
|
-
end
|
206
|
-
|
207
|
-
def solr_commit
|
208
|
-
Sunspot.commit
|
209
|
-
end
|
210
|
-
|
211
|
-
def get_version
|
212
|
-
@version = params[:version_id].to_i if params[:version_id]
|
213
|
-
@version = nil if @version == 0
|
214
|
-
end
|
215
|
-
|
216
|
-
def clear_search_sessions
|
217
|
-
session[:query] = nil
|
218
|
-
session[:params] = nil
|
219
|
-
session[:search_params] = nil
|
220
|
-
session[:manifestation_ids] = nil
|
221
|
-
end
|
222
|
-
|
223
|
-
def api_request?
|
224
|
-
true unless params[:format].nil? or params[:format] == 'html'
|
225
|
-
end
|
226
|
-
|
227
|
-
def get_top_page_content
|
228
|
-
if defined?(EnjuNews)
|
229
|
-
@news_feeds = Rails.cache.fetch('news_feed_all'){NewsFeed.all}
|
230
|
-
@news_posts = NewsPost.limit(3)
|
231
|
-
end
|
232
|
-
@libraries = Library.real
|
233
|
-
end
|
234
|
-
|
235
|
-
def set_mobile_request
|
236
|
-
if params[:mobile_view]
|
237
|
-
case params[:mobile_view]
|
238
|
-
when 'true'
|
239
|
-
session[:mobylette_override] = :force_mobile
|
240
|
-
request.format = :mobile
|
241
|
-
when 'false'
|
242
|
-
session[:mobylette_override] = :ignore_mobile
|
243
|
-
request.format = :html
|
244
|
-
end
|
245
|
-
else
|
246
|
-
session[:mobylette_override] = nil
|
247
|
-
end
|
248
|
-
end
|
249
|
-
|
250
|
-
def move_position(resource, direction, redirect = true)
|
251
|
-
if ['higher', 'lower'].include?(direction)
|
252
|
-
resource.send("move_#{direction}")
|
253
|
-
if redirect
|
254
|
-
redirect_to url_for(:controller => resource.class.to_s.pluralize.underscore)
|
255
|
-
return
|
256
|
-
end
|
257
|
-
end
|
258
|
-
end
|
259
|
-
end
|
260
|
-
|
261
|
-
class InvalidLocaleError < StandardError
|
262
7
|
end
|
@@ -3,12 +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 "image/jpeg", :jpg
|
7
|
-
Mime::Type.register "application/octet-stream", :download
|
8
|
-
Mime::Type.register "application/xml", :sru
|
9
|
-
#Mime::Type.register "application/xml", :openurl
|
10
|
-
Mime::Type.register "application/xml", :mods
|
11
|
-
Mime::Type.register "application/rdf+xml", :rdf
|
12
|
-
Mime::Type.register_alias "text/xml", :oai
|
13
|
-
#Mime::Type.register_alias "text/html", :mobile
|
14
|
-
Mime::Type.register "application/svg+xml", :svg
|
Binary file
|
@@ -0,0 +1,7 @@
|
|
1
|
+
class AddCreatorStringToSeriesStatement < ActiveRecord::Migration
|
2
|
+
def change
|
3
|
+
add_column :series_statements, :creator_string, :text
|
4
|
+
add_column :series_statements, :volume_number_string, :text
|
5
|
+
add_column :series_statements, :volume_number_transcription_string, :text
|
6
|
+
end
|
7
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
class CreateIdentifiers < ActiveRecord::Migration
|
2
|
+
def change
|
3
|
+
create_table :identifiers do |t|
|
4
|
+
t.string :body, :null => false
|
5
|
+
t.integer :identifier_type_id, :null => false
|
6
|
+
t.integer :manifestation_id
|
7
|
+
t.boolean :primary
|
8
|
+
t.integer :position
|
9
|
+
|
10
|
+
t.timestamps
|
11
|
+
end
|
12
|
+
add_index :identifiers, [:body, :identifier_type_id]
|
13
|
+
end
|
14
|
+
end
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
#
|
12
12
|
# It's strongly recommended to check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(:version =>
|
14
|
+
ActiveRecord::Schema.define(:version => 20130509185724) do
|
15
15
|
|
16
16
|
create_table "bookstores", :force => true do |t|
|
17
17
|
t.text "name", :null => false
|
@@ -138,6 +138,27 @@ ActiveRecord::Schema.define(:version => 20121116033446) do
|
|
138
138
|
t.datetime "updated_at", :null => false
|
139
139
|
end
|
140
140
|
|
141
|
+
create_table "identifier_types", :force => true do |t|
|
142
|
+
t.string "name"
|
143
|
+
t.text "display_name"
|
144
|
+
t.text "note"
|
145
|
+
t.integer "position"
|
146
|
+
t.datetime "created_at", :null => false
|
147
|
+
t.datetime "updated_at", :null => false
|
148
|
+
end
|
149
|
+
|
150
|
+
create_table "identifiers", :force => true do |t|
|
151
|
+
t.string "body", :null => false
|
152
|
+
t.integer "identifier_type_id", :null => false
|
153
|
+
t.integer "manifestation_id"
|
154
|
+
t.boolean "primary"
|
155
|
+
t.integer "position"
|
156
|
+
t.datetime "created_at", :null => false
|
157
|
+
t.datetime "updated_at", :null => false
|
158
|
+
end
|
159
|
+
|
160
|
+
add_index "identifiers", ["body", "identifier_type_id"], :name => "index_identifiers_on_body_and_identifier_type_id"
|
161
|
+
|
141
162
|
create_table "import_requests", :force => true do |t|
|
142
163
|
t.string "isbn"
|
143
164
|
t.string "state"
|
@@ -337,6 +358,8 @@ ActiveRecord::Schema.define(:version => 20121116033446) do
|
|
337
358
|
t.text "attachment_meta"
|
338
359
|
t.integer "month_of_publication"
|
339
360
|
t.string "doi"
|
361
|
+
t.boolean "periodical"
|
362
|
+
t.text "statement_of_responsibility"
|
340
363
|
end
|
341
364
|
|
342
365
|
add_index "manifestations", ["access_address"], :name => "index_manifestations_on_access_address"
|
@@ -673,19 +696,25 @@ ActiveRecord::Schema.define(:version => 20121116033446) do
|
|
673
696
|
t.text "title_subseries"
|
674
697
|
t.text "numbering_subseries"
|
675
698
|
t.integer "position"
|
676
|
-
t.datetime "created_at",
|
677
|
-
t.datetime "updated_at",
|
699
|
+
t.datetime "created_at", :null => false
|
700
|
+
t.datetime "updated_at", :null => false
|
678
701
|
t.text "title_transcription"
|
679
702
|
t.text "title_alternative"
|
680
703
|
t.string "series_statement_identifier"
|
681
704
|
t.string "issn"
|
682
705
|
t.boolean "periodical"
|
683
|
-
t.integer "
|
706
|
+
t.integer "manifestation_id"
|
684
707
|
t.text "note"
|
685
708
|
t.text "title_subseries_transcription"
|
709
|
+
t.text "creator_string"
|
710
|
+
t.text "volume_number_string"
|
711
|
+
t.text "volume_number_transcription_string"
|
712
|
+
t.boolean "series_master"
|
713
|
+
t.integer "root_manifestation_id"
|
686
714
|
end
|
687
715
|
|
688
|
-
add_index "series_statements", ["
|
716
|
+
add_index "series_statements", ["manifestation_id"], :name => "index_series_statements_on_manifestation_id"
|
717
|
+
add_index "series_statements", ["root_manifestation_id"], :name => "index_series_statements_on_root_manifestation_id"
|
689
718
|
add_index "series_statements", ["series_statement_identifier"], :name => "index_series_statements_on_series_statement_identifier"
|
690
719
|
|
691
720
|
create_table "shelves", :force => true do |t|
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
File without changes
|
File without changes
|
@@ -1,7 +1,7 @@
|
|
1
|
-
|
1
|
+
����,idtype
|
2
2
|
class_nametitle_smconnect_title_sconnect_creator_sconnect_publisher_sisbn_smcarrier_type_s
|
3
3
|
library_sm
|
4
4
|
language_sitem_identifier_smshelf_smcreated_at_dupdated_at_dcreator_ids_imcontributor_ids_impublisher_ids_imitem_ids_imrequired_role_id_istart_page_i
|
5
|
-
end_page_inumber_of_pages_i
|
6
|
-
creator_smsort_title_speriodical_b
|
7
|
-
title_textcreator_textcontributor_textpublisher_textitem_identifier_textaulast_textaufirst_textau_textbtitle_text isbn_text
|
5
|
+
end_page_inumber_of_pages_irepository_content_b
|
6
|
+
creator_smsort_title_speriodical_bseries_master_bresource_master_b
|
7
|
+
title_textcreator_textcontributor_textpublisher_textitem_identifier_textaulast_textaufirst_textau_textbtitle_text isbn_textissn_smoriginal_manifestation_ids_im
|
Binary file
|
@@ -1 +1 @@
|
|
1
|
-
NRM�turxtuxutrtwsssuuvyrttrvrrtxtxswuywtrtyvywtuwwttptxy|||||||||||tuuu|||||||||||||||||||||||||||||||||wxwwx|||||||||||||||||||||||||||||||||||||||||||||wxwwx|||||||||||||||||||||||||||u|||||||||||||||||uvw|||||||x|||||||||||||||||||||||||||||||||||||||y||||||||||||w���|||||||||||||||||||||||||||||||||��|||||||||||w���|||||||||||||||||||||||||||||||||xy|||||||||||tuuu|||||||||||||||||||||||||||||||||
|
1
|
+
NRM�turxtuxutrtwsssuuvyrttrvrrtxtxswuywtrtyvywtuwwttptxy|||||||||||tuuu|||||||||||||||||||||||||||||||||wxwwx|||||||||||||||||||||||||||||||||||||||||||||wxwwx|||||||||||||||||||||||||||u|||||||||||||||||uvw|||||||x|||||||||||||||||||||||||||||||||||||||y||||||||||||w���|||||||||||||||||||||||||||||||||��|||||||||||w���|||||||||||||||||||||||||||||||||xy|||||||||||tuuu|||||||||||||||||||||||||||||||||turxtuxutrtwsssuuvyrttrvrrtxtxswuywtrtyvywtuwwttpty|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Binary file
|
Binary file
|
Binary file
|
File without changes
|
File without changes
|
@@ -1,7 +1,7 @@
|
|
1
|
-
|
1
|
+
����,idtype
|
2
2
|
class_nametitle_smconnect_title_sconnect_creator_sconnect_publisher_sisbn_smcarrier_type_s
|
3
3
|
library_sm
|
4
4
|
language_sitem_identifier_smshelf_smcreated_at_dupdated_at_dcreator_ids_imcontributor_ids_impublisher_ids_imitem_ids_imrequired_role_id_istart_page_i
|
5
|
-
end_page_inumber_of_pages_i
|
6
|
-
creator_smsort_title_speriodical_b
|
7
|
-
title_textcreator_textcontributor_textpublisher_textitem_identifier_textaulast_textaufirst_textau_textbtitle_text isbn_text
|
5
|
+
end_page_inumber_of_pages_irepository_content_b
|
6
|
+
creator_smsort_title_speriodical_bseries_master_bresource_master_b
|
7
|
+
title_textcreator_textcontributor_textpublisher_textitem_identifier_textaulast_textaufirst_textau_textbtitle_text isbn_textissn_smoriginal_manifestation_ids_im
|
Binary file
|
File without changes
|
Binary file
|
Binary file
|
Binary file
|
File without changes
|
File without changes
|
@@ -2,6 +2,6 @@
|
|
2
2
|
class_nametitle_smconnect_title_sconnect_creator_sconnect_publisher_sisbn_smcarrier_type_s
|
3
3
|
library_sm
|
4
4
|
language_sitem_identifier_smshelf_smcreated_at_dupdated_at_dcreator_ids_imcontributor_ids_impublisher_ids_imitem_ids_imrequired_role_id_istart_page_i
|
5
|
-
end_page_inumber_of_pages_i
|
6
|
-
creator_smsort_title_speriodical_b
|
7
|
-
title_textcreator_textcontributor_textpublisher_textitem_identifier_textaulast_textaufirst_textau_textbtitle_text isbn_text
|
5
|
+
end_page_inumber_of_pages_irepository_content_b
|
6
|
+
creator_smsort_title_speriodical_bseries_master_bresource_master_b
|
7
|
+
title_textcreator_textcontributor_textpublisher_textitem_identifier_textaulast_textaufirst_textau_textbtitle_text isbn_textissn_smoriginal_manifestation_ids_im
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
NRM�vruwvvuur|xttutttwwuuuuuuxx||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||xtt|uuutt||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||vruwvvuur|xttutttwwuuuuuuxx|||||y||||||||||||||||||||||||||||||||||||||||||||||||
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
|
2
|
+
|
3
|
+
one:
|
4
|
+
name: isbn
|
5
|
+
display_name: ISBN
|
6
|
+
note:
|
7
|
+
position: 1
|
8
|
+
id: 1
|
9
|
+
|
10
|
+
two:
|
11
|
+
name: issn
|
12
|
+
display_name: ISSN
|
13
|
+
note:
|
14
|
+
position: 2
|
15
|
+
id: 2
|
16
|
+
|
17
|
+
# == Schema Information
|
18
|
+
#
|
19
|
+
# Table name: identifier_types
|
20
|
+
#
|
21
|
+
# id :integer not null, primary key
|
22
|
+
# name :string(255)
|
23
|
+
# display_name :text
|
24
|
+
# note :text
|
25
|
+
# position :integer
|
26
|
+
# created_at :datetime not null
|
27
|
+
# updated_at :datetime not null
|
28
|
+
#
|
29
|
+
|
@@ -0,0 +1,113 @@
|
|
1
|
+
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
|
2
|
+
|
3
|
+
one:
|
4
|
+
body: 12345678
|
5
|
+
manifestation_id: 1
|
6
|
+
identifier_type_id: 1
|
7
|
+
primary: false
|
8
|
+
|
9
|
+
two:
|
10
|
+
body: 99999999
|
11
|
+
manifestation_id: 2
|
12
|
+
identifier_type_id: 2
|
13
|
+
primary: false
|
14
|
+
|
15
|
+
identifier_00001:
|
16
|
+
manifestation_id: 1
|
17
|
+
identifier_type_id: 1
|
18
|
+
body: "4798002062"
|
19
|
+
|
20
|
+
identifier_00002:
|
21
|
+
manifestation_id: 2
|
22
|
+
identifier_type_id: 1
|
23
|
+
body: "4915724824"
|
24
|
+
|
25
|
+
identifier_00003:
|
26
|
+
manifestation_id: 3
|
27
|
+
identifier_type_id: 1
|
28
|
+
body: "4897063590"
|
29
|
+
|
30
|
+
identifier_00004:
|
31
|
+
manifestation_id: 4
|
32
|
+
identifier_type_id: 1
|
33
|
+
body: 0471412791
|
34
|
+
|
35
|
+
identifier_00005:
|
36
|
+
manifestation_id: 7
|
37
|
+
identifier_type_id: 1
|
38
|
+
body: 0470844701
|
39
|
+
|
40
|
+
identifier_00006:
|
41
|
+
manifestation_id: 8
|
42
|
+
identifier_type_id: 1
|
43
|
+
body: "4798101028"
|
44
|
+
|
45
|
+
identifier_00007:
|
46
|
+
manifestation_id: 9
|
47
|
+
identifier_type_id: 1
|
48
|
+
body: "4641143331"
|
49
|
+
|
50
|
+
identifier_00008:
|
51
|
+
manifestation_id: 10
|
52
|
+
identifier_type_id: 1
|
53
|
+
body: "9784774127804"
|
54
|
+
|
55
|
+
identifier_00009:
|
56
|
+
manifestation_id: 21
|
57
|
+
identifier_type_id: 1
|
58
|
+
body: "4822281167"
|
59
|
+
|
60
|
+
identifier_00114:
|
61
|
+
manifestation_id: 114
|
62
|
+
identifier_type_id: 1
|
63
|
+
body: "9784756137470"
|
64
|
+
|
65
|
+
identifier_00116:
|
66
|
+
manifestation_id: 116
|
67
|
+
identifier_type_id: 1
|
68
|
+
body: "9784756100917"
|
69
|
+
|
70
|
+
identifier_00120:
|
71
|
+
manifestation_id: 120
|
72
|
+
identifier_type_id: 1
|
73
|
+
body: "9784274063855"
|
74
|
+
|
75
|
+
identifier_00192:
|
76
|
+
manifestation_id: 192
|
77
|
+
identifier_type_id: 1
|
78
|
+
body: "9784873113241"
|
79
|
+
|
80
|
+
identifier_00193_1:
|
81
|
+
manifestation_id: 193
|
82
|
+
identifier_type_id: 1
|
83
|
+
body: "9784797340044"
|
84
|
+
|
85
|
+
identifier_00193_2:
|
86
|
+
manifestation_id: 193
|
87
|
+
identifier_type_id: 1
|
88
|
+
body: "4797340045"
|
89
|
+
|
90
|
+
identifier_00196:
|
91
|
+
manifestation_id: 196
|
92
|
+
identifier_type_id: 1
|
93
|
+
body: "9784797336610"
|
94
|
+
|
95
|
+
identifier_00201:
|
96
|
+
manifestation_id: 201
|
97
|
+
identifier_type_id: 2
|
98
|
+
body: "09130000"
|
99
|
+
|
100
|
+
# == Schema Information
|
101
|
+
#
|
102
|
+
# Table name: identifiers
|
103
|
+
#
|
104
|
+
# id :integer not null, primary key
|
105
|
+
# body :string(255) not null
|
106
|
+
# identifier_type_id :integer not null
|
107
|
+
# manifestation_id :integer
|
108
|
+
# primary :boolean
|
109
|
+
# position :integer
|
110
|
+
# created_at :datetime not null
|
111
|
+
# updated_at :datetime not null
|
112
|
+
#
|
113
|
+
|
@@ -1,45 +1,43 @@
|
|
1
|
-
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
2
|
-
|
3
1
|
one:
|
4
2
|
id: 1
|
5
3
|
original_title: title1
|
6
|
-
periodical: false
|
7
4
|
position: 1
|
8
5
|
|
9
6
|
two:
|
10
7
|
id: 2
|
11
8
|
original_title: title2
|
12
9
|
title_transcription: テスト
|
13
|
-
periodical: true
|
14
|
-
issn: 09135707
|
15
10
|
position: 2
|
11
|
+
manifestation_id: 202
|
12
|
+
series_master: true
|
16
13
|
|
17
14
|
three:
|
18
15
|
id: 3
|
19
16
|
original_title: テスト雑誌
|
20
|
-
periodical: true
|
21
17
|
position: 3
|
22
|
-
|
18
|
+
manifestation_id: 201
|
23
19
|
|
24
20
|
# == Schema Information
|
25
21
|
#
|
26
22
|
# Table name: series_statements
|
27
23
|
#
|
28
|
-
# id
|
29
|
-
# original_title
|
30
|
-
# numbering
|
31
|
-
# title_subseries
|
32
|
-
# numbering_subseries
|
33
|
-
# position
|
34
|
-
# created_at
|
35
|
-
# updated_at
|
36
|
-
# title_transcription
|
37
|
-
# title_alternative
|
38
|
-
# series_statement_identifier
|
39
|
-
#
|
40
|
-
#
|
41
|
-
#
|
42
|
-
#
|
43
|
-
#
|
24
|
+
# id :integer not null, primary key
|
25
|
+
# original_title :text
|
26
|
+
# numbering :text
|
27
|
+
# title_subseries :text
|
28
|
+
# numbering_subseries :text
|
29
|
+
# position :integer
|
30
|
+
# created_at :datetime not null
|
31
|
+
# updated_at :datetime not null
|
32
|
+
# title_transcription :text
|
33
|
+
# title_alternative :text
|
34
|
+
# series_statement_identifier :string(255)
|
35
|
+
# manifestation_id :integer
|
36
|
+
# note :text
|
37
|
+
# title_subseries_transcription :text
|
38
|
+
# creator_string :text
|
39
|
+
# volume_number_string :text
|
40
|
+
# volume_number_transcription_string :text
|
41
|
+
# series_master :boolean
|
44
42
|
#
|
45
43
|
|
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.
|
4
|
+
version: 0.1.0.pre10
|
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-
|
11
|
+
date: 2013-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -67,33 +67,19 @@ dependencies:
|
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: enju_leaf
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - ~>
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: 1.1.0.rc2
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - ~>
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: enju_library
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ~>
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: 0.1.0.pre21
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ~>
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: 0.1.0.pre21
|
82
|
+
version: 1.1.0.rc2
|
97
83
|
- !ruby/object:Gem::Dependency
|
98
84
|
name: sunspot_solr
|
99
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -109,7 +95,7 @@ dependencies:
|
|
109
95
|
- !ruby/object:Gem::Version
|
110
96
|
version: 2.0.0
|
111
97
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
98
|
+
name: sunspot-rails-tester
|
113
99
|
requirement: !ruby/object:Gem::Requirement
|
114
100
|
requirements:
|
115
101
|
- - '>='
|
@@ -136,6 +122,7 @@ files:
|
|
136
122
|
- app/views/manifestations/list_records.oai.builder
|
137
123
|
- app/views/manifestations/list_sets.oai.builder
|
138
124
|
- app/views/manifestations/show.oai.builder
|
125
|
+
- config/initializers/mime_types.rb
|
139
126
|
- config/routes.rb
|
140
127
|
- lib/enju_oai/engine.rb
|
141
128
|
- lib/enju_oai/oai_controller.rb
|
@@ -175,6 +162,7 @@ files:
|
|
175
162
|
- spec/dummy/config/locales/en.yml
|
176
163
|
- spec/dummy/config/routes.rb
|
177
164
|
- spec/dummy/config.ru
|
165
|
+
- spec/dummy/db/development.sqlite3
|
178
166
|
- spec/dummy/db/migrate/001_create_patrons.rb
|
179
167
|
- spec/dummy/db/migrate/002_devise_create_users.rb
|
180
168
|
- spec/dummy/db/migrate/005_create_manifestations.rb
|
@@ -250,7 +238,6 @@ files:
|
|
250
238
|
- spec/dummy/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb
|
251
239
|
- spec/dummy/db/migrate/20110916091020_add_volume_number_to_manifestation.rb
|
252
240
|
- spec/dummy/db/migrate/20110916103953_add_manifestaiton_id_to_series_statement.rb
|
253
|
-
- spec/dummy/db/migrate/20110918161853_rename_series_statement_manifestation_id_to_root_manifestation_id.rb
|
254
241
|
- spec/dummy/db/migrate/20110918162329_add_note_to_series_statement.rb
|
255
242
|
- spec/dummy/db/migrate/20110927135845_add_missing_since_to_item.rb
|
256
243
|
- spec/dummy/db/migrate/20111009183423_add_ndc_to_manifestation.rb
|
@@ -283,9 +270,15 @@ files:
|
|
283
270
|
- spec/dummy/db/migrate/20120602141129_add_edit_mode_to_patron_import_file.rb
|
284
271
|
- spec/dummy/db/migrate/20120728204337_create_series_statement_relationships.rb
|
285
272
|
- spec/dummy/db/migrate/20121116033446_add_doi_to_manifestation.rb
|
273
|
+
- spec/dummy/db/migrate/20130421093852_add_periodical_to_manifestation.rb
|
274
|
+
- spec/dummy/db/migrate/20130421155019_add_creator_string_to_series_statement.rb
|
275
|
+
- spec/dummy/db/migrate/20130421164124_add_series_master_to_series_statement.rb
|
276
|
+
- spec/dummy/db/migrate/20130429020822_add_root_manifestation_id_to_series_statement.rb
|
277
|
+
- spec/dummy/db/migrate/20130506175303_create_identifier_types.rb
|
278
|
+
- spec/dummy/db/migrate/20130506175834_create_identifiers.rb
|
279
|
+
- spec/dummy/db/migrate/20130509185724_add_statement_of_responsibility_to_manifestation.rb
|
286
280
|
- spec/dummy/db/schema.rb
|
287
281
|
- spec/dummy/db/test.sqlite3
|
288
|
-
- spec/dummy/lib/enju_leaf.rb
|
289
282
|
- spec/dummy/public/404.html
|
290
283
|
- spec/dummy/public/422.html
|
291
284
|
- spec/dummy/public/500.html
|
@@ -303,32 +296,32 @@ files:
|
|
303
296
|
- spec/dummy/solr/conf/spellings.txt
|
304
297
|
- spec/dummy/solr/conf/stopwords.txt
|
305
298
|
- spec/dummy/solr/conf/synonyms.txt
|
306
|
-
- spec/dummy/solr/data/test/index/
|
307
|
-
- spec/dummy/solr/data/test/index/
|
308
|
-
- spec/dummy/solr/data/test/index/
|
309
|
-
- spec/dummy/solr/data/test/index/
|
310
|
-
- spec/dummy/solr/data/test/index/
|
311
|
-
- spec/dummy/solr/data/test/index/
|
312
|
-
- spec/dummy/solr/data/test/index/
|
313
|
-
- spec/dummy/solr/data/test/index/
|
314
|
-
- spec/dummy/solr/data/test/index/
|
315
|
-
- spec/dummy/solr/data/test/index/
|
316
|
-
- spec/dummy/solr/data/test/index/
|
317
|
-
- spec/dummy/solr/data/test/index/
|
318
|
-
- spec/dummy/solr/data/test/index/
|
319
|
-
- spec/dummy/solr/data/test/index/
|
320
|
-
- spec/dummy/solr/data/test/index/
|
321
|
-
- spec/dummy/solr/data/test/index/
|
322
|
-
- spec/dummy/solr/data/test/index/
|
323
|
-
- spec/dummy/solr/data/test/index/
|
324
|
-
- spec/dummy/solr/data/test/index/
|
325
|
-
- spec/dummy/solr/data/test/index/
|
326
|
-
- spec/dummy/solr/data/test/index/
|
327
|
-
- spec/dummy/solr/data/test/index/
|
328
|
-
- spec/dummy/solr/data/test/index/
|
329
|
-
- spec/dummy/solr/data/test/index/
|
299
|
+
- spec/dummy/solr/data/test/index/_43.fdt
|
300
|
+
- spec/dummy/solr/data/test/index/_43.fdx
|
301
|
+
- spec/dummy/solr/data/test/index/_43.fnm
|
302
|
+
- spec/dummy/solr/data/test/index/_43.frq
|
303
|
+
- spec/dummy/solr/data/test/index/_43.nrm
|
304
|
+
- spec/dummy/solr/data/test/index/_43.prx
|
305
|
+
- spec/dummy/solr/data/test/index/_43.tii
|
306
|
+
- spec/dummy/solr/data/test/index/_43.tis
|
307
|
+
- spec/dummy/solr/data/test/index/_44.fdt
|
308
|
+
- spec/dummy/solr/data/test/index/_44.fdx
|
309
|
+
- spec/dummy/solr/data/test/index/_44.fnm
|
310
|
+
- spec/dummy/solr/data/test/index/_44.frq
|
311
|
+
- spec/dummy/solr/data/test/index/_44.nrm
|
312
|
+
- spec/dummy/solr/data/test/index/_44.prx
|
313
|
+
- spec/dummy/solr/data/test/index/_44.tii
|
314
|
+
- spec/dummy/solr/data/test/index/_44.tis
|
315
|
+
- spec/dummy/solr/data/test/index/_45.fdt
|
316
|
+
- spec/dummy/solr/data/test/index/_45.fdx
|
317
|
+
- spec/dummy/solr/data/test/index/_45.fnm
|
318
|
+
- spec/dummy/solr/data/test/index/_45.frq
|
319
|
+
- spec/dummy/solr/data/test/index/_45.nrm
|
320
|
+
- spec/dummy/solr/data/test/index/_45.prx
|
321
|
+
- spec/dummy/solr/data/test/index/_45.tii
|
322
|
+
- spec/dummy/solr/data/test/index/_45.tis
|
330
323
|
- spec/dummy/solr/data/test/index/segments.gen
|
331
|
-
- spec/dummy/solr/data/test/index/
|
324
|
+
- spec/dummy/solr/data/test/index/segments_5v
|
332
325
|
- spec/dummy/solr/data/test/spellchecker/segments.gen
|
333
326
|
- spec/dummy/solr/data/test/spellchecker/segments_1
|
334
327
|
- spec/dummy/tmp/cache/4F7/F90/default_role
|
@@ -347,6 +340,8 @@ files:
|
|
347
340
|
- spec/fixtures/extents.yml
|
348
341
|
- spec/fixtures/form_of_works.yml
|
349
342
|
- spec/fixtures/frequencies.yml
|
343
|
+
- spec/fixtures/identifier_types.yml
|
344
|
+
- spec/fixtures/identifiers.yml
|
350
345
|
- spec/fixtures/import_requests.yml
|
351
346
|
- spec/fixtures/items.yml
|
352
347
|
- spec/fixtures/languages.yml
|
@@ -374,7 +369,6 @@ files:
|
|
374
369
|
- spec/fixtures/resource_import_files.yml
|
375
370
|
- spec/fixtures/resource_import_results.yml
|
376
371
|
- spec/fixtures/roles.yml
|
377
|
-
- spec/fixtures/series_has_manifestations.yml
|
378
372
|
- spec/fixtures/series_statements.yml
|
379
373
|
- spec/fixtures/shelves.yml
|
380
374
|
- spec/fixtures/user_groups.yml
|
@@ -402,7 +396,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
402
396
|
version: 1.3.1
|
403
397
|
requirements: []
|
404
398
|
rubyforge_project:
|
405
|
-
rubygems_version: 2.0.
|
399
|
+
rubygems_version: 2.0.2
|
406
400
|
signing_key:
|
407
401
|
specification_version: 4
|
408
402
|
summary: enju_oai plugin
|
@@ -436,6 +430,7 @@ test_files:
|
|
436
430
|
- spec/dummy/config/locales/en.yml
|
437
431
|
- spec/dummy/config/routes.rb
|
438
432
|
- spec/dummy/config.ru
|
433
|
+
- spec/dummy/db/development.sqlite3
|
439
434
|
- spec/dummy/db/migrate/001_create_patrons.rb
|
440
435
|
- spec/dummy/db/migrate/002_devise_create_users.rb
|
441
436
|
- spec/dummy/db/migrate/005_create_manifestations.rb
|
@@ -511,7 +506,6 @@ test_files:
|
|
511
506
|
- spec/dummy/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb
|
512
507
|
- spec/dummy/db/migrate/20110916091020_add_volume_number_to_manifestation.rb
|
513
508
|
- spec/dummy/db/migrate/20110916103953_add_manifestaiton_id_to_series_statement.rb
|
514
|
-
- spec/dummy/db/migrate/20110918161853_rename_series_statement_manifestation_id_to_root_manifestation_id.rb
|
515
509
|
- spec/dummy/db/migrate/20110918162329_add_note_to_series_statement.rb
|
516
510
|
- spec/dummy/db/migrate/20110927135845_add_missing_since_to_item.rb
|
517
511
|
- spec/dummy/db/migrate/20111009183423_add_ndc_to_manifestation.rb
|
@@ -544,9 +538,15 @@ test_files:
|
|
544
538
|
- spec/dummy/db/migrate/20120602141129_add_edit_mode_to_patron_import_file.rb
|
545
539
|
- spec/dummy/db/migrate/20120728204337_create_series_statement_relationships.rb
|
546
540
|
- spec/dummy/db/migrate/20121116033446_add_doi_to_manifestation.rb
|
541
|
+
- spec/dummy/db/migrate/20130421093852_add_periodical_to_manifestation.rb
|
542
|
+
- spec/dummy/db/migrate/20130421155019_add_creator_string_to_series_statement.rb
|
543
|
+
- spec/dummy/db/migrate/20130421164124_add_series_master_to_series_statement.rb
|
544
|
+
- spec/dummy/db/migrate/20130429020822_add_root_manifestation_id_to_series_statement.rb
|
545
|
+
- spec/dummy/db/migrate/20130506175303_create_identifier_types.rb
|
546
|
+
- spec/dummy/db/migrate/20130506175834_create_identifiers.rb
|
547
|
+
- spec/dummy/db/migrate/20130509185724_add_statement_of_responsibility_to_manifestation.rb
|
547
548
|
- spec/dummy/db/schema.rb
|
548
549
|
- spec/dummy/db/test.sqlite3
|
549
|
-
- spec/dummy/lib/enju_leaf.rb
|
550
550
|
- spec/dummy/public/404.html
|
551
551
|
- spec/dummy/public/422.html
|
552
552
|
- spec/dummy/public/500.html
|
@@ -564,32 +564,32 @@ test_files:
|
|
564
564
|
- spec/dummy/solr/conf/spellings.txt
|
565
565
|
- spec/dummy/solr/conf/stopwords.txt
|
566
566
|
- spec/dummy/solr/conf/synonyms.txt
|
567
|
-
- spec/dummy/solr/data/test/index/
|
568
|
-
- spec/dummy/solr/data/test/index/
|
569
|
-
- spec/dummy/solr/data/test/index/
|
570
|
-
- spec/dummy/solr/data/test/index/
|
571
|
-
- spec/dummy/solr/data/test/index/
|
572
|
-
- spec/dummy/solr/data/test/index/
|
573
|
-
- spec/dummy/solr/data/test/index/
|
574
|
-
- spec/dummy/solr/data/test/index/
|
575
|
-
- spec/dummy/solr/data/test/index/
|
576
|
-
- spec/dummy/solr/data/test/index/
|
577
|
-
- spec/dummy/solr/data/test/index/
|
578
|
-
- spec/dummy/solr/data/test/index/
|
579
|
-
- spec/dummy/solr/data/test/index/
|
580
|
-
- spec/dummy/solr/data/test/index/
|
581
|
-
- spec/dummy/solr/data/test/index/
|
582
|
-
- spec/dummy/solr/data/test/index/
|
583
|
-
- spec/dummy/solr/data/test/index/
|
584
|
-
- spec/dummy/solr/data/test/index/
|
585
|
-
- spec/dummy/solr/data/test/index/
|
586
|
-
- spec/dummy/solr/data/test/index/
|
587
|
-
- spec/dummy/solr/data/test/index/
|
588
|
-
- spec/dummy/solr/data/test/index/
|
589
|
-
- spec/dummy/solr/data/test/index/
|
590
|
-
- spec/dummy/solr/data/test/index/
|
567
|
+
- spec/dummy/solr/data/test/index/_43.fdt
|
568
|
+
- spec/dummy/solr/data/test/index/_43.fdx
|
569
|
+
- spec/dummy/solr/data/test/index/_43.fnm
|
570
|
+
- spec/dummy/solr/data/test/index/_43.frq
|
571
|
+
- spec/dummy/solr/data/test/index/_43.nrm
|
572
|
+
- spec/dummy/solr/data/test/index/_43.prx
|
573
|
+
- spec/dummy/solr/data/test/index/_43.tii
|
574
|
+
- spec/dummy/solr/data/test/index/_43.tis
|
575
|
+
- spec/dummy/solr/data/test/index/_44.fdt
|
576
|
+
- spec/dummy/solr/data/test/index/_44.fdx
|
577
|
+
- spec/dummy/solr/data/test/index/_44.fnm
|
578
|
+
- spec/dummy/solr/data/test/index/_44.frq
|
579
|
+
- spec/dummy/solr/data/test/index/_44.nrm
|
580
|
+
- spec/dummy/solr/data/test/index/_44.prx
|
581
|
+
- spec/dummy/solr/data/test/index/_44.tii
|
582
|
+
- spec/dummy/solr/data/test/index/_44.tis
|
583
|
+
- spec/dummy/solr/data/test/index/_45.fdt
|
584
|
+
- spec/dummy/solr/data/test/index/_45.fdx
|
585
|
+
- spec/dummy/solr/data/test/index/_45.fnm
|
586
|
+
- spec/dummy/solr/data/test/index/_45.frq
|
587
|
+
- spec/dummy/solr/data/test/index/_45.nrm
|
588
|
+
- spec/dummy/solr/data/test/index/_45.prx
|
589
|
+
- spec/dummy/solr/data/test/index/_45.tii
|
590
|
+
- spec/dummy/solr/data/test/index/_45.tis
|
591
591
|
- spec/dummy/solr/data/test/index/segments.gen
|
592
|
-
- spec/dummy/solr/data/test/index/
|
592
|
+
- spec/dummy/solr/data/test/index/segments_5v
|
593
593
|
- spec/dummy/solr/data/test/spellchecker/segments.gen
|
594
594
|
- spec/dummy/solr/data/test/spellchecker/segments_1
|
595
595
|
- spec/dummy/tmp/cache/4F7/F90/default_role
|
@@ -608,6 +608,8 @@ test_files:
|
|
608
608
|
- spec/fixtures/extents.yml
|
609
609
|
- spec/fixtures/form_of_works.yml
|
610
610
|
- spec/fixtures/frequencies.yml
|
611
|
+
- spec/fixtures/identifier_types.yml
|
612
|
+
- spec/fixtures/identifiers.yml
|
611
613
|
- spec/fixtures/import_requests.yml
|
612
614
|
- spec/fixtures/items.yml
|
613
615
|
- spec/fixtures/languages.yml
|
@@ -635,7 +637,6 @@ test_files:
|
|
635
637
|
- spec/fixtures/resource_import_files.yml
|
636
638
|
- spec/fixtures/resource_import_results.yml
|
637
639
|
- spec/fixtures/roles.yml
|
638
|
-
- spec/fixtures/series_has_manifestations.yml
|
639
640
|
- spec/fixtures/series_statements.yml
|
640
641
|
- spec/fixtures/shelves.yml
|
641
642
|
- spec/fixtures/user_groups.yml
|
@@ -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
|
data/spec/dummy/lib/enju_leaf.rb
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
require 'nkf'
|
2
|
-
require 'enju_leaf/calculate_stat'
|
3
|
-
require 'enju_leaf/expire_fragment_cache'
|
4
|
-
require 'enju_leaf/expire_editable_fragment'
|
5
|
-
require 'enju_leaf/import_file'
|
6
|
-
require 'enju_leaf/master_model'
|
7
|
-
require 'enju_leaf/localized_name'
|
8
|
-
require 'enju_leaf/url_validator'
|
Binary file
|
Binary file
|
Binary file
|
@@ -1 +0,0 @@
|
|
1
|
-
NRM�vruwvvuur|xutttttwwuuuuuuxx||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||xtt|uuutt||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||vruwvvuur|xu||tttwwuuuuuuxx|||||y|||��|||||||���������||||||||||||xw|||||||||||||||||||||||||y||||||||||||||||||||||||||tt|||||||||||||
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,35 +0,0 @@
|
|
1
|
-
---
|
2
|
-
series_has_manifestation_00001:
|
3
|
-
updated_at: 2008-01-11 23:28:19.277110 +09:00
|
4
|
-
manifestation_id: 1
|
5
|
-
series_statement_id: 1
|
6
|
-
id: 1
|
7
|
-
position: 1
|
8
|
-
created_at: 2008-01-11 23:28:19.277110 +09:00
|
9
|
-
series_has_manifestation_00002:
|
10
|
-
updated_at: 2008-01-11 23:28:57.068191 +09:00
|
11
|
-
manifestation_id: 202
|
12
|
-
series_statement_id: 2
|
13
|
-
id: 2
|
14
|
-
position: 1
|
15
|
-
created_at: 2008-01-11 23:28:57.068191 +09:00
|
16
|
-
series_has_manifestation_00003:
|
17
|
-
updated_at: 2008-01-11 23:32:03.701425 +09:00
|
18
|
-
manifestation_id: 203
|
19
|
-
series_statement_id: 3
|
20
|
-
id: 3
|
21
|
-
position: 1
|
22
|
-
created_at: 2008-01-11 23:32:03.701425 +09:00
|
23
|
-
|
24
|
-
# == Schema Information
|
25
|
-
#
|
26
|
-
# Table name: series_has_manifestations
|
27
|
-
#
|
28
|
-
# id :integer not null, primary key
|
29
|
-
# series_statement_id :integer
|
30
|
-
# manifestation_id :integer
|
31
|
-
# position :integer
|
32
|
-
# created_at :datetime
|
33
|
-
# updated_at :datetime
|
34
|
-
#
|
35
|
-
|