cocina_display 2.8.0 → 2.9.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3df5706e3f8104dd1cc652c4ee19ea21236218847f9bf2e32ab5491d65a3dad2
4
- data.tar.gz: 86c08d24675be82192a0dd0785a1e8b81d4fd39e9204ee9cedf73692d0e6c6f1
3
+ metadata.gz: ba47d60cffc6985c853c485c72ab3a5bb42bdd7a4768a29feebc580176102047
4
+ data.tar.gz: 5c712b7691db2b6b26cf9f64a799948f3fe3c4a65b72f9b71580a2da524a5077
5
5
  SHA512:
6
- metadata.gz: 9458cdb077aa6afc8e8296d7a4a5b645be98547c627fbef38912d6ff9ca3e640ee32ed80bb57c438d6b6adaf1a1ece6a09a22b62cfbfda8bcef8a1063eaddf1c
7
- data.tar.gz: 00fcafcf934cfeafd181884b6577a22de4422b9d9f3c1627476513911fe9a8e4fd9120a2a4f26b81ceada07c1e481985b1953745034b11e7c96e4b78f906dd02
6
+ metadata.gz: ad6119d07af80cc547058ac821cd16a8b3023b2772cb6687d22dd73abf46a64f465c4a9004bdaa8a07521388f1817c16c00bd0cafe48488b27b6a01eef22451c
7
+ data.tar.gz: 782c53f720e2102b5b7c8c0349a22562356e037dfcc2917106bbea1174e3baa68661f778dc3df17efb6597836b3d3ab5bafd435be901766f92602044f09aac2b
@@ -60,14 +60,6 @@ module CocinaDisplay
60
60
  cocina_doc["type"]&.delete_prefix("https://cocina.sul.stanford.edu/models/")
61
61
  end
62
62
 
63
- # Primary processing label for the object.
64
- # @note For public Cocina fetched via PURL, this is generated at publish time from the title. It will have the same value as #display_title.
65
- # @see https://github.com/sul-dlss/cocina_display/issues/205#issuecomment-3781393715
66
- # @return [String, nil]
67
- def label
68
- cocina_doc["label"]
69
- end
70
-
71
63
  # True if the object is a collection.
72
64
  # @return [Boolean]
73
65
  def collection?
@@ -191,7 +191,7 @@ module CocinaDisplay
191
191
  # Is the object a digital resource without a more specific resource type?
192
192
  # @return [Boolean]
193
193
  def digital_only?
194
- resource_type_values.all?("digital")
194
+ resource_type_values.present? && resource_type_values.all?("digital")
195
195
  end
196
196
 
197
197
  # Map a MODS or LC resource type to SearchWorks format value(s).
@@ -26,6 +26,10 @@ module CocinaDisplay
26
26
  primary_title&.display_title
27
27
  end
28
28
 
29
+ # SDR no longer populates a label field with pregenerated titles; this
30
+ # alias is provided for backwards compatibility.
31
+ alias_method :label, :display_title
32
+
29
33
  # A string value for sorting by title that sorts missing values last.
30
34
  # If there are multiple primary titles, uses the first.
31
35
  # @see CocinaDisplay::Title#sort_title
@@ -2,5 +2,5 @@
2
2
 
3
3
  # :nodoc:
4
4
  module CocinaDisplay
5
- VERSION = "2.8.0" # :nodoc:
5
+ VERSION = "2.9.0" # :nodoc:
6
6
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocina_display
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.0
4
+ version: 2.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Budak
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 1980-01-02 00:00:00.000000000 Z
10
+ date: 2026-07-14 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: janeway-jsonpath
@@ -326,7 +326,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
326
326
  - !ruby/object:Gem::Version
327
327
  version: '0'
328
328
  requirements: []
329
- rubygems_version: 4.0.6
329
+ rubygems_version: 3.6.2
330
330
  specification_version: 4
331
331
  summary: Helpers for rendering Cocina metadata
332
332
  test_files: []