diff --git a/lib/spectrum/holding/holding.rb b/lib/spectrum/holding/holding.rb index bdbc4a0..d993f7e 100644 --- a/lib/spectrum/holding/holding.rb +++ b/lib/spectrum/holding/holding.rb @@ -88,7 +88,7 @@ def process_item_info(info) end [ {text: status, href: "#{handle}#{suffix}"}, - {text: info['description'] || 'N/A'}, + {text: info['description'] || ''}, {text: info['source'] || 'N/A'} ] end diff --git a/lib/spectrum/holding/mirlyn_item_description.rb b/lib/spectrum/holding/mirlyn_item_description.rb index fdd2b7b..a7430b3 100644 --- a/lib/spectrum/holding/mirlyn_item_description.rb +++ b/lib/spectrum/holding/mirlyn_item_description.rb @@ -27,7 +27,7 @@ def self.for(item:) private def value - 'N/A' + '' end def format_type diff --git a/spec/fixtures/hurdy_gurdy_output.json b/spec/fixtures/hurdy_gurdy_output.json index c1a6c65..17c807d 100644 --- a/spec/fixtures/hurdy_gurdy_output.json +++ b/spec/fixtures/hurdy_gurdy_output.json @@ -15,7 +15,7 @@ "text": "Full text available, simultaneous access is limited (HathiTrust log in required)" }, { - "text": "N/A" + "text": "" }, { "text": "Indiana University" @@ -53,7 +53,7 @@ } }, { - "text": "N/A" + "text": "" }, { "icon": "check_circle", diff --git a/spec/spectrum/holding/mirlyn_item_description_spec.rb b/spec/spectrum/holding/mirlyn_item_description_spec.rb index f6f4e0e..1c5762e 100644 --- a/spec/spectrum/holding/mirlyn_item_description_spec.rb +++ b/spec/spectrum/holding/mirlyn_item_description_spec.rb @@ -11,8 +11,8 @@ #only called with self.for described_class.for(item: @item_dbl).to_h end - it "returns default of 'N/A'" do - expect(subject).to eq({text: 'N/A'}) + it "returns default of ''" do + expect(subject).to eq({text: ''}) end it "returns only description" do allow(@item_dbl).to receive(:description).and_return('description')