Skip to content

Commit ef6e5d5

Browse files
AP-475 change references for RLF to SLF (#3)
1 parent 1371798 commit ef6e5d5

25 files changed

+69
-70
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ruby File.read('.ruby-version').strip
77
gem 'awesome_print', '>=1.8.0'
88
gem 'base64'
99
gem 'berkeley_library-docker', '~> 0.2.0'
10-
gem 'berkeley_library-location', '~> 4.1.0'
10+
gem 'berkeley_library-location', '~> 4.2.0'
1111
gem 'berkeley_library-logging', '~> 0.2', '>= 0.2.7'
1212
gem 'berkeley_library-marc', '~> 0.3.1'
1313
gem 'berkeley_library-tind', '~> 0.8.0'

Gemfile.lock

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ GEM
8181
berkeley_library-util (~> 0.1, >= 0.1.2)
8282
nokogiri (~> 1.13, >= 1.13.6)
8383
berkeley_library-docker (0.2.0)
84-
berkeley_library-location (4.1.0)
84+
berkeley_library-location (4.2.0)
8585
berkeley_library-logging (~> 0.2)
8686
berkeley_library-util (~> 0.1, >= 0.1.9)
8787
jsonpath (~> 0.5.8)
@@ -198,7 +198,7 @@ GEM
198198
thor (>= 0.14, < 2.0)
199199
jquery-ui-rails (6.0.1)
200200
railties (>= 3.2.16)
201-
json (2.6.2)
201+
json (2.7.2)
202202
jsonpath (0.5.8)
203203
multi_json
204204
jwt (1.5.6)
@@ -233,7 +233,7 @@ GEM
233233
mime-types-data (3.2025.0722)
234234
mini_mime (1.1.5)
235235
minitest (5.25.5)
236-
multi_json (1.15.0)
236+
multi_json (1.19.1)
237237
mutex_m (0.3.0)
238238
net-imap (0.5.9)
239239
date
@@ -252,8 +252,6 @@ GEM
252252
racc (~> 1.4)
253253
nokogiri (1.18.9-arm64-darwin)
254254
racc (~> 1.4)
255-
nokogiri (1.18.9-x86_64-darwin)
256-
racc (~> 1.4)
257255
nokogiri (1.18.9-x86_64-linux-gnu)
258256
racc (~> 1.4)
259257
oj (3.16.11)
@@ -335,7 +333,7 @@ GEM
335333
http-cookie (>= 1.0.2, < 2.0)
336334
mime-types (>= 1.16, < 4.0)
337335
netrc (~> 0.8)
338-
rexml (3.4.1)
336+
rexml (3.4.4)
339337
roo (2.9.0)
340338
nokogiri (~> 1)
341339
rubyzip (>= 1.3.0, < 3.0.0)
@@ -396,9 +394,9 @@ GEM
396394
ruby-prof (1.3.2)
397395
ruby-progressbar (1.13.0)
398396
ruby2_keywords (0.0.5)
399-
rubyXL (3.4.33)
397+
rubyXL (3.4.34)
400398
nokogiri (>= 1.10.8)
401-
rubyzip (>= 1.3.0)
399+
rubyzip (~> 2.4)
402400
rubyzip (2.4.1)
403401
sassc (2.4.0)
404402
ffi (~> 1.9)
@@ -463,19 +461,15 @@ GEM
463461
zeitwerk (2.7.3)
464462

465463
PLATFORMS
466-
aarch64-linux
467-
arm64-darwin-21
464+
aarch64-linux-gnu
468465
arm64-darwin-23
469-
arm64-darwin-24
470-
x86_64-darwin-19
471-
x86_64-darwin-21
472466
x86_64-linux
473467

474468
DEPENDENCIES
475469
awesome_print (>= 1.8.0)
476470
base64
477471
berkeley_library-docker (~> 0.2.0)
478-
berkeley_library-location (~> 4.1.0)
472+
berkeley_library-location (~> 4.2.0)
479473
berkeley_library-logging (~> 0.2, >= 0.2.7)
480474
berkeley_library-marc (~> 0.3.1)
481475
berkeley_library-tind (~> 0.8.0)
@@ -533,7 +527,7 @@ DEPENDENCIES
533527
webmock
534528

535529
RUBY VERSION
536-
ruby 3.3.8p144
530+
ruby 3.3.10p183
537531

538532
BUNDLED WITH
539-
2.5.22
533+
2.5.3

app/controllers/location_requests_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class LocationRequestsController < ApplicationController
44
before_action :require_framework_admin!, only: %i[immediate index]
55

66
REQUIRED_PARAMS = %i[email input_file].freeze
7-
OPTIONAL_PARAMS = %i[rlf uc hathi immediate].freeze
7+
OPTIONAL_PARAMS = %i[slf uc hathi immediate].freeze
88
ALL_PARAMS = (REQUIRED_PARAMS + OPTIONAL_PARAMS)
99

1010
# GET /location_requests

app/models/location_request.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def ensure_admin_if_immediate(request, user:)
117117
# Synthetic accessors
118118

119119
def world_cat?
120-
rlf? || uc?
120+
slf? || uc?
121121
end
122122

123123
def incomplete?
@@ -207,7 +207,7 @@ def search_wc_symbols
207207
return unless world_cat?
208208

209209
[].tap do |symbols|
210-
symbols.concat(BerkeleyLibrary::Location::WorldCat::Symbols::RLF) if rlf?
210+
symbols.concat(BerkeleyLibrary::Location::WorldCat::Symbols::SLF) if slf?
211211
symbols.concat(BerkeleyLibrary::Location::WorldCat::Symbols::UC) if uc?
212212
end
213213
end
@@ -249,7 +249,7 @@ def with_uploaded_input_file
249249
def options_selected
250250
return if world_cat? || hathi?
251251

252-
errors.add(:base, 'At least one of RLF, Other UC, or HathiTrust must be selected')
252+
errors.add(:base, 'At least one of SLF, Other UC, or HathiTrust must be selected')
253253
end
254254

255255
def new_result(oclc_number, wc_sym_str, wc_error, ht_record_url, ht_error)
@@ -269,7 +269,7 @@ def write_output_file!
269269
end
270270

271271
def write_results_to(ss)
272-
writer = XLSXWriter.new(ss, rlf:, uc:, hathi_trust: hathi)
272+
writer = XLSXWriter.new(ss, slf:, uc:, hathi_trust: hathi)
273273
result_data = location_records.pluck(*RESULT_ARGS)
274274
result_data.each { |row| writer << new_result(*row) }
275275
end

app/views/fees/_nonberk_instructions.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</thead>
1414
<tbody>
1515
<tr>
16-
<td>UC Los Angeles, including SRLF</td>
16+
<td>UC Los Angeles, including SLF-S</td>
1717
<td><a href="mailto:[email protected]">[email protected]</a></td>
1818
</tr>
1919
<tr>

app/views/location_requests/_form.html.erb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@
5353
<legend>Include</legend>
5454
<ul class="form-input required">
5555
<li>
56-
<%= form.check_box :rlf %>
57-
<%= form.label :rlf %>
56+
<%= form.check_box :slf %>
57+
<%= form.label :slf %>
5858
<p class="option-note">
5959
Checks OCLC for
60-
<%= BerkeleyLibrary::Location::WorldCat::Symbols::NRLF.join('/') %>
60+
<%= BerkeleyLibrary::Location::WorldCat::Symbols::SLFN.join('/') %>
6161
and
62-
<%= BerkeleyLibrary::Location::WorldCat::Symbols::SRLF.join('/') %>
62+
<%= BerkeleyLibrary::Location::WorldCat::Symbols::SLFS.join('/') %>
6363
holdings symbols
6464
</p>
6565
</li>
@@ -82,7 +82,7 @@
8282
<strong>Note:</strong>
8383
At least one of
8484
<%=
85-
[:rlf, :uc, :hathi]
85+
[:slf, :uc, :hathi]
8686
.map { |opt| t("activerecord.attributes.location_request.#{opt}") }
8787
.to_sentence(last_word_connector: ', or ')
8888
%>

app/views/location_requests/_location_request.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<td>
2323
<table class="options attributes">
2424
<tbody>
25-
<% [:rlf, :uc, :hathi].each do |opt| %>
25+
<% [:slf, :uc, :hathi].each do |opt| %>
2626
<tr>
2727
<th scope="row"><%= t("activerecord.attributes.location_request.#{opt}") %></th>
2828
<td>

app/views/location_requests/index.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<td></td>
1212
<th scope="col">Email</th>
1313
<th scope="col">Input file</th>
14-
<th scope="col">RLF</th>
14+
<th scope="col">SLF</th>
1515
<th scope="col">UC</th>
1616
<th scope="col">HT</th>
1717
<th scope="col">Submitted</th>
@@ -34,7 +34,7 @@
3434
<%= location_request.filename %>
3535
<% end %>
3636
</td>
37-
<% [:rlf, :uc, :hathi].each do |opt| %>
37+
<% [:slf, :uc, :hathi].each do |opt| %>
3838
<td>
3939
<% value = location_request.send(opt) || false %>
4040
<%= t("activerecord.attributes.location_request.include.#{value}") %>

app/views/location_requests/new.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<p>
33
The Location Request tool takes an OCLC number and queries OCLC and/or HathiTrust.
44
The tool is good for searching for single-volume monographs. For multi-volume monographs
5-
or serials, the tool is most useful if nothing is held at an RLF. If an OCLC number is
6-
found at an RLF or HathiTrust, more checking will be necessary to determine which
5+
or serials, the tool is most useful if nothing is held at an SLF. If an OCLC number is
6+
found at an SLF or HathiTrust, more checking will be necessary to determine which
77
volume(s) is/are actually held.
88
</p>
99

app/views/reference_card_forms/show.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
'denial_reason',
5959
['Item listed at another library',
6060
'3-month maximum exceeded',
61-
'Item at NRLF',
61+
'Item at SLF-N',
6262
'Other'],
6363
{prompt: 'Select reason for denial'},
6464
{:class => 'custom-select custom-select-sm col-md-4',

0 commit comments

Comments
 (0)