pennmarc 1.0.7 → 1.0.8
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/lib/pennmarc/helpers/link.rb +2 -2
- data/lib/pennmarc/version.rb +1 -1
- data/spec/lib/pennmarc/helpers/link_spec.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2dbb99dde790dda81ab9af2e7fdcc003a6ebc06a5ff447816705ef0836594a30
|
|
4
|
+
data.tar.gz: 75ab2803be0bc910f62ecb177490ab4de09c13cadabbf5b55921197f7e713ef9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 755bce4545eedf08220d746d7a01a0d2e2d5a0abfc777cd94aff4a2e33d7f34a457f7bd181031bc934c8c2435a5c8e8fe5a20a301ba363974ce2dcafa6d81783
|
|
7
|
+
data.tar.gz: 8613afeaf7fbe166fc1ce62acd792bcc85f89537ad0f515da140b811b17c2a62e3136fbeb8335758068ae672fb3a579f847cc6c12fcd2a696fa3358f85a10524
|
|
@@ -13,7 +13,7 @@ module PennMARC
|
|
|
13
13
|
# Full text links from MARC 856 fields.
|
|
14
14
|
# @param [MARC::Record] record
|
|
15
15
|
# @return [Array] array of hashes
|
|
16
|
-
def full_text(record
|
|
16
|
+
def full_text(record)
|
|
17
17
|
indicator2_options = %w[0 1]
|
|
18
18
|
links_from_record(record, indicator2_options)
|
|
19
19
|
end
|
|
@@ -21,7 +21,7 @@ module PennMARC
|
|
|
21
21
|
# Web text links from MARC 856 fields.
|
|
22
22
|
# @param [MARC::Record] record
|
|
23
23
|
# @return [Array] array of hashes
|
|
24
|
-
def web(record
|
|
24
|
+
def web(record)
|
|
25
25
|
indicator2_options = ['2', ' ', '']
|
|
26
26
|
links_from_record(record, indicator2_options)
|
|
27
27
|
end
|
data/lib/pennmarc/version.rb
CHANGED
|
@@ -15,8 +15,8 @@ describe 'PennMARC::Link' do
|
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
it 'returns full text link text and url' do
|
|
18
|
-
expect(helper.full_text(record
|
|
19
|
-
|
|
18
|
+
expect(helper.full_text(record)).to contain_exactly({ link_text: 'Materials specified Public note',
|
|
19
|
+
link_url: 'https://www.test-uri.com/' })
|
|
20
20
|
end
|
|
21
21
|
end
|
|
22
22
|
|
|
@@ -30,8 +30,8 @@ describe 'PennMARC::Link' do
|
|
|
30
30
|
end
|
|
31
31
|
|
|
32
32
|
it 'returns web link text and url' do
|
|
33
|
-
expect(helper.web(record
|
|
34
|
-
|
|
33
|
+
expect(helper.web(record)).to contain_exactly({ link_text: 'Materials specified Public note',
|
|
34
|
+
link_url: 'https://www.test-uri.com/' })
|
|
35
35
|
end
|
|
36
36
|
end
|
|
37
37
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pennmarc
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mike Kanning
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2023-12-
|
|
13
|
+
date: 2023-12-07 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: activesupport
|