relaton 3.1.3 → 3.1.5
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.adoc +13 -3
- data/lib/relaton/bib/converter/endnote/from_endnote.rb +118 -0
- data/lib/relaton/bib/converter/endnote/to_endnote.rb +107 -0
- data/lib/relaton/bib/converter/endnote.rb +30 -0
- data/lib/relaton/bib/converter/ris/from_ris.rb +144 -0
- data/lib/relaton/bib/converter/ris/to_ris.rb +92 -0
- data/lib/relaton/bib/converter/ris.rb +7 -81
- data/lib/relaton/bib/item_data.rb +4 -0
- data/lib/relaton/bib.rb +1 -0
- data/lib/relaton/bibcollection.rb +4 -1
- data/lib/relaton/cli/base_convertor.rb +19 -3
- data/lib/relaton/cli/collection_store.rb +171 -0
- data/lib/relaton/cli/command.rb +39 -2
- data/lib/relaton/cli/subcommand_collection.rb +56 -63
- data/lib/relaton/cli/util.rb +6 -0
- data/lib/relaton/cli/xml_to_html_renderer.rb +14 -7
- data/lib/relaton/db/api_resolver.rb +115 -0
- data/lib/relaton/db/cache.rb +59 -13
- data/lib/relaton/db/cache_entry.rb +5 -1
- data/lib/relaton/db/config.rb +50 -5
- data/lib/relaton/db.rb +97 -23
- data/lib/relaton/itu/hit_collection.rb +4 -3
- data/lib/relaton/itu/scraper.rb +55 -26
- data/lib/relaton/render/iso690/styles/jis-en.yml +21 -5
- data/lib/relaton/render/iso690/styles/jis-ja.yml +11 -4
- data/lib/relaton/version.rb +1 -1
- metadata +13 -6
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# The metanorma-jis CitationStyle instance, English forms
|
|
2
2
|
# (relaton-render 3.0.0.pre Iso690 engine): the ISO 690 order with the
|
|
3
3
|
# Latin punctuation of the en language pack.
|
|
4
|
-
name: "ISO 690 (
|
|
4
|
+
name: "ISO 690 (metanorma-jis flavour, en)"
|
|
5
5
|
scheme:
|
|
6
6
|
system: name-date
|
|
7
|
-
shortFromReference:
|
|
7
|
+
shortFromReference: false
|
|
8
8
|
homeDocidType: []
|
|
9
9
|
nameForm:
|
|
10
10
|
initials: true
|
|
@@ -19,9 +19,22 @@ scheme:
|
|
|
19
19
|
locale:
|
|
20
20
|
availableAt: "Available at:"
|
|
21
21
|
labels:
|
|
22
|
-
"and": "&"
|
|
23
22
|
oxford_comma: ""
|
|
24
23
|
series_no: ""
|
|
24
|
+
edition_1: "第1版"
|
|
25
|
+
edition_2: "第2版"
|
|
26
|
+
edition_3: "第3版"
|
|
27
|
+
edition_4: "第4版"
|
|
28
|
+
edition_5: "第5版"
|
|
29
|
+
edition_6: "第6版"
|
|
30
|
+
edition_7: "第7版"
|
|
31
|
+
edition_8: "第8版"
|
|
32
|
+
edition_9: "第9版"
|
|
33
|
+
edition_10: "第10版"
|
|
34
|
+
rules:
|
|
35
|
+
component_part: jis_component_part
|
|
36
|
+
series: jis_series
|
|
37
|
+
extent: jis_extent
|
|
25
38
|
templates:
|
|
26
39
|
titleOpen: ""
|
|
27
40
|
titleClose: ""
|
|
@@ -39,14 +52,17 @@ perType:
|
|
|
39
52
|
- type: report
|
|
40
53
|
fallbacks:
|
|
41
54
|
date: "n.d"
|
|
42
|
-
template: "{{creator}}. {{title}}
|
|
55
|
+
template: "{{creator}}. {{title}}{{authorizer}}{{production}}. {{location}}"
|
|
56
|
+
authorizer: ". {{authorizer}}"
|
|
57
|
+
production: ", {{production}}"
|
|
43
58
|
short: "{{creator}}. <span class='stddocTitle'>{{title}}</span>. {{edition}}. {{production}}"
|
|
44
59
|
title: "<span class='stddocTitle'>{{title}}</span>"
|
|
45
60
|
- type: monograph
|
|
46
61
|
noPlace: true
|
|
47
62
|
fallbacks:
|
|
48
63
|
date: "n.d"
|
|
49
|
-
template: "{{creator}}{{role}}
|
|
64
|
+
template: "{{creator}}{{role}} {{title}}. {{edition}}. ({{series}}). {{production}}. {{date}}. {{size}}. {{location}}"
|
|
65
|
+
title: "_{{title}}_"
|
|
50
66
|
- type: continuing
|
|
51
67
|
template: "{{title}}. {{date}}"
|
|
52
68
|
- type: online
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# The metanorma-jis CitationStyle instance, Japanese forms
|
|
2
2
|
# (relaton-render 3.0.0.pre Iso690 engine): the ISO 690 order with the
|
|
3
3
|
# Latin punctuation of the en language pack.
|
|
4
|
-
name: "ISO 690 (
|
|
4
|
+
name: "ISO 690 (metanorma-jis flavour, ja)"
|
|
5
5
|
scheme:
|
|
6
6
|
system: name-date
|
|
7
|
-
shortFromReference:
|
|
7
|
+
shortFromReference: false
|
|
8
8
|
homeDocidType: []
|
|
9
9
|
nameForm:
|
|
10
10
|
initials: true
|
|
@@ -21,6 +21,10 @@ scheme:
|
|
|
21
21
|
"and": ""
|
|
22
22
|
oxford_comma: ""
|
|
23
23
|
series_no: ""
|
|
24
|
+
rules:
|
|
25
|
+
component_part: jis_component_part
|
|
26
|
+
series: jis_series
|
|
27
|
+
extent: jis_extent
|
|
24
28
|
templates:
|
|
25
29
|
titleOpen: ""
|
|
26
30
|
titleClose: ""
|
|
@@ -38,14 +42,17 @@ perType:
|
|
|
38
42
|
- type: report
|
|
39
43
|
fallbacks:
|
|
40
44
|
date: "日付なし"
|
|
41
|
-
template: "{{creator}}。 {{title}}
|
|
45
|
+
template: "{{creator}}。 {{title}}{{edition}}{{authorizer}}{{production}}。 {{location}}"
|
|
46
|
+
authorizer: "。 {{authorizer}}"
|
|
47
|
+
production: "、{{production}}"
|
|
42
48
|
short: "{{creator}}。 <span class='stddocTitle'>{{title}}</span>。 {{edition}}。 {{production}}"
|
|
43
49
|
title: "<span class='stddocTitle'>{{title}}</span>"
|
|
44
50
|
- type: monograph
|
|
45
51
|
noPlace: true
|
|
46
52
|
fallbacks:
|
|
47
53
|
date: "日付なし"
|
|
48
|
-
template: "{{creator}}{{role}}
|
|
54
|
+
template: "{{creator}}{{role}} {{title}}。 {{edition}}。({{series}})。 {{production}}。 {{date}}。 {{size}}。 {{location}}"
|
|
55
|
+
title: "_{{title}}_"
|
|
49
56
|
- type: continuing
|
|
50
57
|
template: "{{title}}。 {{date}}"
|
|
51
58
|
- type: online
|
data/lib/relaton/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: relaton
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.1.
|
|
4
|
+
version: 3.1.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-11-
|
|
11
|
+
date: 2026-11-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|
|
@@ -506,28 +506,28 @@ dependencies:
|
|
|
506
506
|
requirements:
|
|
507
507
|
- - "~>"
|
|
508
508
|
- !ruby/object:Gem::Version
|
|
509
|
-
version: 1.
|
|
509
|
+
version: 1.5.0
|
|
510
510
|
type: :runtime
|
|
511
511
|
prerelease: false
|
|
512
512
|
version_requirements: !ruby/object:Gem::Requirement
|
|
513
513
|
requirements:
|
|
514
514
|
- - "~>"
|
|
515
515
|
- !ruby/object:Gem::Version
|
|
516
|
-
version: 1.
|
|
516
|
+
version: 1.5.0
|
|
517
517
|
- !ruby/object:Gem::Dependency
|
|
518
518
|
name: pubid
|
|
519
519
|
requirement: !ruby/object:Gem::Requirement
|
|
520
520
|
requirements:
|
|
521
521
|
- - "~>"
|
|
522
522
|
- !ruby/object:Gem::Version
|
|
523
|
-
version: 2.0.
|
|
523
|
+
version: 2.0.25
|
|
524
524
|
type: :runtime
|
|
525
525
|
prerelease: false
|
|
526
526
|
version_requirements: !ruby/object:Gem::Requirement
|
|
527
527
|
requirements:
|
|
528
528
|
- - "~>"
|
|
529
529
|
- !ruby/object:Gem::Version
|
|
530
|
-
version: 2.0.
|
|
530
|
+
version: 2.0.25
|
|
531
531
|
- !ruby/object:Gem::Dependency
|
|
532
532
|
name: yeptris
|
|
533
533
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -655,7 +655,12 @@ files:
|
|
|
655
655
|
- lib/relaton/bib/converter/bibxml/to_rfcxml_v3.rb
|
|
656
656
|
- lib/relaton/bib/converter/csl.rb
|
|
657
657
|
- lib/relaton/bib/converter/csl/from_csl.rb
|
|
658
|
+
- lib/relaton/bib/converter/endnote.rb
|
|
659
|
+
- lib/relaton/bib/converter/endnote/from_endnote.rb
|
|
660
|
+
- lib/relaton/bib/converter/endnote/to_endnote.rb
|
|
658
661
|
- lib/relaton/bib/converter/ris.rb
|
|
662
|
+
- lib/relaton/bib/converter/ris/from_ris.rb
|
|
663
|
+
- lib/relaton/bib/converter/ris/to_ris.rb
|
|
659
664
|
- lib/relaton/bib/converter/titles.rb
|
|
660
665
|
- lib/relaton/bib/hash_parser_v1.rb
|
|
661
666
|
- lib/relaton/bib/item_data.rb
|
|
@@ -821,6 +826,7 @@ files:
|
|
|
821
826
|
- lib/relaton/cie/util.rb
|
|
822
827
|
- lib/relaton/cli.rb
|
|
823
828
|
- lib/relaton/cli/base_convertor.rb
|
|
829
|
+
- lib/relaton/cli/collection_store.rb
|
|
824
830
|
- lib/relaton/cli/command.rb
|
|
825
831
|
- lib/relaton/cli/data_fetcher.rb
|
|
826
832
|
- lib/relaton/cli/frontend/dist/404.html
|
|
@@ -887,6 +893,7 @@ files:
|
|
|
887
893
|
- lib/relaton/core/request_error.rb
|
|
888
894
|
- lib/relaton/core/workers_pool.rb
|
|
889
895
|
- lib/relaton/db.rb
|
|
896
|
+
- lib/relaton/db/api_resolver.rb
|
|
890
897
|
- lib/relaton/db/cache.rb
|
|
891
898
|
- lib/relaton/db/cache_entry.rb
|
|
892
899
|
- lib/relaton/db/config.rb
|