relaton-render 0.7.10 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5ed5a5efdad77a9121141628cfe293c43af9d7397eca657aa4356853b25bd79
|
4
|
+
data.tar.gz: 3a83d0d7d1a06c9cb523630c5437ecd4c3b29077ae392a66b2b1ea0320354454
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '087f54e118415b9bbd6e47b3a705cfea8cc5dae0c83d4db4066ae00a738f0276b995de81e4ed7ce285e52a75ce773ea7530c33df944239299684ec39102258af'
|
7
|
+
data.tar.gz: 772fc1cea1671312cc9e06d0772f591d47bddac59c18e6d5bbfc260c580955c964d7cd65be4a891f0046a0acc96ae2e0d22007d733d0d091c54e5ed9dcfff839
|
@@ -23,9 +23,10 @@ module Relaton
|
|
23
23
|
def enhance_data(cites)
|
24
24
|
ret = extract_uris_for_lookup(cites)
|
25
25
|
ret.empty? and return
|
26
|
-
|
27
|
-
|
28
|
-
|
26
|
+
# functionality removed: date needs to be given explicitly
|
27
|
+
#@renderer.urls_exist_concurrent(ret.keys).each do |k, v|
|
28
|
+
#ret[k].each { |u| add_date_accessed(cites[u], k, v) }
|
29
|
+
#end
|
29
30
|
end
|
30
31
|
|
31
32
|
def extract_uris_for_lookup(cites)
|
@@ -48,7 +48,7 @@ template:
|
|
48
48
|
software: "{{ creatornames }} ({{ role}}) . {{labels['qq-open']}}{{ title }}{{labels['qq-close']}} . {{ labels['version'] | capitalize }}_{{ edition_raw }}. {{medium | capitalize}}. {{place}}: {{publisher}}. {{date}}. {{ labels['updated'] | capitalize }}:_{{date_updated}}. {{ authoritative_identifier | join: '. ' }}. {{ other_identifier | join: '. ' }}. {{ uri }}. {{size}}. {{ extent}}. [{{ labels['viewed'] }}:_{{date_accessed}}]. "
|
49
49
|
# TODO: omitted: author ids, subsidiary titles, subsidiary creators, copyright, license, distributor, system requirements, relationships
|
50
50
|
electronic resource: software
|
51
|
-
standard: "{{ creatornames }} ({{ role}}) . {{ authoritative_identifier | join: '|' }}: {{labels['qq-open']}}{{ title }}{{labels['qq-close']}} . {{
|
51
|
+
standard: "{{ creatornames }} ({{ role}}) . {{ authoritative_identifier | join: '|' }}: {{labels['qq-open']}}{{ title }}{{labels['qq-close']}} . {{ medium | capitalize }}. {{ edition | capitalize_first }}. {{ place }}: {{ publisher }}. {{date}}. {{size}}. {{ extent }}. {{ other_identifier | join: '. ' }}. {{ uri }}. {{ labels['at'] | capitalize}}:_{{ access_location }}. [{{ labels['viewed'] }}:_{{date_accessed}}]."
|
52
52
|
# TODO: omitted: author ids, subsidiary titles, rights metadata, distributor, persistent identifier, item attributes, relationships
|
53
53
|
techreport: standard
|
54
54
|
dataset: "{{ creatornames }} ({{ role }}) . {{labels['qq-open']}}{{ title }}{{labels['qq-close']}} . {{ labels['version'] | capitalize }}_{{ edition_raw }}. {{medium | capitalize }}. {{ labels['in'] | capitalize }}:_{{series}}. {{date}}. {{ labels['updated'] | capitalize }}:_{{date_updated}}. {{ authoritative_identifier | join: '. ' }}. {{ other_identifier | join: '. ' }}. {{ uri }}. {{ size }}. {{ extent}}. [{{ labels['viewed'] }}:_{{date_accessed}}]. "
|
@@ -203,9 +203,10 @@ module Relaton
|
|
203
203
|
# add to liquid data based on template
|
204
204
|
def enhance_data(data, template)
|
205
205
|
template.is_a?(String) or return
|
206
|
-
add_date_accessed(data, template)
|
206
|
+
# add_date_accessed(data, template)
|
207
207
|
end
|
208
208
|
|
209
|
+
# functionality removed: date needs to be given explicitly
|
209
210
|
def add_date_accessed(data, template)
|
210
211
|
(/\{\{\s*date_accessed\s*\}\}/.match?(template) &&
|
211
212
|
/\{\{\s*uri\s*\}\}/.match?(template) &&
|
data/lib/relaton-render.rb
CHANGED
data/relaton-render.gemspec
CHANGED
@@ -28,11 +28,13 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.add_development_dependency "rspec", "~> 3.0"
|
29
29
|
spec.add_development_dependency "simplecov"
|
30
30
|
|
31
|
-
spec.add_dependency "isodoc-i18n", "~> 1.
|
31
|
+
spec.add_dependency "isodoc-i18n", "~> 1.3.0"
|
32
32
|
spec.add_dependency "liquid", "~> 5"
|
33
33
|
spec.add_dependency "nokogiri"
|
34
34
|
spec.add_dependency "relaton-bib", ">= 1.13.0"
|
35
35
|
spec.add_dependency "twitter_cldr"
|
36
36
|
spec.add_dependency "tzinfo-data" # we need this for windows only
|
37
|
+
spec.add_dependency "base64" # Liquid
|
38
|
+
spec.add_dependency "bigdecimal" # Liquid
|
37
39
|
#spec.metadata["rubygems_mfa_required"] = "true"
|
38
40
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-render
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -100,14 +100,14 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 1.
|
103
|
+
version: 1.3.0
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 1.
|
110
|
+
version: 1.3.0
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: liquid
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -178,6 +178,34 @@ dependencies:
|
|
178
178
|
- - ">="
|
179
179
|
- !ruby/object:Gem::Version
|
180
180
|
version: '0'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: base64
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
type: :runtime
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ">="
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: bigdecimal
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
202
|
+
type: :runtime
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - ">="
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '0'
|
181
209
|
description: Rendering of ISO 690 XML
|
182
210
|
email:
|
183
211
|
- open.source@ribose.com
|
@@ -227,7 +255,7 @@ homepage: https://github.com/relaton/relaton-render
|
|
227
255
|
licenses:
|
228
256
|
- BSD-2-Clause
|
229
257
|
metadata: {}
|
230
|
-
post_install_message:
|
258
|
+
post_install_message:
|
231
259
|
rdoc_options: []
|
232
260
|
require_paths:
|
233
261
|
- lib
|
@@ -243,7 +271,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
243
271
|
version: '0'
|
244
272
|
requirements: []
|
245
273
|
rubygems_version: 3.3.27
|
246
|
-
signing_key:
|
274
|
+
signing_key:
|
247
275
|
specification_version: 4
|
248
276
|
summary: Rendering of ISO 690 XML
|
249
277
|
test_files: []
|