bulkrax 10.0.2 → 10.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +81 -1
- data/app/models/bulkrax/oai_entry.rb +18 -6
- data/app/parsers/bulkrax/application_parser.rb.orig +545 -0
- data/app/services/bulkrax/oai_record_fields.rb +125 -0
- data/app/services/bulkrax/oai_thumbnail_transforms.rb +110 -0
- data/app/services/bulkrax/oai_thumbnail_url.rb +217 -0
- data/config/locales/bulkrax.de.yml +16 -3
- data/config/locales/bulkrax.en.yml +14 -3
- data/config/locales/bulkrax.es.yml +16 -3
- data/config/locales/bulkrax.fr.yml +18 -3
- data/config/locales/bulkrax.it.yml +16 -3
- data/config/locales/bulkrax.pt-BR.yml +16 -3
- data/config/locales/bulkrax.zh.yml +12 -3
- data/lib/bulkrax/version.rb +1 -1
- metadata +7 -6
|
@@ -151,13 +151,22 @@ zh:
|
|
|
151
151
|
override_rights_statement: 如果选中,则始终使用选定的权限语句。如果未选中,则使用记录中的 dc:rights,并且仅当 dc:rights 为空时才使用提供的值。
|
|
152
152
|
thumbnail_url_html: |
|
|
153
153
|
<p>
|
|
154
|
-
缩略图 URL
|
|
154
|
+
缩略图 URL 按原样使用,也可以引用每条收割记录中的字段。字段名即 feed 中的元素名称:
|
|
155
|
+
<code>{field:NAME}</code> 读取记录的元数据,<code>{header:NAME}</code> 读取 OAI 头部。例如:
|
|
155
156
|
</p>
|
|
156
157
|
<p>
|
|
157
|
-
|
|
158
|
+
https://images.example.org/thumb/{field:dc:identifier}?size=L
|
|
158
159
|
</p>
|
|
159
160
|
<p>
|
|
160
|
-
|
|
161
|
+
https://images.example.org/thumb/{header:identifier | split(":", -1)}?size=L
|
|
162
|
+
</p>
|
|
163
|
+
<p>
|
|
164
|
+
字段名只能出现在路径片段或查询参数的值中;协议、主机和端口必须是字面值,每个值都会自动进行
|
|
165
|
+
URL 编码。无论是否引用字段,该设置都必须是 http 或 https URL。如果只需要值的一部分,可以用
|
|
166
|
+
<code>|</code> 添加转换:<code>{header:identifier | split(":", -1)}</code> 表示标识符中
|
|
167
|
+
以冒号分隔的最后一段。缺少所引用字段的记录将不带缩略图导入。不再支持
|
|
168
|
+
<%= identifier.split(':').last %> 这类 ERB 模板,此类设置会被拒绝;仍保留
|
|
169
|
+
旧设置的导入器会一直导致其条目失败,直到修改该设置。
|
|
161
170
|
</p>
|
|
162
171
|
labels:
|
|
163
172
|
set: 设置(源)
|
data/lib/bulkrax/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bulkrax
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 10.0.
|
|
4
|
+
version: 10.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Rob Kaufman
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: rails
|
|
@@ -473,6 +472,7 @@ files:
|
|
|
473
472
|
- app/models/concerns/bulkrax/importer_exporter_behavior.rb
|
|
474
473
|
- app/models/concerns/bulkrax/status_info.rb
|
|
475
474
|
- app/parsers/bulkrax/application_parser.rb
|
|
475
|
+
- app/parsers/bulkrax/application_parser.rb.orig
|
|
476
476
|
- app/parsers/bulkrax/bagit_parser.rb
|
|
477
477
|
- app/parsers/bulkrax/csv_parser.rb
|
|
478
478
|
- app/parsers/bulkrax/oai_dc_parser.rb
|
|
@@ -499,6 +499,9 @@ files:
|
|
|
499
499
|
- app/services/bulkrax/csv_template/split_formatter.rb
|
|
500
500
|
- app/services/bulkrax/csv_template/value_determiner.rb
|
|
501
501
|
- app/services/bulkrax/factory_class_finder.rb
|
|
502
|
+
- app/services/bulkrax/oai_record_fields.rb
|
|
503
|
+
- app/services/bulkrax/oai_thumbnail_transforms.rb
|
|
504
|
+
- app/services/bulkrax/oai_thumbnail_url.rb
|
|
502
505
|
- app/services/bulkrax/remove_relationships_for_importer.rb
|
|
503
506
|
- app/services/bulkrax/safe_path.rb
|
|
504
507
|
- app/services/bulkrax/split_pattern_coercion.rb
|
|
@@ -616,7 +619,6 @@ homepage: https://github.com/samvera-labs/bulkrax
|
|
|
616
619
|
licenses:
|
|
617
620
|
- Apache-2.0
|
|
618
621
|
metadata: {}
|
|
619
|
-
post_install_message:
|
|
620
622
|
rdoc_options: []
|
|
621
623
|
require_paths:
|
|
622
624
|
- lib
|
|
@@ -631,8 +633,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
631
633
|
- !ruby/object:Gem::Version
|
|
632
634
|
version: '0'
|
|
633
635
|
requirements: []
|
|
634
|
-
rubygems_version: 3.
|
|
635
|
-
signing_key:
|
|
636
|
+
rubygems_version: 3.6.8
|
|
636
637
|
specification_version: 4
|
|
637
638
|
summary: Import and export tool for Hyrax and Hyku
|
|
638
639
|
test_files: []
|