Skip to content

Commit 27e1f1f

Browse files
authored
Merge pull request #11985 from IQSS/360-modify-notvalid-deaccession-reason
change language for deaccession not valid reason
2 parents 79d42fe + 765f873 commit 27e1f1f

3 files changed

Lines changed: 21 additions & 2 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Language change for file.deaccessionDialog.reason.selectItem.notValid
2+
3+
"Not a valid dataset." is being changed to "Not valid. This dataset does not comply with repository policies."
4+
This is the default English language version. For installations using customized languages, replacing the Bundle.properties file, please follow these manual instructions to make this modification, if desired.
5+
6+
Make the change to the Bundle_##.properties file with the new verbiage. Either locally or as an update to [dataverse-language-packs Repo](https://github.com/GlobalDataverseCommunityConsortium/dataverse-language-packs/tree/develop)
7+
8+
The SQL statements to modify the datasets is:
9+
10+
- `UPDATE dvobject SET indextime=null WHERE id in (SELECT dataset_id FROM datasetversion WHERE deaccessionnote='Not a valid dataset.');`
11+
12+
- `UPDATE datasetversion SET deaccessionnote='Not valid. This dataset does not comply with repository policies.' WHERE deaccessionnote='Not a valid dataset.';`
13+
14+
Once the database is updated the Solr indexes need to be rebuilt using the following Admin API:
15+
16+
- `curl http://localhost:8080/api/admin/index`

src/main/java/propertyFiles/Bundle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2191,13 +2191,13 @@ file.deaccessionDialog.reason.selectItem.beRetracted=The research article has be
21912191
file.deaccessionDialog.reason.selectItem.beTransferred=The dataset has been transferred to another repository.
21922192
file.deaccessionDialog.reason.selectItem.IRB=IRB request.
21932193
file.deaccessionDialog.reason.selectItem.legalIssue=Legal issue or Data Usage Agreement.
2194-
file.deaccessionDialog.reason.selectItem.notValid=Not a valid dataset.
2194+
file.deaccessionDialog.reason.selectItem.notValid=Not valid. This dataset does not comply with repository policies.
21952195
file.deaccessionDialog.reason.selectItem.other=Other (Please type reason in space provided below)
21962196
file.deaccessionDialog.enterInfo=Please enter additional information about the reason for deaccession.
21972197
file.deaccessionDialog.leaveURL=If applicable, please leave a URL where this dataset can be accessed after deaccessioning.
21982198
file.deaccessionDialog.leaveURL.watermark=Optional dataset site, http://...
21992199
file.deaccessionDialog.deaccession.tip=Are you sure you want to deaccession? This is permanent and the selected version(s) will no longer be viewable by the public.
2200-
file.deaccessionDialog.deaccessionDataset.tip=Are you sure you want to deaccession this dataset? This is permanent an it will no longer be viewable by the public.
2200+
file.deaccessionDialog.deaccessionDataset.tip=Are you sure you want to deaccession this dataset? This is permanent, and it will no longer be viewable by the public.
22012201
file.deaccessionDialog.dialog.selectVersion.error=Please select version(s) for deaccessioning.
22022202
file.deaccessionDialog.dialog.reason.error=Please select reason for deaccessioning.
22032203
file.deaccessionDialog.dialog.url.error=Please enter valid forwarding URL.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
-- modify datasetversion.deaccessionnote entries with new Bundle string 'file.deaccessionDialog.reason.selectItem.notValid'
2+
UPDATE dvobject SET indextime=null WHERE id in (SELECT dataset_id FROM datasetversion WHERE deaccessionnote='Not a valid dataset.');
3+
UPDATE datasetversion SET deaccessionnote='Not valid. This dataset does not comply with repository policies.' WHERE deaccessionnote='Not a valid dataset.';

0 commit comments

Comments
 (0)