pennmarc 1.0.12 → 1.0.14
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/.rubocop_todo.yml +2 -2
- data/lib/pennmarc/enriched.rb +93 -0
- data/lib/pennmarc/helpers/access.rb +2 -2
- data/lib/pennmarc/helpers/classification.rb +6 -6
- data/lib/pennmarc/helpers/creator.rb +59 -64
- data/lib/pennmarc/helpers/date.rb +3 -3
- data/lib/pennmarc/helpers/format.rb +7 -7
- data/lib/pennmarc/helpers/helper.rb +1 -1
- data/lib/pennmarc/helpers/inventory.rb +92 -0
- data/lib/pennmarc/helpers/inventory_entry/base.rb +23 -0
- data/lib/pennmarc/helpers/inventory_entry/electronic.rb +20 -0
- data/lib/pennmarc/helpers/inventory_entry/physical.rb +38 -0
- data/lib/pennmarc/helpers/location.rb +19 -14
- data/lib/pennmarc/helpers/subject.rb +6 -6
- data/lib/pennmarc/mappings/locations.yml +4 -0
- data/lib/pennmarc/util.rb +16 -1
- data/lib/pennmarc/version.rb +1 -1
- data/spec/lib/pennmarc/helpers/access_spec.rb +5 -5
- data/spec/lib/pennmarc/helpers/classification_spec.rb +6 -6
- data/spec/lib/pennmarc/helpers/creator_spec.rb +41 -7
- data/spec/lib/pennmarc/helpers/format_spec.rb +4 -4
- data/spec/lib/pennmarc/helpers/inventory_spec.rb +129 -0
- data/spec/lib/pennmarc/helpers/location_spec.rb +40 -9
- data/spec/lib/pennmarc/helpers/subject_spec.rb +37 -13
- metadata +8 -3
- data/lib/pennmarc/enriched_marc.rb +0 -49
@@ -1,49 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
# Constants for Alma's MARC enrichment
|
4
|
-
# MARC enrichment is performed during the Alma Publishing process
|
5
|
-
# @see https://developers.exlibrisgroup.com/alma/apis/docs/bibs/R0VUIC9hbG1hd3MvdjEvYmlicy97bW1zX2lkfQ==/
|
6
|
-
# Alma documentation for these added fields
|
7
|
-
module PennMARC
|
8
|
-
module EnrichedMarc
|
9
|
-
# terminology follows the Publishing Profile screen
|
10
|
-
TAG_HOLDING = 'hld'
|
11
|
-
TAG_ITEM = 'itm'
|
12
|
-
TAG_ELECTRONIC_INVENTORY = 'prt'
|
13
|
-
TAG_DIGITAL_INVENTORY = 'dig'
|
14
|
-
|
15
|
-
# these are 852 subfield codes; terminology comes from MARC spec
|
16
|
-
SUB_HOLDING_SHELVING_LOCATION = 'c'
|
17
|
-
SUB_HOLDING_SEQUENCE_NUMBER = '8'
|
18
|
-
SUB_HOLDING_CLASSIFICATION_PART = 'h'
|
19
|
-
SUB_HOLDING_ITEM_PART = 'i'
|
20
|
-
|
21
|
-
SUB_ITEM_CURRENT_LOCATION = 'g'
|
22
|
-
SUB_ITEM_CALL_NUMBER_TYPE = 'h'
|
23
|
-
SUB_ITEM_CALL_NUMBER = 'i'
|
24
|
-
SUB_ITEM_DATE_CREATED = 'q'
|
25
|
-
|
26
|
-
SUB_ELEC_PORTFOLIO_PID = 'a'
|
27
|
-
SUB_ELEC_ACCESS_URL = 'b'
|
28
|
-
SUB_ELEC_COLLECTION_NAME = 'c'
|
29
|
-
SUB_ELEC_COVERAGE = 'g'
|
30
|
-
|
31
|
-
# TODO: evaluate this in context of changed boundwiths processing
|
32
|
-
# a subfield code NOT used by the MARC 21 spec for 852 holdings records.
|
33
|
-
# we add this subfield during preprocessing to store boundwith record IDs.
|
34
|
-
SUB_BOUND_WITH_ID = 'y'
|
35
|
-
|
36
|
-
# MARC enrichment originating from Alma Api
|
37
|
-
# @see https://developers.exlibrisgroup.com/alma/apis/docs/bibs/R0VUIC9hbG1hd3MvdjEvYmlicy97bW1zX2lkfQ==/ Alma docs
|
38
|
-
module AlmaApi
|
39
|
-
TAG_PHYSICAL_INVENTORY = 'AVA'
|
40
|
-
TAG_DIGITAL_INVENTORY = 'AVA'
|
41
|
-
TAG_ELECTRONIC_INVENTORY = 'AVE'
|
42
|
-
|
43
|
-
SUB_PHYSICAL_CALL_NUMBER = 'd'
|
44
|
-
SUB_PHYSICAL_CALL_NUMBER_TYPE = 'k'
|
45
|
-
|
46
|
-
SUB_HOLDING_LOCATION_CODE = 'j'
|
47
|
-
end
|
48
|
-
end
|
49
|
-
end
|