Skip to content

Commit

Permalink
hadle missing fr files metanorma/bipm-data-outcomes#33
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew2net committed Dec 17, 2024
1 parent 2465485 commit 33ea7e9
Show file tree
Hide file tree
Showing 9 changed files with 629 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/relaton_bipm/data_outcomes_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def fetch_resolution(**args) # rubocop:disable Metrics/AbcSize, Metrics/MethodLe
type: "proceedings", title: [],
doctype: DocumentType.new(type: r["type"]), place: [RelatonBib::Place.new(city: "Paris")]
}
fr_r = args[:fr]["resolutions"].fetch(i, nil)
fr_r = args.dig(:fr, "resolutions", i) # @TODO: create a GH issue when fr is missing
hash[:title] = resolution_title r, fr_r
hash[:link] = resolution_link r, fr_r, args[:src]
date = r["dates"].first.to_s
Expand Down
75 changes: 75 additions & 0 deletions spec/fixtures/data/jcrb/meeting/48.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
---
schema-version: v1.2.9
id: JCRB-2024-48
title:
- content: 48th meeting of the JCRB
language:
- en
script:
- Latn
format: text/plain
link:
- content: https://www.bipm.org/en/committees/jc/jcrb/48-2024
type: citation
language: en
script: Latn
- content: https://raw.githubusercontent.com/metanorma/bipm-data-outcomes/main/jcrb/meetings-en/meeting-48.yml
type: src
language: en
script: Latn
type: proceedings
docid:
- id: JCRB 48th Meeting (2024)
type: BIPM
primary: true
language: en
script: Latn
- id: JCRB 48<sup>e</sup> réunion (2024)
type: BIPM
primary: true
language: fr
script: Latn
- id: JCRB 48th Meeting (2024) / JCRB 48<sup>e</sup> réunion (2024)
type: BIPM
primary: true
docnumber: JCRB 48th Meeting (2024)
date:
- type: published
value: '2024-09-25'
contributor:
- organization:
name:
- content: International Bureau of Weights and Measures
language:
- en
script:
- Latn
- content: Bureau international des poids et mesures
language:
- fr
script:
- Latn
abbreviation:
content: BIPM
language:
- en
- fr
script:
- Latn
url: www.bipm.org
role:
- type: publisher
revdate: '2024-09-25'
language:
- en
- fr
script:
- Latn
place:
- city: Paris
ext:
schema-version: v1.0.0
doctype:
type: Meeting
structuredidentifier:
docnumber: '48'
85 changes: 85 additions & 0 deletions spec/fixtures/data/jcrb/meeting/action/2024-48-1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
---
schema-version: v1.2.9
id: JCRB-ACT-2024-48-1
title:
- content: Action JCRB/48-1 (2024)
language:
- en
script:
- Latn
format: text/plain
link:
- content: https://www.bipm.org/en/committees/jc/jcrb/48-2024
type: citation
language: en
script: Latn
- content: https://raw.githubusercontent.com/metanorma/bipm-data-outcomes/main/jcrb/meetings-en/meeting-48.yml
type: src
language: en
script: Latn
type: proceedings
docid:
- id: JCRB ACT 48-1 (2024)
type: BIPM
primary: true
- id: JCRB ACT 48-1 (2024, E)
type: BIPM
primary: true
language: en
script: Latn
- id: JCRB ACT 48-1 (2024, F)
type: BIPM
primary: true
language: fr
script: Latn
- id: JCRB Action 48-1 (2024)
type: BIPM-long
language: en
script: Latn
- id: Action 48-1 du JCRB (2024)
type: BIPM-long
language: fr
script: Latn
- id: JCRB Action 48-1 (2024) / Action 48-1 du JCRB (2024)
type: BIPM-long
docnumber: JCRB ACT 48-1 (2024)
date:
- type: published
value: '2024-09-25'
contributor:
- organization:
name:
- content: International Bureau of Weights and Measures
language:
- en
script:
- Latn
- content: Bureau international des poids et mesures
language:
- fr
script:
- Latn
abbreviation:
content: BIPM
language:
- en
- fr
script:
- Latn
url: www.bipm.org
role:
- type: publisher
revdate: '2024-09-25'
language:
- en
- fr
script:
- Latn
place:
- city: Paris
ext:
schema-version: v1.0.0
doctype:
type: action
structuredidentifier:
docnumber: 48-1
85 changes: 85 additions & 0 deletions spec/fixtures/data/jcrb/meeting/action/2024-48-2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
---
schema-version: v1.2.9
id: JCRB-ACT-2024-48-2
title:
- content: Action JCRB/48-2 (2024)
language:
- en
script:
- Latn
format: text/plain
link:
- content: https://www.bipm.org/en/committees/jc/jcrb/48-2024
type: citation
language: en
script: Latn
- content: https://raw.githubusercontent.com/metanorma/bipm-data-outcomes/main/jcrb/meetings-en/meeting-48.yml
type: src
language: en
script: Latn
type: proceedings
docid:
- id: JCRB ACT 48-2 (2024)
type: BIPM
primary: true
- id: JCRB ACT 48-2 (2024, E)
type: BIPM
primary: true
language: en
script: Latn
- id: JCRB ACT 48-2 (2024, F)
type: BIPM
primary: true
language: fr
script: Latn
- id: JCRB Action 48-2 (2024)
type: BIPM-long
language: en
script: Latn
- id: Action 48-2 du JCRB (2024)
type: BIPM-long
language: fr
script: Latn
- id: JCRB Action 48-2 (2024) / Action 48-2 du JCRB (2024)
type: BIPM-long
docnumber: JCRB ACT 48-2 (2024)
date:
- type: published
value: '2024-09-25'
contributor:
- organization:
name:
- content: International Bureau of Weights and Measures
language:
- en
script:
- Latn
- content: Bureau international des poids et mesures
language:
- fr
script:
- Latn
abbreviation:
content: BIPM
language:
- en
- fr
script:
- Latn
url: www.bipm.org
role:
- type: publisher
revdate: '2024-09-25'
language:
- en
- fr
script:
- Latn
place:
- city: Paris
ext:
schema-version: v1.0.0
doctype:
type: action
structuredidentifier:
docnumber: 48-2
85 changes: 85 additions & 0 deletions spec/fixtures/data/jcrb/meeting/action/2024-48-3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
---
schema-version: v1.2.9
id: JCRB-ACT-2024-48-3
title:
- content: Action JCRB/48-3 (2024)
language:
- en
script:
- Latn
format: text/plain
link:
- content: https://www.bipm.org/en/committees/jc/jcrb/48-2024
type: citation
language: en
script: Latn
- content: https://raw.githubusercontent.com/metanorma/bipm-data-outcomes/main/jcrb/meetings-en/meeting-48.yml
type: src
language: en
script: Latn
type: proceedings
docid:
- id: JCRB ACT 48-3 (2024)
type: BIPM
primary: true
- id: JCRB ACT 48-3 (2024, E)
type: BIPM
primary: true
language: en
script: Latn
- id: JCRB ACT 48-3 (2024, F)
type: BIPM
primary: true
language: fr
script: Latn
- id: JCRB Action 48-3 (2024)
type: BIPM-long
language: en
script: Latn
- id: Action 48-3 du JCRB (2024)
type: BIPM-long
language: fr
script: Latn
- id: JCRB Action 48-3 (2024) / Action 48-3 du JCRB (2024)
type: BIPM-long
docnumber: JCRB ACT 48-3 (2024)
date:
- type: published
value: '2024-09-25'
contributor:
- organization:
name:
- content: International Bureau of Weights and Measures
language:
- en
script:
- Latn
- content: Bureau international des poids et mesures
language:
- fr
script:
- Latn
abbreviation:
content: BIPM
language:
- en
- fr
script:
- Latn
url: www.bipm.org
role:
- type: publisher
revdate: '2024-09-25'
language:
- en
- fr
script:
- Latn
place:
- city: Paris
ext:
schema-version: v1.0.0
doctype:
type: action
structuredidentifier:
docnumber: 48-3
Loading

0 comments on commit 33ea7e9

Please sign in to comment.