Skip to content

Commit 105cbd6

Browse files
authored
Merge pull request #40 from psu-libraries/unblock-embargo
Unblock etda error
2 parents b087183 + b0c9759 commit 105cbd6

File tree

5 files changed

+16
-6
lines changed

5 files changed

+16
-6
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
etda_utilities (0.21.1)
4+
etda_utilities (0.21.2)
55

66
GEM
77
remote: https://rubygems.org/

lib/etda_utilities/access_levels_for_partners.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ honors:
3030
restricted_to_institution_attr:
3131
description_html: 'Access restricted to individuals having a valid Penn State Access Account, for a period of two years. Allows restricted access of the entire work beginning immediately after degree conferral. At the end of the two-year period, the status will automatically change to Open Access. <i>Intended for use by authors in cases where prior public release of the work may compromise its acceptance for publication.</i>'
3232
scope: final_restricted_institution
33+
restricted_liberal_arts: 'Restricted (Liberal Arts Only)'
34+
restricted_liberal_arts_attr:
35+
description_html: 'Immediately after the conferral of the degree, the abstract becomes accessible worldwide. All other parts of the document are restricted to Penn State only for an embargo period of five (5) years for dissertations from the College of the Liberal Arts. No extensions will be granted beyond five (5) years.'
36+
scope: final_restricted_liberal_arts
3337
restricted: 'Restricted'
3438
restricted_attr:
3539
description_html: 'The option selected secures the body of the thesis for a period of two years. Selection of this option requires that an invention disclosure (ID) be filed with the Office of Technology Management (OTM) prior to submission of the final honors thesis and confirmed by OTM. At the end of the two-year period, the work will be released automatically for open access unless a written request is made to extend this option for an additional year. The written request for an extension should be sent 30 days prior to the end of the two-year period to the Honors College Records Department, 10 Schreyer Honors College, The Pennsylvania State University, University Park, PA 16802, or by e-mail to <a href="mailto:SHCAcademics@psu.edu">SHCAcademics@psu.edu</a>. Please note: No one will be able to view your work under this option.'
@@ -48,6 +52,10 @@ milsch:
4852
restricted_to_institution_attr:
4953
description_html: 'Access restricted to individuals having a valid Penn State Access Account, for a period of two years. Allows restricted access of the entire work beginning immediately after degree conferral. At the end of the two-year period, the status will automatically change to Open Access. <i>Intended for use by authors in cases where prior public release of the work may compromise its acceptance for publication.</i>'
5054
scope: final_restricted_institution
55+
restricted_liberal_arts: 'Restricted (Liberal Arts Only)'
56+
restricted_liberal_arts_attr:
57+
description_html: 'Immediately after the conferral of the degree, the abstract becomes accessible worldwide. All other parts of the document are restricted to Penn State only for an embargo period of five (5) years for dissertations from the College of the Liberal Arts. No extensions will be granted beyond five (5) years.'
58+
scope: final_restricted_liberal_arts
5159
restricted: Restricted
5260
restricted_attr:
5361
description_html: 'The option selected secures the body of the thesis for a period of two years. Selection of this option requires that an invention disclosure (ID) be filed with the Office of Technology Management (OTM) prior to submission of the final thesis and confirmed by OTM. At the end of the two-year period, the work will be released automatically for open access unless a written request is made to extend this option for an additional year. The written request for an extension should be sent to Millennium Scholars Program, 130 Ritenour Building, University Park, PA 16802 or by email to <a href="mailto:millennium@psu.edu">millennium@psu.edu</a>. Please note: No one will be able to view your work under this option.'
@@ -66,6 +74,10 @@ sset:
6674
restricted_to_institution_attr:
6775
description_html: 'Access restricted to individuals having a valid Penn State Access Account, for a period of two years. Allows restricted access of the entire work beginning immediately after degree conferral. At the end of the two-year period, the status will automatically change to Open Access. <i>Intended for use by authors in cases where prior public release of the work may compromise its acceptance for publication.</i>'
6876
scope: final_restricted_institution
77+
restricted_liberal_arts: 'Restricted (Liberal Arts Only)'
78+
restricted_liberal_arts_attr:
79+
description_html: 'Immediately after the conferral of the degree, the abstract becomes accessible worldwide. All other parts of the document are restricted to Penn State only for an embargo period of five (5) years for dissertations from the College of the Liberal Arts. No extensions will be granted beyond five (5) years.'
80+
scope: final_restricted_liberal_arts
6981
restricted: Restricted
7082
restricted_attr:
7183
description_html: 'Restricts the entire work for the purpose of filing a patent. At the end of the two-year period, the status will automatically change to Open Access. Selection of this option requires that an invention disclosure (ID) be filed with the Office of Technology Management (OTM) prior to submission of the final paper , and confirmed by OTM. If no Penn State University funds were utilized in this final paper please enter “NOPSUFUNDS” for the Invention Disclosure Number field below.'

lib/etda_utilities/etda_file_paths.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,7 @@ def explore_download_file_path(file_id, access_level, filename)
5252

5353
return explore_open + detailed_file_path(file_id) + filename if access_level == 'open_access'
5454

55-
return explore_psu_only + detailed_file_path(file_id) + filename if access_level == 'restricted_to_institution'
56-
57-
return explore_liberal_arts_only + detailed_file_path(file_id) + filename if access_level == 'restricted_liberal_arts'
55+
return explore_psu_only + detailed_file_path(file_id) + filename if ['restricted_to_institution', 'restricted_liberal_arts'].include?(access_level)
5856

5957
nil
6058
end

lib/etda_utilities/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module EtdaUtilities
4-
VERSION = "0.21.1"
4+
VERSION = "0.21.2"
55
end

spec/lib/etda_utilities_etda_file_paths_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474

7575
it 'returns a path for restricted_liberal_arts records' do
7676
access_level = 'restricted_liberal_arts'
77-
expect(subject.explore_download_file_path(file_id, access_level, filename)).to eq('tmp/restricted_liberal_arts/45/345/myfile.pdf')
77+
expect(subject.explore_download_file_path(file_id, access_level, filename)).to eq('tmp/restricted_institution/45/345/myfile.pdf')
7878
end
7979

8080
it 'returns a path for open_access records' do

0 commit comments

Comments
 (0)