etda_utilities 0.21.0 → 0.21.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 49318d5e71e0d59cc273dd5680c8d0d4a2d211ff88ca26607a611f438db1c7f9
|
|
4
|
+
data.tar.gz: fde28d6e663111a68b1b311b56ad73f2bec2d2a061dc4387da739bc0c85a77d7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2bb14bcdebe245fc2143fddf6dad1ac37c0fcce4386f3a7c7db751861c003b5a68941b29080cc92b723585a7ef17fdf2da981d7a2a385248c1a7062131986615
|
|
7
|
+
data.tar.gz: 6b509d848b0e69fd68b29260308edd7769e835660804fdcfb447a586b3fbfeeae74caedc1bf221f18d5f409553bf8a0a1d9252b0f5a143f1b4dbf49ba5afeff5
|
data/Gemfile.lock
CHANGED
|
@@ -11,7 +11,7 @@ module EtdaUtilities
|
|
|
11
11
|
# *** IMPORTANT NOTE ***
|
|
12
12
|
# The order of the keys in this array matter and they should go from least restrictive to most restrictive
|
|
13
13
|
# This is used in the comparison operation (<=>) below
|
|
14
|
-
ACCESS_LEVEL_KEYS = ['open_access', 'restricted_to_institution', 'restricted', ''].freeze
|
|
14
|
+
ACCESS_LEVEL_KEYS = ['open_access', 'restricted_to_institution', 'restricted_liberal_arts', 'restricted', ''].freeze
|
|
15
15
|
|
|
16
16
|
# create instances of each type that can be used
|
|
17
17
|
# OPEN_ACCESS, RESTRICTED, and RESTRICTED_TO_INSTITUTION (graduate only)
|
|
@@ -8,6 +8,10 @@ graduate:
|
|
|
8
8
|
restricted_to_institution_attr:
|
|
9
9
|
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> After the conferral of the degree, abstracts for all doctoral dissertations and master's theses, whether Open Access, Restricted (Penn State) or Restricted, become accessible worldwide.
|
|
10
10
|
scope: final_restricted_institution
|
|
11
|
+
restricted_liberal_arts: 'Restricted (Liberal Arts Only)'
|
|
12
|
+
restricted_liberal_arts_attr:
|
|
13
|
+
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.'
|
|
14
|
+
scope: final_restricted_liberal_arts
|
|
11
15
|
restricted: 'Restricted'
|
|
12
16
|
restricted_attr:
|
|
13
17
|
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 thesis/dissertation, and confirmed by OTM. After the conferral of the degree, abstracts for all doctoral dissertations and master's theses, whether Open Access, Restricted (Penn State) or Restricted, become accessible worldwide.
|
|
@@ -26,6 +30,10 @@ honors:
|
|
|
26
30
|
restricted_to_institution_attr:
|
|
27
31
|
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>'
|
|
28
32
|
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
|
|
29
37
|
restricted: 'Restricted'
|
|
30
38
|
restricted_attr:
|
|
31
39
|
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.'
|
|
@@ -44,6 +52,10 @@ milsch:
|
|
|
44
52
|
restricted_to_institution_attr:
|
|
45
53
|
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>'
|
|
46
54
|
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
|
|
47
59
|
restricted: Restricted
|
|
48
60
|
restricted_attr:
|
|
49
61
|
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.'
|
|
@@ -62,6 +74,10 @@ sset:
|
|
|
62
74
|
restricted_to_institution_attr:
|
|
63
75
|
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>'
|
|
64
76
|
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
|
|
65
81
|
restricted: Restricted
|
|
66
82
|
restricted_attr:
|
|
67
83
|
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.'
|
|
@@ -4,6 +4,7 @@ module EtdaUtilities
|
|
|
4
4
|
class EtdaFilePaths
|
|
5
5
|
RESTRICTED_DIR = 'restricted'
|
|
6
6
|
RESTRICTED_INSTITUTION_DIR = 'restricted_institution'
|
|
7
|
+
RESTRICTED_LIBERAL_ARTS_DIR = 'restricted_liberal_arts'
|
|
7
8
|
OPEN_DIR = 'open_access'
|
|
8
9
|
|
|
9
10
|
def workflow_base_path
|
|
@@ -34,6 +35,10 @@ module EtdaUtilities
|
|
|
34
35
|
"#{explore_base_path}#{RESTRICTED_INSTITUTION_DIR}/"
|
|
35
36
|
end
|
|
36
37
|
|
|
38
|
+
def explore_liberal_arts_only
|
|
39
|
+
"#{explore_base_path}#{RESTRICTED_LIBERAL_ARTS_DIR}/"
|
|
40
|
+
end
|
|
41
|
+
|
|
37
42
|
def detailed_file_path(file_id)
|
|
38
43
|
str1 = format("%02d", ((file_id.to_i || 0) % 100))
|
|
39
44
|
str2 = file_id.to_s
|
|
@@ -47,7 +52,7 @@ module EtdaUtilities
|
|
|
47
52
|
|
|
48
53
|
return explore_open + detailed_file_path(file_id) + filename if access_level == 'open_access'
|
|
49
54
|
|
|
50
|
-
return explore_psu_only + detailed_file_path(file_id) + filename if
|
|
55
|
+
return explore_psu_only + detailed_file_path(file_id) + filename if ['restricted_to_institution', 'restricted_liberal_arts'].include?(access_level)
|
|
51
56
|
|
|
52
57
|
nil
|
|
53
58
|
end
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: etda_utilities
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.21.
|
|
4
|
+
version: 0.21.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ajk5603@psu.edu
|
|
8
8
|
bindir: exe
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date:
|
|
10
|
+
date: 2026-01-07 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: bundler
|
|
@@ -101,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
101
101
|
- !ruby/object:Gem::Version
|
|
102
102
|
version: '0'
|
|
103
103
|
requirements: []
|
|
104
|
-
rubygems_version: 3.6.
|
|
104
|
+
rubygems_version: 3.6.6
|
|
105
105
|
specification_version: 4
|
|
106
106
|
summary: A gem containing common fuctions for the ETDA applications.
|
|
107
107
|
test_files: []
|