TexasDigitalLibrary / Vireo

Vireo is a turnkey Electronic Thesis and Dissertation (ETD) Management System.
https://texasdigitallibrary.atlassian.net/wiki/spaces/VUG/pages/87490642/About
GNU General Public License v2.0
46 stars 35 forks source link

Make the Embargo Type and Submission Type None values configurable. #1937

Closed kaladay closed 4 months ago

kaladay commented 4 months ago

This depends on and effectively includes the following PRs:

The behavior of the case of None is treated as as synonymous with a NULL value for that field in the database. I've looked over the different use cases and have found that in some cases Unknown and Unassigned are used.

Make this None filter value customizable rather than hard-coding the opinion of None being NULL.

The app.filter.embargoTypeNone and app.filter.submissionTypeNone may now be changed to something other than None. The default remains set to None.

The following new application.yml settings are now introduced:

app.filter.embargoTypeNone: None
app.filter.submissionTypeNone: None

Their respective environment variable names are:

APP_FILTER_EMBARGOTYPENONE="None"
APP_FILTER_SUBMISSIONTYPENONE="None"