relaton-render 0.8.0 → 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) &&
|
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.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-12-
|
11
|
+
date: 2024-12-13 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: []
|