Skip to content

Commit 7bf5107

Browse files
committed
OPDS feed, fulcrum_dois rake task and BAR EULA link updates
HELIO-4481 OPDS 'ebc_backlist' changed to 'ebc_complete' HELIO-4480 OPDS typo in schema FULCRUMOPS-331 Add 'michelt' to heliotrope:fulcrum_dois task HELIO-4478 Change BAR EULA link
1 parent a2d5179 commit 7bf5107

File tree

6 files changed

+21
-20
lines changed

6 files changed

+21
-20
lines changed

app/controllers/api/opds/v2/feeds_controller.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def accessible_products(entity_id)
255255
def umpebc_oa_publications
256256
rvalue = []
257257

258-
ebc_backlist = Greensub::Product.find_by(identifier: 'ebc_backlist')
258+
ebc_backlist = Greensub::Product.find_by(identifier: 'ebc_complete')
259259
return rvalue if ebc_backlist.blank?
260260

261261
monograph_noids = ebc_backlist.components.pluck(:noid)
@@ -275,7 +275,7 @@ def umpebc_oa_publications
275275
def umpebc_publications
276276
rvalue = []
277277

278-
ebc_backlist = Greensub::Product.find_by(identifier: 'ebc_backlist')
278+
ebc_backlist = Greensub::Product.find_by(identifier: 'ebc_complete')
279279
return rvalue if ebc_backlist.blank?
280280

281281
monograph_noids = ebc_backlist.components.pluck(:noid)

app/models/opds/publication.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def abridged
123123
end
124124

125125
def at_type
126-
'http:://schema.org/EBook'
126+
'http://schema.org/EBook'
127127
end
128128

129129
def collection

config/locales/en.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ en:
105105
max_size_error: "File size should be less than %{max_size}"
106106
eula_message:
107107
barpublishing: |
108-
<span>Your use of this Platform is subject to <a href="https://www.barpublishing.com/pdf/BAR%20EULA%2017-04-2020.pdf">BAR’s End User License Agreement</a>. Please read it carefully.</span>
108+
<span>Your use of this Platform is subject to <a href="https://www.barpublishing.com/pdf/BAR%20EULA%2021%20June%202023.pdf">BAR’s End User License Agreement</a>. Please read it carefully.</span>
109109
<span>Materials on the Platform are for the use of authorised users only. Giving access in any form to non-authorised users is prohibited.</span>
110110
exclusive_to_platform: "Exclusive to Platform?"
111111
external_resource_url: "External Resource URL"

lib/tasks/handles/fulcrum_dois.rake

+13-12
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,19 @@ namespace :heliotrope do
2727
# You can put child presses here, or not.
2828
# If you don't it will automatically pick up the children of a press.
2929
subdomains = [
30-
'michigan',
31-
'leverpress',
32-
'amherst',
33-
'mps',
34-
'atg',
35-
'cv',
36-
'cb',
37-
'barpublishing',
38-
'lrcss',
39-
'cjs',
40-
'csas',
41-
'cseas'
30+
"amherst",
31+
"atg",
32+
"barpublishing",
33+
"cb",
34+
"cjs",
35+
"csas",
36+
"cseas",
37+
"cv",
38+
"leverpress",
39+
"lrcss",
40+
"michelt",
41+
"michigan",
42+
"mps"
4243
]
4344

4445
children = []

spec/models/opds/publication_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595

9696
# Metadata (required keys + description citable link)
9797
it { expect(subject[:metadata].keys.count).to eq(5) }
98-
it { expect(subject[:metadata]).to include("@type": 'http:://schema.org/EBook') }
98+
it { expect(subject[:metadata]).to include("@type": 'http://schema.org/EBook') }
9999
it { expect(subject[:metadata]).to include(title: 'Title') }
100100
it { expect(subject[:metadata]).to include(language: 'eng') }
101101
it { expect(subject[:metadata]).to include(modified: time_now.utc.iso8601) }

spec/requests/api/opds/V2/feeds_spec.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@
259259
end
260260

261261
context 'ebc backlist' do
262-
let(:product) { create(:product, identifier: 'ebc_backlist') }
262+
let(:product) { create(:product, identifier: 'ebc_complete') }
263263
let(:component) { create(:component, noid: monograph.id) }
264264
let(:component_oa) { create(:component, noid: monograph_oa.id) }
265265

@@ -405,7 +405,7 @@
405405
let(:epub_oa) { create(:public_file_set) }
406406
let(:fr_oa) { create(:featured_representative, work_id: monograph_oa.id, file_set_id: epub_oa.id, kind: 'epub') }
407407

408-
let(:product_backlist) { create(:product, identifier: 'ebc_backlist') }
408+
let(:product_backlist) { create(:product, identifier: 'ebc_complete') }
409409
let(:product_2020) { create(:product, identifier: 'ebc_2020') }
410410
let(:product_2022) { create(:product, identifier: 'ebc_2022') }
411411

@@ -453,7 +453,7 @@
453453

454454
product_2022.components << component_2022
455455

456-
# The institution is only subscribed to ebc_2020, not ebc_2022 or ebc_backlist
456+
# The institution is only subscribed to ebc_2020, not ebc_2022 or ebc_complete
457457
institution.create_product_license(product_2020)
458458
end
459459

0 commit comments

Comments
 (0)