relaton-render 0.8.0 → 0.8.2
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: 2db7fae658791edf4fac0a3c6c1a523fa8f44e98c72a3a569f6e679cfae59289
|
4
|
+
data.tar.gz: cf0e253848e1ea25ed8e39bc09a266b61dfe9966d6ac12bf8e20c16b796e98fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7439decec19ae4bc917d27fe313513a178601ce5d363b3ae797d6cca787a507e8c76505ab4fef5caf67b197b6fffba469688f92927511003675826054cf04fb
|
7
|
+
data.tar.gz: 742644122724cb16fc11660a7443a74a1a32d33ab0c0134f469b6a5e922e19a2e71390a4a2ecc262157f6772217afa3fbf8d6438ad1afb0084675ce0dea69212
|
@@ -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) &&
|
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.8.
|
4
|
+
version: 0.8.2
|
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-12-
|
11
|
+
date: 2024-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -255,7 +255,7 @@ homepage: https://github.com/relaton/relaton-render
|
|
255
255
|
licenses:
|
256
256
|
- BSD-2-Clause
|
257
257
|
metadata: {}
|
258
|
-
post_install_message:
|
258
|
+
post_install_message:
|
259
259
|
rdoc_options: []
|
260
260
|
require_paths:
|
261
261
|
- lib
|
@@ -271,7 +271,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
271
271
|
version: '0'
|
272
272
|
requirements: []
|
273
273
|
rubygems_version: 3.3.27
|
274
|
-
signing_key:
|
274
|
+
signing_key:
|
275
275
|
specification_version: 4
|
276
276
|
summary: Rendering of ISO 690 XML
|
277
277
|
test_files: []
|