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: d4f949439d216ea3a613ffd56efaff85033c6b71c506d40a56eac17b5b1ee94d
4
- data.tar.gz: df776560edf4e3e42725be71d903fa12162529dc609d2714b4917f2a0d98583a
3
+ metadata.gz: 70ab9c687aa369e9234f52996e0ad801baf529df76fead2f86b6675e8e11053d
4
+ data.tar.gz: ae323e34c32a5d93ef00d03064a5e90c3035a5b2a1477e59e46bc0d7138129e3
5
5
  SHA512:
6
- metadata.gz: f1a7f5d4ae1da598aa9230841eabe420514e8f3e396a0ff4adda1490812f29376fe7d556eba2218de3673f0665db853b27f823e42b219522624c975666eaa6f5
7
- data.tar.gz: f8200099fd4a37dd53562c7c36fcae2b4813da5528d1d4d21dada0ea910f7a79fe4f86ca61b608d53b3c6599e25bbcf2ab5f375aa37b3c6a8e49b3e537cc5a09
6
+ metadata.gz: de7307cb38eaf1dfff96b9ddb85f074c9ddf120a3fbb243602ec61dcab23cf92282ff05d18f4e81ca726fd75a2a7bc9645fd158f7bc6ea529f4975f152eac51a
7
+ data.tar.gz: d48cd5da7f6eac751a92fd87afe3487e6a9149d36ebbc2cdbf47f2a231808ecb9b07dee65c41908a9220757f5848f340dac332ee4f43f3bd09165cb6bb6d507b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- etda_utilities (0.21.0)
4
+ etda_utilities (0.21.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EtdaUtilities
4
- VERSION = "0.21.0"
4
+ VERSION = "0.21.1"
5
5
  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.0
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-06-06 00:00:00.000000000 Z
10
+ date: 2025-12-17 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: bundler