etda_utilities 0.21.0 → 0.21.1
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: 70ab9c687aa369e9234f52996e0ad801baf529df76fead2f86b6675e8e11053d
|
|
4
|
+
data.tar.gz: ae323e34c32a5d93ef00d03064a5e90c3035a5b2a1477e59e46bc0d7138129e3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: de7307cb38eaf1dfff96b9ddb85f074c9ddf120a3fbb243602ec61dcab23cf92282ff05d18f4e81ca726fd75a2a7bc9645fd158f7bc6ea529f4975f152eac51a
|
|
7
|
+
data.tar.gz: d48cd5da7f6eac751a92fd87afe3487e6a9149d36ebbc2cdbf47f2a231808ecb9b07dee65c41908a9220757f5848f340dac332ee4f43f3bd09165cb6bb6d507b
|
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.
|
|
@@ -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
|
|
@@ -49,6 +54,8 @@ module EtdaUtilities
|
|
|
49
54
|
|
|
50
55
|
return explore_psu_only + detailed_file_path(file_id) + filename if access_level == 'restricted_to_institution'
|
|
51
56
|
|
|
57
|
+
return explore_liberal_arts_only + detailed_file_path(file_id) + filename if access_level == 'restricted_liberal_arts'
|
|
58
|
+
|
|
52
59
|
nil
|
|
53
60
|
end
|
|
54
61
|
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.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ajk5603@psu.edu
|
|
8
8
|
bindir: exe
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2025-
|
|
10
|
+
date: 2025-12-17 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: bundler
|