diff --git a/doc/release-notes/360-modify-notvalid-deaccession-reason.md b/doc/release-notes/360-modify-notvalid-deaccession-reason.md new file mode 100644 index 00000000000..152b3b777f4 --- /dev/null +++ b/doc/release-notes/360-modify-notvalid-deaccession-reason.md @@ -0,0 +1,16 @@ +# Language change for file.deaccessionDialog.reason.selectItem.notValid + +"Not a valid dataset." is being changed to "Not valid. This dataset does not comply with repository policies." +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. + +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) + +The SQL statements to modify the datasets is: + +- `UPDATE dvobject SET indextime=null WHERE id in (SELECT dataset_id FROM datasetversion WHERE deaccessionnote='Not a valid dataset.');` + +- `UPDATE datasetversion SET deaccessionnote='Not valid. This dataset does not comply with repository policies.' WHERE deaccessionnote='Not a valid dataset.';` + +Once the database is updated the Solr indexes need to be rebuilt using the following Admin API: + +- `curl http://localhost:8080/api/admin/index/continue` diff --git a/src/main/java/propertyFiles/Bundle.properties b/src/main/java/propertyFiles/Bundle.properties index a9330998015..695ae4009db 100644 --- a/src/main/java/propertyFiles/Bundle.properties +++ b/src/main/java/propertyFiles/Bundle.properties @@ -2184,13 +2184,13 @@ file.deaccessionDialog.reason.selectItem.beRetracted=The research article has be file.deaccessionDialog.reason.selectItem.beTransferred=The dataset has been transferred to another repository. file.deaccessionDialog.reason.selectItem.IRB=IRB request. file.deaccessionDialog.reason.selectItem.legalIssue=Legal issue or Data Usage Agreement. -file.deaccessionDialog.reason.selectItem.notValid=Not a valid dataset. +file.deaccessionDialog.reason.selectItem.notValid=Not valid. This dataset does not comply with repository policies. file.deaccessionDialog.reason.selectItem.other=Other (Please type reason in space provided below) file.deaccessionDialog.enterInfo=Please enter additional information about the reason for deaccession. file.deaccessionDialog.leaveURL=If applicable, please leave a URL where this dataset can be accessed after deaccessioning. file.deaccessionDialog.leaveURL.watermark=Optional dataset site, http://... 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. -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. +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. file.deaccessionDialog.dialog.selectVersion.error=Please select version(s) for deaccessioning. file.deaccessionDialog.dialog.reason.error=Please select reason for deaccessioning. file.deaccessionDialog.dialog.url.error=Please enter valid forwarding URL. diff --git a/src/main/resources/db/migration/V6.9.0.1.sql b/src/main/resources/db/migration/V6.9.0.1.sql new file mode 100644 index 00000000000..095ab0d1d25 --- /dev/null +++ b/src/main/resources/db/migration/V6.9.0.1.sql @@ -0,0 +1,3 @@ +- modify datasetversion.deaccessionnote entries with new Bundle string 'file.deaccessionDialog.reason.selectItem.notValid' +UPDATE dvobject SET indextime=null WHERE id in (SELECT dataset_id FROM datasetversion WHERE deaccessionnote='Not a valid dataset.'); +UPDATE datasetversion SET deaccessionnote='Not valid. This dataset does not comply with repository policies.' WHERE deaccessionnote='Not a valid dataset.';