relaton-bib 1.20.0 → 1.20.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: 8c8c7845b60e7505d296fadab366bc2bc9246e658e8b5b5635ef241414fb2977
4
- data.tar.gz: 5229fb3595bee6deaaa651f25caf321d5611922f7613757abb4d7f7802014f49
3
+ metadata.gz: d008489d2b2c5f5791a2642c4189fac2da66c5415fc944fd869edd082d772d45
4
+ data.tar.gz: dbf448203c3a4d1fd9fb1f003ef7b77acdd60fd5c9d5d11471c314ca2537fbf6
5
5
  SHA512:
6
- metadata.gz: f875889416e4f4d4f6b270db74b3454d7c1c2113915d1a0266a2255c50da32ec3cb458e83c4f7197bcaaef2359840dd16effbaa2776d2977f334bff0733ca0c9
7
- data.tar.gz: 583e95824c6ebdd832059947fe551c856762c809bb047c1a17ae5e39479494431926f1c65623027bd80d204905396be9bd7afc95903ed7b6fbabd49e59265548
6
+ metadata.gz: 792a54760ab8a07fdab4359fbb51d8a0f52301308899f9635c4399550bd3c5ba3630c093d64e42263c984102b9909046a0c59ab7ecc6646f89aed2d7f76b3bab
7
+ data.tar.gz: aace1e082e434d56696a69cb552fad5ca024fcf05796aaccf2303f97123affb8937c2ada0f2355f00901e9def49e364e513fe05d28327bc41ea023d62dd2c45a
@@ -1,3 +1,3 @@
1
1
  module RelatonBib
2
- VERSION = "1.20.0".freeze
2
+ VERSION = "1.20.2".freeze
3
3
  end
@@ -290,7 +290,7 @@ module RelatonBib
290
290
  def fetch_docid(item)
291
291
  item.xpath("./docidentifier").map do |id|
292
292
  args = id.to_h.transform_keys(&:to_sym)
293
- args[:id] = id.text
293
+ args[:id] = id.children.map { |n| n.text? ? n.content : n.to_xml }.join
294
294
  args[:primary] = id[:primary] == "true" ? true : nil
295
295
  create_docid(**args)
296
296
  end
@@ -313,7 +313,7 @@ module RelatonBib
313
313
  return unless title
314
314
 
315
315
  content = variants(title)
316
- content = title.text unless content.any?
316
+ content = title.children.map { |n| n.text? ? n.content : n.to_xml }.join unless content.any?
317
317
  TypedTitleString.new(
318
318
  type: title[:type], content: content, language: title[:language],
319
319
  script: title[:script], format: title[:format]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-bib
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.20.0
4
+ version: 1.20.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-12-12 00:00:00.000000000 Z
11
+ date: 2024-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable