enju_flower 0.1.0.pre20 → 0.1.0.pre21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +3 -0
- data/app/views/manifestations/_index_form_series_statement.html.erb +1 -1
- data/app/views/manifestations/_manifestation.html.erb +4 -1
- data/app/views/manifestations/_show_detail_librarian.html.erb +3 -1
- data/app/views/manifestations/_show_holding.html.erb +5 -0
- data/app/views/manifestations/index.html.erb +7 -2
- data/app/views/manifestations/index.mobile.erb +1 -1
- data/app/views/manifestations/index.rdf.builder +1 -1
- data/app/views/manifestations/index.rss.builder +3 -3
- data/app/views/manifestations/index.sru.builder +1 -1
- data/app/views/manifestations/show.html.erb +1 -1
- data/app/views/manifestations/show.mobile.erb +1 -1
- data/app/views/manifestations/show.mods.builder +1 -1
- data/app/views/manifestations/show.rdf.builder +1 -1
- data/lib/enju_flower/version.rb +1 -1
- data/spec/controllers/manifestations_controller_spec.rb +115 -116
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/bin/setup +29 -0
- data/spec/dummy/config/application.rb +1 -1
- data/spec/dummy/config/database.yml +23 -18
- data/spec/dummy/config/environments/test.rb +1 -1
- data/spec/dummy/db/migrate/20140518050147_create_reserve_transitions.rb +5 -1
- data/spec/dummy/db/migrate/20140519170214_create_resource_import_file_transitions.rb +5 -1
- data/spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb +5 -1
- data/spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb +5 -1
- data/spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb +5 -1
- data/spec/dummy/db/migrate/20140524135607_create_bookmark_stat_transitions.rb +5 -1
- data/spec/dummy/db/migrate/20140528045518_create_user_checkout_stat_transitions.rb +5 -1
- data/spec/dummy/db/migrate/20140528045539_create_user_reserve_stat_transitions.rb +5 -1
- data/spec/dummy/db/migrate/20140528045600_create_manifestation_checkout_stat_transitions.rb +5 -1
- data/spec/dummy/db/migrate/20140528045617_create_manifestation_reserve_stat_transitions.rb +5 -1
- data/spec/dummy/db/migrate/20140614141500_create_resource_export_file_transitions.rb +5 -1
- data/spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb +5 -1
- data/spec/dummy/db/migrate/20141003181336_add_full_name_transcription_to_profile.rb +5 -0
- data/spec/dummy/db/migrate/20141003182825_add_date_of_birth_to_profile.rb +5 -0
- data/spec/dummy/db/migrate/20141014065831_add_shelf_id_to_checkout.rb +6 -0
- data/spec/dummy/db/schema.rb +5 -1
- data/spec/factories/agent.rb +1 -1
- data/spec/factories/create_types.rb +1 -1
- data/spec/factories/item.rb +8 -0
- data/spec/factories/produce_types.rb +1 -1
- data/spec/factories/realize_types.rb +1 -1
- data/spec/factories/series_statement.rb +5 -0
- data/spec/fixtures/agent_relationship_types.yml +5 -6
- data/spec/fixtures/agent_types.yml +5 -6
- data/spec/fixtures/agents.yml +0 -1
- data/spec/fixtures/carrier_types.yml +18 -19
- data/spec/fixtures/checkout_types.yml +34 -0
- data/spec/fixtures/circulation_statuses.yml +136 -0
- data/spec/fixtures/content_types.yml +80 -18
- data/spec/fixtures/frequencies.yml +34 -51
- data/spec/fixtures/identifier_types.yml +9 -3
- data/spec/fixtures/identifiers.yml +9 -3
- data/spec/fixtures/manifestations.yml +129 -119
- data/spec/fixtures/medium_of_performances.yml +4 -5
- data/spec/fixtures/profiles.yml +1 -1
- data/spec/fixtures/use_restrictions.yml +93 -0
- data/spec/fixtures/user_groups.yml +2 -2
- data/spec/fixtures/users.yml +4 -1
- data/spec/spec_helper.rb +4 -0
- data/spec/views/manifestations/index.html.erb_spec.rb +59 -0
- metadata +72 -158
- data/app/helpers/manifestations_helper.rb +0 -176
- data/app/views/manifestations/_submenu_parent.html.erb +0 -8
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/script/rails +0 -6
- data/spec/dummy/solr/conf/admin-extra.html +0 -31
- data/spec/dummy/solr/conf/elevate.xml +0 -36
- data/spec/dummy/solr/conf/mapping-ISOLatin1Accent.txt +0 -246
- data/spec/dummy/solr/conf/protwords.txt +0 -21
- data/spec/dummy/solr/conf/schema.xml +0 -255
- data/spec/dummy/solr/conf/scripts.conf +0 -24
- data/spec/dummy/solr/conf/solrconfig.xml +0 -667
- data/spec/dummy/solr/conf/spellings.txt +0 -2
- data/spec/dummy/solr/conf/stopwords.txt +0 -58
- data/spec/dummy/solr/conf/synonyms.txt +0 -31
- data/spec/dummy/solr/default/data/index/_d2.fdt +0 -0
- data/spec/dummy/solr/default/data/index/_d2.fdx +0 -0
- data/spec/dummy/solr/default/data/index/_d2.fnm +0 -0
- data/spec/dummy/solr/default/data/index/_d2.nvd +0 -0
- data/spec/dummy/solr/default/data/index/_d2.nvm +0 -0
- data/spec/dummy/solr/default/data/index/_d2.si +0 -0
- data/spec/dummy/solr/default/data/index/_d2_Lucene41_0.doc +0 -0
- data/spec/dummy/solr/default/data/index/_d2_Lucene41_0.pos +0 -0
- data/spec/dummy/solr/default/data/index/_d2_Lucene41_0.tim +0 -0
- data/spec/dummy/solr/default/data/index/_d2_Lucene41_0.tip +0 -0
- data/spec/dummy/solr/default/data/index/_d3.fdt +0 -0
- data/spec/dummy/solr/default/data/index/_d3.fdx +0 -0
- data/spec/dummy/solr/default/data/index/_d3.fnm +0 -0
- data/spec/dummy/solr/default/data/index/_d3.nvd +0 -0
- data/spec/dummy/solr/default/data/index/_d3.nvm +0 -0
- data/spec/dummy/solr/default/data/index/_d3.si +0 -0
- data/spec/dummy/solr/default/data/index/_d3_Lucene41_0.doc +0 -0
- data/spec/dummy/solr/default/data/index/_d3_Lucene41_0.pos +0 -0
- data/spec/dummy/solr/default/data/index/_d3_Lucene41_0.tim +0 -0
- data/spec/dummy/solr/default/data/index/_d3_Lucene41_0.tip +0 -0
- data/spec/dummy/solr/default/data/index/_d4.fdt +0 -0
- data/spec/dummy/solr/default/data/index/_d4.fdx +0 -0
- data/spec/dummy/solr/default/data/index/_d4.fnm +0 -0
- data/spec/dummy/solr/default/data/index/_d4.nvd +0 -0
- data/spec/dummy/solr/default/data/index/_d4.nvm +0 -0
- data/spec/dummy/solr/default/data/index/_d4.si +0 -0
- data/spec/dummy/solr/default/data/index/_d4_Lucene41_0.doc +0 -0
- data/spec/dummy/solr/default/data/index/_d4_Lucene41_0.pos +0 -0
- data/spec/dummy/solr/default/data/index/_d4_Lucene41_0.tim +0 -0
- data/spec/dummy/solr/default/data/index/_d4_Lucene41_0.tip +0 -0
- data/spec/dummy/solr/default/data/index/segments.gen +0 -0
- data/spec/dummy/solr/default/data/index/segments_hk +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000628 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000629 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000630 +0 -0
- data/spec/dummy/solr/development/data/index/segments.gen +0 -0
- data/spec/dummy/solr/development/data/index/segments_1 +0 -0
- data/spec/dummy/solr/solr.xml +0 -8
- data/spec/dummy/solr/test/data/index/segments.gen +0 -0
- data/spec/dummy/solr/test/data/index/segments_1 +0 -0
- data/spec/dummy/tmp/cache/4F7/F90/default_role +0 -0
- data/spec/dummy/tmp/cache/6E4/420/search_engine_all +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/006a5adcd278a9c5c9df80a7a2b414e6 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/00a6cf2442f0e06a50f5c5f44d7aff65 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/11f06eac4db4fb45d3bb109e7f97c1c9 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/1f84f73be56154eba5c29f8ef2ac2177 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/5867d1b0ac4e0597324985236c19a68f +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/59e554f7bfa724cc56b5d8cb56ef333a +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/67565528560062a46655ddd9d226e508 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/6e466646ae89de53fd9397ce2555ca91 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/75a69bb28a2f0aac5401bd0e5f65effc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/bd6a0f9e031203673fda12a83251f03b +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/d49e28dc6b072432f42b121b05195488 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/ebc83b1f2325c61a70d933aa7a17df5a +0 -0
@@ -1,176 +0,0 @@
|
|
1
|
-
module ManifestationsHelper
|
2
|
-
def resource_title(manifestation, action)
|
3
|
-
string = LibraryGroup.site_config.display_name.localize.dup
|
4
|
-
unless action == ('index' or 'new')
|
5
|
-
if manifestation.try(:original_title)
|
6
|
-
string << ' - ' + manifestation.original_title.to_s
|
7
|
-
end
|
8
|
-
end
|
9
|
-
string << ' - Next-L Enju Leaf'
|
10
|
-
string.html_safe
|
11
|
-
end
|
12
|
-
|
13
|
-
def back_to_manifestation_index
|
14
|
-
if session[:params]
|
15
|
-
params = session[:params].merge(view: nil, :controller => :manifestations)
|
16
|
-
link_to t('page.back_to_search_results'), url_for(params)
|
17
|
-
else
|
18
|
-
link_to t('page.back'), :back
|
19
|
-
end
|
20
|
-
#rescue
|
21
|
-
# link_to t('page.listing', :model => t('activerecord.models.manifestation')), manifestations_path
|
22
|
-
end
|
23
|
-
|
24
|
-
def call_number_label(item)
|
25
|
-
if item.call_number?
|
26
|
-
unless item.shelf.web_shelf?
|
27
|
-
# TODO 請求記号の区切り文字
|
28
|
-
numbers = item.call_number.split(item.shelf.library.call_number_delimiter)
|
29
|
-
call_numbers = []
|
30
|
-
numbers.each do |number|
|
31
|
-
call_numbers << h(number.to_s)
|
32
|
-
end
|
33
|
-
render :partial => 'manifestations/call_number', :locals => {:item => item, :call_numbers => call_numbers}
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
37
|
-
|
38
|
-
def language_list(languages)
|
39
|
-
list = []
|
40
|
-
languages.each do |language|
|
41
|
-
list << language.display_name.localize if language.name != 'unknown'
|
42
|
-
end
|
43
|
-
list.join("; ")
|
44
|
-
end
|
45
|
-
|
46
|
-
def paginate_id_link(manifestation, manifestation_ids)
|
47
|
-
links = []
|
48
|
-
if manifestation_ids.is_a?(Array)
|
49
|
-
current_seq = manifestation_ids.index(manifestation.id)
|
50
|
-
if current_seq
|
51
|
-
unless manifestation.id == manifestation_ids.last
|
52
|
-
links << link_to(t('page.next'), manifestation_path(manifestation_ids[current_seq + 1]))
|
53
|
-
else
|
54
|
-
links << t('page.next').to_s
|
55
|
-
end
|
56
|
-
unless manifestation.id == manifestation_ids.first
|
57
|
-
links << link_to(t('page.previous'), manifestation_path(manifestation_ids[current_seq - 1]))
|
58
|
-
else
|
59
|
-
links << t('page.previous').to_s
|
60
|
-
end
|
61
|
-
end
|
62
|
-
end
|
63
|
-
links.join(" ").html_safe
|
64
|
-
end
|
65
|
-
|
66
|
-
def language_facet(language, current_languages, facet)
|
67
|
-
string = ''
|
68
|
-
languages = current_languages.dup
|
69
|
-
current = true if languages.include?(language.name)
|
70
|
-
if current
|
71
|
-
content_tag :strong do
|
72
|
-
link_to("#{language.display_name.localize} (" + facet.count.to_s + ")", url_for(params.merge(page: nil, language: language.name, view: nil, only_path: true)))
|
73
|
-
end
|
74
|
-
else
|
75
|
-
link_to("#{language.display_name.localize} (" + facet.count.to_s + ")", url_for(params.merge(page: nil, language: language.name, view: nil, only_path: true)))
|
76
|
-
end
|
77
|
-
end
|
78
|
-
|
79
|
-
def library_facet(current_libraries, facet)
|
80
|
-
library = Library.where(name: facet.value).select([:name, :display_name]).first
|
81
|
-
return nil unless library
|
82
|
-
string = ''
|
83
|
-
current = true if current_libraries.include?(library.name)
|
84
|
-
content_tag :li do
|
85
|
-
if current
|
86
|
-
content_tag :strong do
|
87
|
-
link_to("#{library.display_name.localize} (" + facet.count.to_s + ")", url_for(params.merge(page: nil, library: (current_libraries << library.name).uniq.join(' '), view: nil, only_path: true)))
|
88
|
-
end
|
89
|
-
else
|
90
|
-
link_to("#{library.display_name.localize} (" + facet.count.to_s + ")", url_for(params.merge(page: nil, library: (current_libraries << library.name).uniq.join(' '), view: nil, only_path: true)))
|
91
|
-
end
|
92
|
-
end
|
93
|
-
end
|
94
|
-
|
95
|
-
def carrier_type_facet(facet)
|
96
|
-
string = ''
|
97
|
-
carrier_type = CarrierType.where(name: facet.value).select([:name, :display_name]).first
|
98
|
-
if carrier_type
|
99
|
-
string << form_icon(carrier_type)
|
100
|
-
current = true if params[:carrier_type] == carrier_type.name
|
101
|
-
if current
|
102
|
-
content_tag :strong do
|
103
|
-
link_to("#{carrier_type.display_name.localize} (" + facet.count.to_s + ")", url_for(params.merge(carrier_type: carrier_type.name, page: nil, view: nil, only_path: true)))
|
104
|
-
end
|
105
|
-
else
|
106
|
-
link_to("#{carrier_type.display_name.localize} (" + facet.count.to_s + ")", url_for(params.merge(carrier_type: carrier_type.name, page: nil, view: nil, only_path: true)))
|
107
|
-
end
|
108
|
-
end
|
109
|
-
end
|
110
|
-
|
111
|
-
def pub_year_facet(pub_date_from, pub_date_to, facet)
|
112
|
-
string = ''
|
113
|
-
current = true if facet.value.first.to_i == pub_date_from.to_i and facet.value.last.to_i - 1 == pub_date_to.to_i
|
114
|
-
if current
|
115
|
-
content_tag :strong do
|
116
|
-
link_to("#{facet.value.first.to_i} - #{facet.value.last.to_i - 1} (" + facet.count.to_s + ")", url_for(params.merge(pub_date_from: facet.value.first.to_i, pub_date_to: facet.value.last.to_i - 1, page: nil, view: nil, only_path: true)))
|
117
|
-
end
|
118
|
-
else
|
119
|
-
link_to("#{facet.value.first.to_i} - #{facet.value.last.to_i - 1} (" + facet.count.to_s + ")", url_for(params.merge(pub_date_from: facet.value.first.to_i, pub_date_to: facet.value.last.to_i - 1, page: nil, view: nil, only_path: true)))
|
120
|
-
end
|
121
|
-
end
|
122
|
-
|
123
|
-
def title_with_volume_number(manifestation)
|
124
|
-
title = manifestation.original_title
|
125
|
-
if manifestation.volume_number_string?
|
126
|
-
title << " " + manifestation.volume_number_string
|
127
|
-
end
|
128
|
-
if manifestation.serial?
|
129
|
-
if manifestation.issue_number_string?
|
130
|
-
title << " (#{manifestation.issue_number_string})"
|
131
|
-
end
|
132
|
-
if manifestation.serial_number?
|
133
|
-
title << " " + manifestation.serial_number.to_s
|
134
|
-
end
|
135
|
-
end
|
136
|
-
title
|
137
|
-
end
|
138
|
-
|
139
|
-
if defined?(EnjuBookmark)
|
140
|
-
def link_to_bookmark(manifestation)
|
141
|
-
if manifestation.bookmarked?(current_user)
|
142
|
-
link_to t('bookmark.remove_from_my_bookmark'), bookmark_path(Bookmark.where(:user_id => current_user.id, manifestation_id: manifestation.id).first), confirm: t('page.are_you_sure'), method: :delete
|
143
|
-
else
|
144
|
-
link_to t('bookmark.add_to_my_bookmark'), new_bookmark_path(:bookmark => {:url => manifestation_url(manifestation)})
|
145
|
-
end
|
146
|
-
end
|
147
|
-
end
|
148
|
-
|
149
|
-
if defined?(EnjuCirculation)
|
150
|
-
def link_to_reservation(manifestation, reserve)
|
151
|
-
unless current_user
|
152
|
-
unless manifestation.items.for_checkout.empty?
|
153
|
-
link_to t('manifestation.reserve_this'), new_reserve_path(manifestation_id: manifestation.id)
|
154
|
-
end
|
155
|
-
else
|
156
|
-
if current_user.has_role?('Librarian')
|
157
|
-
link_to t('manifestation.reserve_this'), new_reserve_path(manifestation_id: manifestation.id)
|
158
|
-
else
|
159
|
-
if manifestation.is_checked_out_by?(current_user)
|
160
|
-
I18n.t('manifestation.currently_checked_out')
|
161
|
-
else
|
162
|
-
if manifestation.is_reserved_by?(current_user)
|
163
|
-
link_to t('manifestation.cancel_reservation'), reserve, confirm: t('page.are_you_sure'), method: :delete
|
164
|
-
else
|
165
|
-
link_to t('manifestation.reserve_this'), new_reserve_path(manifestation_id: manifestation.id)
|
166
|
-
end
|
167
|
-
end
|
168
|
-
end
|
169
|
-
end
|
170
|
-
end
|
171
|
-
end
|
172
|
-
|
173
|
-
def set_focus_on_search_form
|
174
|
-
javascript_tag("$(function(){$('#search_form_top').focus()})") if @query.blank?
|
175
|
-
end
|
176
|
-
end
|
@@ -1,8 +0,0 @@
|
|
1
|
-
<ul>
|
2
|
-
<% if can? :create, Manifestation %>
|
3
|
-
<li><%= link_to t('page.new', model: t('activerecord.models.manifestation')), new_manifestation_path(parent_id: @parent.id) %></li>
|
4
|
-
<% end %>
|
5
|
-
<% if can? :update, @parent %>
|
6
|
-
<li><%= link_to t('page.edit'), edit_manifestation_path(@parent) %></li>
|
7
|
-
<% end %>
|
8
|
-
</ul>
|
Binary file
|
data/spec/dummy/db/test.sqlite3
DELETED
Binary file
|
data/spec/dummy/script/rails
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
-
|
4
|
-
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
-
require File.expand_path('../../config/boot', __FILE__)
|
6
|
-
require 'rails/commands'
|
@@ -1,31 +0,0 @@
|
|
1
|
-
<!--
|
2
|
-
Licensed to the Apache Software Foundation (ASF) under one or more
|
3
|
-
contributor license agreements. See the NOTICE file distributed with
|
4
|
-
this work for additional information regarding copyright ownership.
|
5
|
-
The ASF licenses this file to You under the Apache License, Version 2.0
|
6
|
-
(the "License"); you may not use this file except in compliance with
|
7
|
-
the License. You may obtain a copy of the License at
|
8
|
-
|
9
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
|
11
|
-
Unless required by applicable law or agreed to in writing, software
|
12
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
See the License for the specific language governing permissions and
|
15
|
-
limitations under the License.
|
16
|
-
-->
|
17
|
-
|
18
|
-
<!-- The content of this page will be statically included into the top
|
19
|
-
of the admin page. Uncomment this as an example to see there the content
|
20
|
-
will show up.
|
21
|
-
|
22
|
-
<hr>
|
23
|
-
<i>This line will appear before the first table</i>
|
24
|
-
<tr>
|
25
|
-
<td colspan="2">
|
26
|
-
This row will be appended to the end of the first table
|
27
|
-
</td>
|
28
|
-
</tr>
|
29
|
-
<hr>
|
30
|
-
|
31
|
-
-->
|
@@ -1,36 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8" ?>
|
2
|
-
<!--
|
3
|
-
Licensed to the Apache Software Foundation (ASF) under one or more
|
4
|
-
contributor license agreements. See the NOTICE file distributed with
|
5
|
-
this work for additional information regarding copyright ownership.
|
6
|
-
The ASF licenses this file to You under the Apache License, Version 2.0
|
7
|
-
(the "License"); you may not use this file except in compliance with
|
8
|
-
the License. You may obtain a copy of the License at
|
9
|
-
|
10
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
|
12
|
-
Unless required by applicable law or agreed to in writing, software
|
13
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
-
See the License for the specific language governing permissions and
|
16
|
-
limitations under the License.
|
17
|
-
-->
|
18
|
-
|
19
|
-
<!-- If this file is found in the config directory, it will only be
|
20
|
-
loaded once at startup. If it is found in Solr's data
|
21
|
-
directory, it will be re-loaded every commit.
|
22
|
-
-->
|
23
|
-
|
24
|
-
<elevate>
|
25
|
-
<query text="foo bar">
|
26
|
-
<doc id="1" />
|
27
|
-
<doc id="2" />
|
28
|
-
<doc id="3" />
|
29
|
-
</query>
|
30
|
-
|
31
|
-
<query text="ipod">
|
32
|
-
<doc id="MA147LL/A" /> <!-- put the actual ipod at the top -->
|
33
|
-
<doc id="IW-02" exclude="true" /> <!-- exclude this cable -->
|
34
|
-
</query>
|
35
|
-
|
36
|
-
</elevate>
|
@@ -1,246 +0,0 @@
|
|
1
|
-
# The ASF licenses this file to You under the Apache License, Version 2.0
|
2
|
-
# (the "License"); you may not use this file except in compliance with
|
3
|
-
# the License. You may obtain a copy of the License at
|
4
|
-
#
|
5
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
6
|
-
#
|
7
|
-
# Unless required by applicable law or agreed to in writing, software
|
8
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
9
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
10
|
-
# See the License for the specific language governing permissions and
|
11
|
-
# limitations under the License.
|
12
|
-
|
13
|
-
# Syntax:
|
14
|
-
# "source" => "target"
|
15
|
-
# "source".length() > 0 (source cannot be empty.)
|
16
|
-
# "target".length() >= 0 (target can be empty.)
|
17
|
-
|
18
|
-
# example:
|
19
|
-
# "À" => "A"
|
20
|
-
# "\u00C0" => "A"
|
21
|
-
# "\u00C0" => "\u0041"
|
22
|
-
# "ß" => "ss"
|
23
|
-
# "\t" => " "
|
24
|
-
# "\n" => ""
|
25
|
-
|
26
|
-
# À => A
|
27
|
-
"\u00C0" => "A"
|
28
|
-
|
29
|
-
# Á => A
|
30
|
-
"\u00C1" => "A"
|
31
|
-
|
32
|
-
# Â => A
|
33
|
-
"\u00C2" => "A"
|
34
|
-
|
35
|
-
# Ã => A
|
36
|
-
"\u00C3" => "A"
|
37
|
-
|
38
|
-
# Ä => A
|
39
|
-
"\u00C4" => "A"
|
40
|
-
|
41
|
-
# Å => A
|
42
|
-
"\u00C5" => "A"
|
43
|
-
|
44
|
-
# Æ => AE
|
45
|
-
"\u00C6" => "AE"
|
46
|
-
|
47
|
-
# Ç => C
|
48
|
-
"\u00C7" => "C"
|
49
|
-
|
50
|
-
# È => E
|
51
|
-
"\u00C8" => "E"
|
52
|
-
|
53
|
-
# É => E
|
54
|
-
"\u00C9" => "E"
|
55
|
-
|
56
|
-
# Ê => E
|
57
|
-
"\u00CA" => "E"
|
58
|
-
|
59
|
-
# Ë => E
|
60
|
-
"\u00CB" => "E"
|
61
|
-
|
62
|
-
# Ì => I
|
63
|
-
"\u00CC" => "I"
|
64
|
-
|
65
|
-
# Í => I
|
66
|
-
"\u00CD" => "I"
|
67
|
-
|
68
|
-
# Î => I
|
69
|
-
"\u00CE" => "I"
|
70
|
-
|
71
|
-
# Ï => I
|
72
|
-
"\u00CF" => "I"
|
73
|
-
|
74
|
-
# IJ => IJ
|
75
|
-
"\u0132" => "IJ"
|
76
|
-
|
77
|
-
# Ð => D
|
78
|
-
"\u00D0" => "D"
|
79
|
-
|
80
|
-
# Ñ => N
|
81
|
-
"\u00D1" => "N"
|
82
|
-
|
83
|
-
# Ò => O
|
84
|
-
"\u00D2" => "O"
|
85
|
-
|
86
|
-
# Ó => O
|
87
|
-
"\u00D3" => "O"
|
88
|
-
|
89
|
-
# Ô => O
|
90
|
-
"\u00D4" => "O"
|
91
|
-
|
92
|
-
# Õ => O
|
93
|
-
"\u00D5" => "O"
|
94
|
-
|
95
|
-
# Ö => O
|
96
|
-
"\u00D6" => "O"
|
97
|
-
|
98
|
-
# Ø => O
|
99
|
-
"\u00D8" => "O"
|
100
|
-
|
101
|
-
# Œ => OE
|
102
|
-
"\u0152" => "OE"
|
103
|
-
|
104
|
-
# Þ
|
105
|
-
"\u00DE" => "TH"
|
106
|
-
|
107
|
-
# Ù => U
|
108
|
-
"\u00D9" => "U"
|
109
|
-
|
110
|
-
# Ú => U
|
111
|
-
"\u00DA" => "U"
|
112
|
-
|
113
|
-
# Û => U
|
114
|
-
"\u00DB" => "U"
|
115
|
-
|
116
|
-
# Ü => U
|
117
|
-
"\u00DC" => "U"
|
118
|
-
|
119
|
-
# Ý => Y
|
120
|
-
"\u00DD" => "Y"
|
121
|
-
|
122
|
-
# Ÿ => Y
|
123
|
-
"\u0178" => "Y"
|
124
|
-
|
125
|
-
# à => a
|
126
|
-
"\u00E0" => "a"
|
127
|
-
|
128
|
-
# á => a
|
129
|
-
"\u00E1" => "a"
|
130
|
-
|
131
|
-
# â => a
|
132
|
-
"\u00E2" => "a"
|
133
|
-
|
134
|
-
# ã => a
|
135
|
-
"\u00E3" => "a"
|
136
|
-
|
137
|
-
# ä => a
|
138
|
-
"\u00E4" => "a"
|
139
|
-
|
140
|
-
# å => a
|
141
|
-
"\u00E5" => "a"
|
142
|
-
|
143
|
-
# æ => ae
|
144
|
-
"\u00E6" => "ae"
|
145
|
-
|
146
|
-
# ç => c
|
147
|
-
"\u00E7" => "c"
|
148
|
-
|
149
|
-
# è => e
|
150
|
-
"\u00E8" => "e"
|
151
|
-
|
152
|
-
# é => e
|
153
|
-
"\u00E9" => "e"
|
154
|
-
|
155
|
-
# ê => e
|
156
|
-
"\u00EA" => "e"
|
157
|
-
|
158
|
-
# ë => e
|
159
|
-
"\u00EB" => "e"
|
160
|
-
|
161
|
-
# ì => i
|
162
|
-
"\u00EC" => "i"
|
163
|
-
|
164
|
-
# í => i
|
165
|
-
"\u00ED" => "i"
|
166
|
-
|
167
|
-
# î => i
|
168
|
-
"\u00EE" => "i"
|
169
|
-
|
170
|
-
# ï => i
|
171
|
-
"\u00EF" => "i"
|
172
|
-
|
173
|
-
# ij => ij
|
174
|
-
"\u0133" => "ij"
|
175
|
-
|
176
|
-
# ð => d
|
177
|
-
"\u00F0" => "d"
|
178
|
-
|
179
|
-
# ñ => n
|
180
|
-
"\u00F1" => "n"
|
181
|
-
|
182
|
-
# ò => o
|
183
|
-
"\u00F2" => "o"
|
184
|
-
|
185
|
-
# ó => o
|
186
|
-
"\u00F3" => "o"
|
187
|
-
|
188
|
-
# ô => o
|
189
|
-
"\u00F4" => "o"
|
190
|
-
|
191
|
-
# õ => o
|
192
|
-
"\u00F5" => "o"
|
193
|
-
|
194
|
-
# ö => o
|
195
|
-
"\u00F6" => "o"
|
196
|
-
|
197
|
-
# ø => o
|
198
|
-
"\u00F8" => "o"
|
199
|
-
|
200
|
-
# œ => oe
|
201
|
-
"\u0153" => "oe"
|
202
|
-
|
203
|
-
# ß => ss
|
204
|
-
"\u00DF" => "ss"
|
205
|
-
|
206
|
-
# þ => th
|
207
|
-
"\u00FE" => "th"
|
208
|
-
|
209
|
-
# ù => u
|
210
|
-
"\u00F9" => "u"
|
211
|
-
|
212
|
-
# ú => u
|
213
|
-
"\u00FA" => "u"
|
214
|
-
|
215
|
-
# û => u
|
216
|
-
"\u00FB" => "u"
|
217
|
-
|
218
|
-
# ü => u
|
219
|
-
"\u00FC" => "u"
|
220
|
-
|
221
|
-
# ý => y
|
222
|
-
"\u00FD" => "y"
|
223
|
-
|
224
|
-
# ÿ => y
|
225
|
-
"\u00FF" => "y"
|
226
|
-
|
227
|
-
# ff => ff
|
228
|
-
"\uFB00" => "ff"
|
229
|
-
|
230
|
-
# fi => fi
|
231
|
-
"\uFB01" => "fi"
|
232
|
-
|
233
|
-
# fl => fl
|
234
|
-
"\uFB02" => "fl"
|
235
|
-
|
236
|
-
# ffi => ffi
|
237
|
-
"\uFB03" => "ffi"
|
238
|
-
|
239
|
-
# ffl => ffl
|
240
|
-
"\uFB04" => "ffl"
|
241
|
-
|
242
|
-
# ſt => ft
|
243
|
-
"\uFB05" => "ft"
|
244
|
-
|
245
|
-
# st => st
|
246
|
-
"\uFB06" => "st"
|