From 3ded9fbf3de8bb54a3c857cb0827278f6e279e88 Mon Sep 17 00:00:00 2001 From: LaRita Robinson Date: Mon, 13 Nov 2023 20:23:57 -0500 Subject: [PATCH] Shorten class to appease Rubocop --- app/models/concerns/iiif_print/set_child_flag.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/concerns/iiif_print/set_child_flag.rb b/app/models/concerns/iiif_print/set_child_flag.rb index 69e43d43..6e40c533 100644 --- a/app/models/concerns/iiif_print/set_child_flag.rb +++ b/app/models/concerns/iiif_print/set_child_flag.rb @@ -4,7 +4,7 @@ module RDF class CustomIsChildTerm < Vocabulary('http://id.loc.gov/vocabulary/identifiers/') property 'is_child' end - class SplitFromPdfIdTerm < Vocabulary('http://id.loc.gov/vocabulary/identifiers/') + class FromPdfIdTerm < Vocabulary('http://id.loc.gov/vocabulary/identifiers/') property 'split_from_pdf_id' end end @@ -22,7 +22,7 @@ module SetChildFlag index.as :stored_searchable end property :split_from_pdf_id, - predicate: ::RDF::SplitFromPdfIdTerm.split_from_pdf_id, + predicate: ::RDF::FromPdfIdTerm.split_from_pdf_id, multiple: false do |index| index.as :stored_searchable end