enju_biblio 0.1.0.pre69 → 0.1.0.pre70
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/items_controller.rb +5 -5
- data/app/controllers/manifestations_controller.rb +10 -85
- data/app/controllers/resource_import_files_controller.rb +1 -0
- data/app/models/enju_biblio/ability.rb +29 -19
- data/app/models/manifestation.rb +38 -11
- data/app/models/resource_import_file.rb +35 -12
- data/app/models/resource_import_file_state_machine.rb +1 -1
- data/app/views/agent_types/_form.html.erb +2 -1
- data/app/views/agents/_form.html.erb +1 -1
- data/app/views/import_requests/new.html.erb +2 -2
- data/app/views/items/_form.html.erb +7 -0
- data/app/views/items/edit.html.erb +0 -1
- data/app/views/items/new.html.erb +0 -1
- data/app/views/manifestations/_colorbox.html.erb +5 -0
- data/app/views/manifestations/_export_detail.html.erb +7 -0
- data/app/views/manifestations/_export_list.html.erb +6 -0
- data/app/views/manifestations/_manifestation.txt.erb +1 -0
- data/app/views/manifestations/index.html.erb +1 -0
- data/app/views/manifestations/index.txt.erb +2 -4
- data/app/views/manifestations/show.html.erb +2 -5
- data/app/views/manifestations/show.txt.erb +2 -0
- data/app/views/resource_import_files/_results.html.erb +23 -0
- data/app/views/resource_import_files/new.html.erb +2 -0
- data/app/views/resource_import_files/show.html.erb +8 -12
- data/app/views/resource_import_results/_list.html.erb +26 -0
- data/app/views/resource_import_results/_list_lines.html.erb +25 -0
- data/app/views/resource_import_results/index.html.erb +3 -30
- data/app/views/resource_import_results/show.html.erb +1 -1
- data/config/locales/translation_en.yml +8 -5
- data/config/locales/translation_ja.yml +4 -1
- data/lib/enju_biblio/version.rb +1 -1
- data/spec/cassette_library/ResourceImportFile/when_its_mode_is_create_/ISBN_import/with_record_not_found/should_record_an_error_message.yml +155 -0
- data/spec/cassette_library/ResourceImportFile/when_its_mode_is_create_/when_it_has_only_isbn/should_be_imported.yml +464 -374
- data/spec/cassette_library/ResourceImportFile/when_its_mode_is_create_/when_it_is_written_in_shift_jis/should_be_imported.yml +232 -159
- data/spec/cassette_library/ResourceImportFile/when_its_mode_is_create_/when_it_is_written_in_utf-8/should_be_imported.yml +234 -161
- data/spec/cassette_library/ResourceImportFile/when_its_mode_is_create_/when_it_is_written_in_utf-8/should_send_message_when_import_is_completed.yml +234 -163
- data/spec/controllers/agent_types_controller_spec.rb +5 -0
- data/spec/controllers/content_types_controller_spec.rb +7 -0
- data/spec/controllers/frequencies_controller_spec.rb +7 -0
- data/spec/controllers/items_controller_spec.rb +18 -0
- data/spec/controllers/manifestations_controller_spec.rb +30 -0
- data/spec/factories/classification.rb +6 -0
- data/spec/fixtures/items.yml +2 -0
- data/spec/models/manifestation_spec.rb +16 -0
- data/spec/models/resource_export_file_spec.rb +19 -0
- data/spec/models/resource_import_file_spec.rb +58 -0
- data/spec/views/resource_import_files/index.html.erb_spec.rb +19 -0
- data/spec/views/resource_import_files/show.html.erb_spec.erb +27 -0
- data/spec/views/resource_import_results/index.html.erb_spec.rb +32 -0
- data/spec/views/resource_import_results/show.html.erb_spec.erb +27 -0
- metadata +427 -407
@@ -27,11 +27,7 @@
|
|
27
27
|
<li><%= link_to t('page.new', model: t('activerecord.models.picture_file')), new_picture_file_path(manifestation_id: @manifestation.id) -%></li>
|
28
28
|
<%- end -%>
|
29
29
|
</ul>
|
30
|
-
|
31
|
-
$(document).ready(function(){
|
32
|
-
$("a[rel='manifestation_<%= @manifestation.id -%>']").colorbox({transition:"none", photo:true});
|
33
|
-
})
|
34
|
-
</script>
|
30
|
+
<%= render 'manifestations/colorbox' %>
|
35
31
|
<%- if user_signed_in? -%>
|
36
32
|
<div id="call_number_content">
|
37
33
|
<%- @manifestation.items.on_shelf.each do |item| -%>
|
@@ -78,5 +74,6 @@
|
|
78
74
|
<%- if current_user.try(:has_role?, 'Librarian') -%>
|
79
75
|
<%= render 'manifestations/edit_detail' %>
|
80
76
|
<% end %>
|
77
|
+
<%= render 'manifestations/export_detail' %>
|
81
78
|
</div>
|
82
79
|
</div>
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<h2><%= t('activerecord.models.resource_import_result') %></h2>
|
2
|
+
<table class="table table-striped index">
|
3
|
+
<tr>
|
4
|
+
<th><%= t('activerecord.attributes.resource_import_result.lineno') %></th>
|
5
|
+
<th><%= t('activerecord.attributes.resource_import_result.body') %></th>
|
6
|
+
<th><%= t('activerecord.models.manifestation') %></th>
|
7
|
+
<th><%= t('activerecord.models.item') %></th>
|
8
|
+
<th></th>
|
9
|
+
</tr>
|
10
|
+
<% @resource_import_results.each_with_index do |resource_import_result, idx| %>
|
11
|
+
<tr class="line<%= cycle("0", "1") -%>">
|
12
|
+
<td><%= @resource_import_results.offset_value + idx + 1 %></td>
|
13
|
+
<td><%= resource_import_result.body.inspect.truncate(100) %></td>
|
14
|
+
<td><%= link_to resource_import_result.manifestation.original_title, resource_import_result.manifestation if resource_import_result.manifestation %></td>
|
15
|
+
<td><%= link_to resource_import_result.item.item_identifier, resource_import_result.item if resource_import_result.item %></td>
|
16
|
+
<td>
|
17
|
+
<%= link_to t('page.show'), resource_import_result %>
|
18
|
+
<%= link_to t('page.destroy'), resource_import_result, data: {confirm: t('page.are_you_sure')}, method: :delete %>
|
19
|
+
</td>
|
20
|
+
</tr>
|
21
|
+
<% end %>
|
22
|
+
</table>
|
23
|
+
<%= paginate(@resource_import_results) %>
|
@@ -18,8 +18,10 @@
|
|
18
18
|
<%= f.label :edit_mode, t('page.update'), value: 'update' %>
|
19
19
|
<%= f.radio_button :edit_mode, 'update_relationship' %>
|
20
20
|
<%= f.label :edit_mode, t('resource_import_file.update_relationship'), value: 'update_relationship' %>
|
21
|
+
<!--
|
21
22
|
<%= f.radio_button :edit_mode, 'destroy' %>
|
22
23
|
<%= f.label :edit_mode, t('page.destroy'), value: 'destroy' %>
|
24
|
+
-->
|
23
25
|
</div>
|
24
26
|
|
25
27
|
<div class="field">
|
@@ -10,12 +10,10 @@
|
|
10
10
|
|
11
11
|
<p>
|
12
12
|
<strong><%= t('activerecord.attributes.resource_import_file.resource_import_file_name') -%>:</strong>
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
<strong><%= t('activerecord.attributes.resource_import_file.resource_import_content_type') -%>:</strong>
|
18
|
-
<%= @resource_import_file.resource_import_content_type -%>
|
13
|
+
<% if @resource_import_file.resource_import_file_name %>
|
14
|
+
<%= link_to @resource_import_file.resource_import_file_name, resource_import_file_path(@resource_import_file, format: :download) %>
|
15
|
+
(<%= @resource_import_file.resource_import_content_type -%>)
|
16
|
+
<% end %>
|
19
17
|
</p>
|
20
18
|
|
21
19
|
<p>
|
@@ -23,11 +21,6 @@
|
|
23
21
|
<%= @resource_import_file.resource_import_file_size -%>
|
24
22
|
</p>
|
25
23
|
|
26
|
-
<p>
|
27
|
-
<strong><%= t('activerecord.attributes.resource_import_file.resource_import_fingerprint') -%>:</strong>
|
28
|
-
<%= @resource_import_file.resource_import_fingerprint -%>
|
29
|
-
</p>
|
30
|
-
|
31
24
|
<p>
|
32
25
|
<strong><%= t('page.created_at') -%>:</strong>
|
33
26
|
<%= l(@resource_import_file.created_at) if @resource_import_file.created_at -%>
|
@@ -77,13 +70,16 @@
|
|
77
70
|
<%= link_to @resource_import_file.user.username, @resource_import_file.user.profile if @resource_import_file.user.try(:profile) -%>
|
78
71
|
</p>
|
79
72
|
|
73
|
+
<% if @resource_import_results %>
|
74
|
+
<%= render 'results' %>
|
75
|
+
<% end %>
|
76
|
+
|
80
77
|
</div>
|
81
78
|
</div>
|
82
79
|
|
83
80
|
<div id="submenu" class="ui-corner-all ui-widget-content">
|
84
81
|
<%= form_for(@resource_import_file) do |f| %>
|
85
82
|
<ul>
|
86
|
-
<li><%= link_to t('activerecord.models.resource_import_result'), resource_import_results_path(resource_import_file_id: @resource_import_file.id) -%></li>
|
87
83
|
<li><%= back_to_index(flash[:page_info]) -%></li>
|
88
84
|
<% if current_user.has_role?('Administrator') %>
|
89
85
|
<li><%= link_to 'Resque', resque_path %></li>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<table class="table table-striped index">
|
2
|
+
<tr>
|
3
|
+
<th><%= t('activerecord.models.resource_import_file') %></th>
|
4
|
+
<th><%= t('activerecord.models.manifestation') %></th>
|
5
|
+
<th><%= t('activerecord.models.item') %></th>
|
6
|
+
<th></th>
|
7
|
+
</tr>
|
8
|
+
|
9
|
+
<% @resource_import_results.each do |resource_import_result| %>
|
10
|
+
<tr class="line<%= cycle("0", "1") -%>">
|
11
|
+
<td>
|
12
|
+
<%= link_to resource_import_result.resource_import_file.resource_import_file_name, resource_import_result.resource_import_file if resource_import_result.resource_import_file %>
|
13
|
+
<br />
|
14
|
+
<%=l resource_import_result.created_at %>
|
15
|
+
<br />
|
16
|
+
<%= resource_import_result.error_message %>
|
17
|
+
</td>
|
18
|
+
<td><%= link_to resource_import_result.manifestation.original_title, resource_import_result.manifestation if resource_import_result.manifestation %></td>
|
19
|
+
<td><%= link_to resource_import_result.item.item_identifier, resource_import_result.item if resource_import_result.item %></td>
|
20
|
+
<td>
|
21
|
+
<%= link_to t('page.show'), resource_import_result %>
|
22
|
+
<%= link_to t('page.destroy'), resource_import_result, data: {confirm: t('page.are_you_sure')}, method: :delete %>
|
23
|
+
</td>
|
24
|
+
</tr>
|
25
|
+
<% end %>
|
26
|
+
</table>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<ul>
|
2
|
+
<li><%= t('activerecord.models.resource_import_file') %>: <%= link_to @resource_import_file.resource_import_file_name, @resource_import_file %>
|
3
|
+
<li><%= t('page.created_at') %>: <%= l(@resource_import_file.created_at) %>
|
4
|
+
</h2>
|
5
|
+
<table class="table table-striped index">
|
6
|
+
<tr>
|
7
|
+
<th><%= t('activerecord.attributes.resource_import_result.lineno') %></th>
|
8
|
+
<th><%= t('activerecord.attributes.resource_import_result.body') %></th>
|
9
|
+
<th><%= t('activerecord.models.manifestation') %></th>
|
10
|
+
<th><%= t('activerecord.models.item') %></th>
|
11
|
+
<th></th>
|
12
|
+
</tr>
|
13
|
+
<% @resource_import_results.each_with_index do |resource_import_result, idx| %>
|
14
|
+
<tr class="line<%= cycle("0", "1") -%>">
|
15
|
+
<td><%= @resource_import_results.offset_value + idx + 1 %></td>
|
16
|
+
<td><%= resource_import_result.body.inspect.truncate(100) %></td>
|
17
|
+
<td><%= link_to resource_import_result.manifestation.original_title, resource_import_result.manifestation if resource_import_result.manifestation %></td>
|
18
|
+
<td><%= link_to resource_import_result.item.item_identifier, resource_import_result.item if resource_import_result.item %></td>
|
19
|
+
<td>
|
20
|
+
<%= link_to t('page.show'), resource_import_result %>
|
21
|
+
<%= link_to t('page.destroy'), resource_import_result, data: {confirm: t('page.are_you_sure')}, method: :delete %>
|
22
|
+
</td>
|
23
|
+
</tr>
|
24
|
+
<% end %>
|
25
|
+
</table>
|
@@ -2,38 +2,11 @@
|
|
2
2
|
<h1 class="title"><%= t('page.listing', model: t('activerecord.models.resource_import_result')) -%></h1>
|
3
3
|
<div id="content_list">
|
4
4
|
<% if @resource_import_file %>
|
5
|
-
|
6
|
-
|
7
|
-
|
5
|
+
<%= render "list_lines" %>
|
6
|
+
<% else %>
|
7
|
+
<%= render "list" %>
|
8
8
|
<% end %>
|
9
9
|
|
10
|
-
<table class="table table-striped index">
|
11
|
-
<tr>
|
12
|
-
<th><%= t('activerecord.models.resource_import_file') %></th>
|
13
|
-
<th><%= t('activerecord.models.manifestation') %></th>
|
14
|
-
<th><%= t('activerecord.models.item') %></th>
|
15
|
-
<th></th>
|
16
|
-
</tr>
|
17
|
-
|
18
|
-
<% @resource_import_results.each do |resource_import_result| %>
|
19
|
-
<tr class="line<%= cycle("0", "1") -%>">
|
20
|
-
<td>
|
21
|
-
<%= link_to resource_import_result.resource_import_file.resource_import_file_name, resource_import_result.resource_import_file %>
|
22
|
-
<br />
|
23
|
-
<%=l resource_import_result.created_at %>
|
24
|
-
<br />
|
25
|
-
<%= resource_import_result.error_message %>
|
26
|
-
</td>
|
27
|
-
<td><%= link_to resource_import_result.manifestation.original_title, resource_import_result.manifestation if resource_import_result.manifestation %></td>
|
28
|
-
<td><%= link_to resource_import_result.item.item_identifier, resource_import_result.item if resource_import_result.item %></td>
|
29
|
-
<td>
|
30
|
-
<%= link_to t('page.show'), resource_import_result %>
|
31
|
-
<%= link_to t('page.destroy'), resource_import_result, data: {confirm: t('page.are_you_sure')}, method: :delete %>
|
32
|
-
</td>
|
33
|
-
</tr>
|
34
|
-
<% end %>
|
35
|
-
</table>
|
36
|
-
|
37
10
|
<%= paginate(@resource_import_results) %>
|
38
11
|
|
39
12
|
</div>
|
@@ -39,14 +39,14 @@ en:
|
|
39
39
|
resource_export_file: Resource export
|
40
40
|
agent_export_file: Agent export
|
41
41
|
agent_merge_list: Patron merge list
|
42
|
-
agent_merge:
|
42
|
+
agent_merge: Patron merge
|
43
43
|
series_statement_merge: Series statement merge
|
44
44
|
series_statement_merge_list: Series statement merge list
|
45
45
|
|
46
46
|
attributes:
|
47
47
|
manifestation:
|
48
48
|
original_title: Original title
|
49
|
-
title_alternative:
|
49
|
+
title_alternative: Title alternative
|
50
50
|
title_transcription: Title transcription
|
51
51
|
classification_number: Classification number
|
52
52
|
manifestation_identifier: Local manifestation identifier
|
@@ -296,6 +296,7 @@ en:
|
|
296
296
|
resource_import_result:
|
297
297
|
body: Body
|
298
298
|
error_message: Error message
|
299
|
+
lineno: Line
|
299
300
|
agent_import_result:
|
300
301
|
body: Body
|
301
302
|
create_type:
|
@@ -338,7 +339,7 @@ en:
|
|
338
339
|
contributor: Contributor
|
339
340
|
publisher: Publisher
|
340
341
|
library_group_agent: "Agents of %{library_group_name}"
|
341
|
-
work_agent: "
|
342
|
+
work_agent: "Creators of %{work_title}"
|
342
343
|
expression_agent: "Realizers of %{expression_title}"
|
343
344
|
manifestation_agent: "Producers of %{manifestation_title}"
|
344
345
|
activate_as_user: "Activate as an user"
|
@@ -348,7 +349,7 @@ en:
|
|
348
349
|
recent_publication: "Recent publications"
|
349
350
|
all_publication: "All publications"
|
350
351
|
other_address: "The other address"
|
351
|
-
add_derivation: "Add
|
352
|
+
add_derivation: "Add derivation"
|
352
353
|
creator: "Creator"
|
353
354
|
contributor: "Contributor"
|
354
355
|
publisher: "Publisher"
|
@@ -373,7 +374,7 @@ en:
|
|
373
374
|
serial: "Serial"
|
374
375
|
number: "Number"
|
375
376
|
invalid_isbn: "Invalid ISBN."
|
376
|
-
already_imported: "This manifestation is already
|
377
|
+
already_imported: "This manifestation is already imported."
|
377
378
|
record_not_found: "Record not found."
|
378
379
|
add: "Add a manifestation"
|
379
380
|
specify_expression: "Specify the expression."
|
@@ -422,3 +423,5 @@ en:
|
|
422
423
|
import:
|
423
424
|
manifestation_found: 'Manifestation skipped: This manifestation is already created.'
|
424
425
|
item_found: 'Item skipped: This item is already created.'
|
426
|
+
isbn_invalid: "ISBN import error: ISBN string is invalid."
|
427
|
+
isbn_record_not_found: "ISBN import error: Bibliographic record is not found in the external service."
|
@@ -130,7 +130,7 @@ ja:
|
|
130
130
|
corporate_name_transcription: 企業名(ヨミ)
|
131
131
|
full_name: フルネーム
|
132
132
|
full_name_transcription: フルネーム(ヨミ)
|
133
|
-
full_name_alternative:
|
133
|
+
full_name_alternative: フルネーム(代替)
|
134
134
|
deleted_at: 削除時刻
|
135
135
|
zip_code_1: 郵便番号1
|
136
136
|
zip_code_2: 郵便番号2
|
@@ -296,6 +296,7 @@ ja:
|
|
296
296
|
resource_import_result:
|
297
297
|
body: 本文
|
298
298
|
error_message: エラーメッセージ
|
299
|
+
lineno: 行数
|
299
300
|
agent_import_result:
|
300
301
|
body: 本文
|
301
302
|
create_type:
|
@@ -426,3 +427,5 @@ ja:
|
|
426
427
|
import:
|
427
428
|
manifestation_found: "書誌インポート省略: すでに登録されている書誌が見つかりました。"
|
428
429
|
item_found: "所蔵インポート省略: すでに登録されている個別資料が見つかりました。"
|
430
|
+
isbn_invalid: "ISBNインポートエラー: ISBNは不正な値です。"
|
431
|
+
isbn_record_not_found: "ISBNインポートエラー: 外部サービスにおいてISBNに該当する書誌データが見つかりませんでした。"
|
data/lib/enju_biblio/version.rb
CHANGED
@@ -0,0 +1,155 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://iss.ndl.go.jp/api/opensearch?cnt=10&dpid=iss-ndl-opac&idx=1&isbn=9780007264551&mediatype=1
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Mon, 28 Sep 2015 14:41:02 GMT
|
23
|
+
Server:
|
24
|
+
- Apache
|
25
|
+
Etag:
|
26
|
+
- '"6d8b9fb05e8e3326ec58042e6b4da79a"'
|
27
|
+
X-Ua-Compatible:
|
28
|
+
- IE=Edge,chrome=1
|
29
|
+
X-Runtime:
|
30
|
+
- '0.023824'
|
31
|
+
Cache-Control:
|
32
|
+
- max-age=0, private, must-revalidate
|
33
|
+
Status:
|
34
|
+
- '200'
|
35
|
+
Content-Type:
|
36
|
+
- application/xml; charset=utf-8
|
37
|
+
Set-Cookie:
|
38
|
+
- _front_session_id=15de94ec0513f4dd3ad244bdfe6ae042; domain=.iss.ndl.go.jp;
|
39
|
+
path=/; expires=Mon, 28-Sep-2015 15:41:02 GMT; HttpOnly
|
40
|
+
- serverid=1101; path=/
|
41
|
+
Vary:
|
42
|
+
- Accept-Encoding,User-Agent
|
43
|
+
X-Content-Type-Options:
|
44
|
+
- nosniff
|
45
|
+
X-Frame-Options:
|
46
|
+
- SAMEORIGIN
|
47
|
+
Content-Length:
|
48
|
+
- '512'
|
49
|
+
Connection:
|
50
|
+
- close
|
51
|
+
body:
|
52
|
+
encoding: ASCII-8BIT
|
53
|
+
string: !binary |-
|
54
|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vbGluaz4KICAgIDxkZXNjcmlwdGlvbj5TZWFyY2ggcmVzdWx0
|
70
|
+
cyBmb3IgaXNibj05NzgwMDA3MjY0NTUxIG1lZGlhdHlwZT0xIGNudD0xMCBk
|
71
|
+
cGlkPWlzcy1uZGwtb3BhYyA8L2Rlc2NyaXB0aW9uPgogICAgPGxhbmd1YWdl
|
72
|
+
PmphPC9sYW5ndWFnZT4KICAgIDxvcGVuU2VhcmNoOnRvdGFsUmVzdWx0cz4w
|
73
|
+
PC9vcGVuU2VhcmNoOnRvdGFsUmVzdWx0cz4KICAgIDxvcGVuU2VhcmNoOnN0
|
74
|
+
YXJ0SW5kZXg+MTwvb3BlblNlYXJjaDpzdGFydEluZGV4PgogICAgPG9wZW5T
|
75
|
+
ZWFyY2g6aXRlbXNQZXJQYWdlPjEwPC9vcGVuU2VhcmNoOml0ZW1zUGVyUGFn
|
76
|
+
ZT4KICA8L2NoYW5uZWw+CjwvcnNzPgo=
|
77
|
+
http_version:
|
78
|
+
recorded_at: Mon, 28 Sep 2015 05:58:13 GMT
|
79
|
+
- request:
|
80
|
+
method: get
|
81
|
+
uri: http://iss.ndl.go.jp/api/opensearch?cnt=10&dpid=iss-ndl-opac&idx=1&isbn=0007264550&mediatype=1
|
82
|
+
body:
|
83
|
+
encoding: US-ASCII
|
84
|
+
string: ''
|
85
|
+
headers:
|
86
|
+
Accept-Encoding:
|
87
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
88
|
+
Accept:
|
89
|
+
- "*/*"
|
90
|
+
User-Agent:
|
91
|
+
- Ruby
|
92
|
+
response:
|
93
|
+
status:
|
94
|
+
code: 200
|
95
|
+
message: OK
|
96
|
+
headers:
|
97
|
+
Date:
|
98
|
+
- Mon, 28 Sep 2015 14:41:12 GMT
|
99
|
+
Server:
|
100
|
+
- Apache
|
101
|
+
Etag:
|
102
|
+
- '"a7f7f17b9ec21ae047b47de09e967682"'
|
103
|
+
X-Ua-Compatible:
|
104
|
+
- IE=Edge,chrome=1
|
105
|
+
X-Runtime:
|
106
|
+
- '0.023121'
|
107
|
+
Cache-Control:
|
108
|
+
- max-age=0, private, must-revalidate
|
109
|
+
Status:
|
110
|
+
- '200'
|
111
|
+
Content-Type:
|
112
|
+
- application/xml; charset=utf-8
|
113
|
+
Set-Cookie:
|
114
|
+
- _front_session_id=11f029fc0a16dbd8ee7e507cea72c62e; domain=.iss.ndl.go.jp;
|
115
|
+
path=/; expires=Mon, 28-Sep-2015 15:41:12 GMT; HttpOnly
|
116
|
+
- serverid=1102; path=/
|
117
|
+
Vary:
|
118
|
+
- Accept-Encoding,User-Agent
|
119
|
+
X-Content-Type-Options:
|
120
|
+
- nosniff
|
121
|
+
X-Frame-Options:
|
122
|
+
- SAMEORIGIN
|
123
|
+
Content-Length:
|
124
|
+
- '508'
|
125
|
+
Connection:
|
126
|
+
- close
|
127
|
+
body:
|
128
|
+
encoding: ASCII-8BIT
|
129
|
+
string: !binary |-
|
130
|
+
PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHJzcyB4
|
131
|
+
bWxuczpkY3Rlcm1zPSJodHRwOi8vcHVybC5vcmcvZGMvdGVybXMvIiB4bWxu
|
132
|
+
czpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRh
|
133
|
+
eC1ucyMiIHhtbG5zOmRjbmRsPSJodHRwOi8vbmRsLmdvLmpwL2RjbmRsL3Rl
|
134
|
+
cm1zLyIgdmVyc2lvbj0iMi4wIiB4bWxuczpkYz0iaHR0cDovL3B1cmwub3Jn
|
135
|
+
L2RjL2VsZW1lbnRzLzEuMS8iIHhtbG5zOm9wZW5TZWFyY2g9Imh0dHA6Ly9h
|
136
|
+
OS5jb20vLS9zcGVjL29wZW5zZWFyY2hyc3MvMS4wLyIgeG1sbnM6eHNpPSJo
|
137
|
+
dHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5jZSIgeG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