Skip to content

Commit cd2fa36

Browse files
committed
#8184 ui-bundle changes
1 parent d50c484 commit cd2fa36

File tree

3 files changed

+61
-46
lines changed

3 files changed

+61
-46
lines changed

src/main/java/edu/harvard/iq/dataverse/privateurl/package-info.java

+30-30
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
/**
2-
* Private URL for unpublished datasets.
2+
* Preview URL for unpublished datasets.
33
* <p>
4-
* The Private URL feature has been implemented as a specialized role assignment
4+
* The Preview (formerly Private) URL feature has been implemented as a specialized role assignment
55
* with an associated token that permits read-only access to the metadata and
66
* all files (regardless of if the files are restricted or not) of a draft
77
* version of a dataset.
88
* <p>
9-
* As of this note, a second option - to create a Private URL that provides an
9+
* As of this note, a second option - to create a Preview URL that provides an
1010
* anonymized view of the dataset has been added. This option works the same as
1111
* the original except that it hides author names in the citation block, hides
1212
* the values for an admin specified list of metadata fields, disables citation
1313
* downloads, and disables API access (except for file and file thumbnail
1414
* downloads which are used by the UI).
1515
* <p>
16-
* The primary use case for a Private URL is for journal editors to send a link
16+
* The primary use case for a Preview URL is for journal editors to send a link
1717
* to reviewers of a dataset before publication. In most cases, these journal
1818
* editors do not permit depositors to publish on their own, which is to say
1919
* they only allow depositors to have the "Contributor" role on the datasets
@@ -24,42 +24,42 @@
2424
* the depositor, who is in charge of both the security of the dataset and the
2525
* timing of when the dataset is published.
2626
* <p>
27-
* A secondary use case for a Private URL is for depositors who have the ability
27+
* A secondary use case for a Preview URL is for depositors who have the ability
2828
* to manage permissions on their dataset (depositors who have the "Curator" or
2929
* "Admin" role, which grants much more power than the "Contributor" role) to
3030
* send a link to coauthors or other trusted parties to preview the dataset
3131
* before the depositors publish the dataset on their own. For better security,
3232
* these depositors could ask their coauthors to create Dataverse accounts and
33-
* assign roles to them directly, rather than using a Private URL which requires
33+
* assign roles to them directly, rather than using a Preview URL which requires
3434
* no username or password.
3535
* <p>
3636
* As of this note, a second option aimed specifically at the review use case -
37-
* to create a Private URL that provides an anonymized view of the dataset - has
37+
* to create a Preview URL that provides an anonymized view of the dataset - has
3838
* been added. This option works the same as the original except that it hides
3939
* author names in the citation block, hides the values for an admin specified
4040
* list of metadata fields, disables citation downloads, and disables API access
4141
* (except for file and file thumbnail downloads which are used by the UI).
4242
* <p>
43-
* The token associated with the Private URL role assignment that can be used
43+
* The token associated with the Preview URL role assignment that can be used
4444
* either in the GUI or, for the non-anonymized-access option, via the API to
4545
* elevate privileges beyond what a "Guest" can see. The ability to use a
46-
* Private URL token via API was added mostly to facilitate automated testing of
47-
* the feature but the far more common case is expected to be use of the Private
46+
* Preview URL token via API was added mostly to facilitate automated testing of
47+
* the feature but the far more common case is expected to be use of the Preview
4848
* URL token in a link that is clicked to open a browser, similar to links
4949
* shared via Dropbox, Google, etc.
5050
* <p>
51-
* When reviewers click a Private URL their browser sessions are set to the
51+
* When reviewers click a Preview URL their browser sessions are set to the
5252
* "{@link edu.harvard.iq.dataverse.authorization.users.PrivateUrlUser}" that
5353
* has the "Member" role only on the dataset in question and redirected to that
5454
* dataset, where they will see an indication in blue at the top of the page
5555
* that they are viewing an unpublished dataset. If the reviewer happens to be
5656
* logged into Dataverse already, clicking the link will log them out because
5757
* the review is meant to be blind. Because the dataset is always in draft when
58-
* a Private URL is in effect, no downloads or any other activity by the
59-
* reviewer are logged to the guestbook. All reviewers click the same Private
58+
* a Preview URL is in effect, no downloads or any other activity by the
59+
* reviewer are logged to the guestbook. All reviewers click the same Preview
6060
* URL containing the same token, and with the exception of an IP address being
6161
* logged, it should be impossible to trace which reviewers have clicked a
62-
* Private URL. If the reviewer navigates to the home page, the session is set
62+
* Preview URL. If the reviewer navigates to the home page, the session is set
6363
* to the Guest user and they will see what a Guest would see.
6464
* <p>
6565
* The "Member" role is used because it contains the necessary read-only
@@ -76,51 +76,51 @@
7676
* version. A Member can also download restricted files that have been deleted
7777
* from previously published versions.
7878
* <p>
79-
* Likewise, when a Private URL token is used via API, commands are executed
79+
* Likewise, when a Preview URL token is used via API, commands are executed
8080
* using the "PrivateUrlUser" that has the "Member" role only on the dataset in
8181
* question. This means that read-only operations such as downloads of the
82-
* dataset's files are permitted. The Search API does not respect the Private
82+
* dataset's files are permitted. The Search API does not respect the Preview
8383
* URL token but you can download files using the Access API, and, with the
8484
* non-anonymized-access option, download unpublished metadata using the Native
8585
* API.
8686
* <p>
87-
* A Private URL cannot be created for a published version of a dataset. In the
87+
* A Preview URL cannot be created for a published version of a dataset. In the
8888
* GUI, you will be reminded of this fact with a popup. The API will explain
8989
* this as well.
9090
* <p>
91-
* An anonymized-access Private URL can't be created if any published dataset
91+
* An anonymized-access Preview URL can't be created if any published dataset
9292
* version exists. The primary reason for this is that, since datasets have
9393
* DOIs, the full metadata about published versions is available directly from
9494
* the DOI provider. (While the metadata for that version could be somewhat
9595
* different, in practice it would probably provide a means of identifying
9696
* some/all of the authors).
9797
* <p>
98-
* If a draft dataset containing a Private URL is
99-
* published, the Private URL is deleted. This means that reviewers who click
98+
* If a draft dataset containing a Preview URL is
99+
* published, the Preview URL is deleted. This means that reviewers who click
100100
* the link after publication will see a 404.
101101
* <p>
102-
* If a post-publication draft containing a Private URL is deleted, the Private
102+
* If a post-publication draft containing a Preview URL is deleted, the Preview
103103
* URL is deleted. This is to ensure that if a new draft is created in the
104104
* future, a new token will be used.
105105
* <p>
106-
* The creation and deletion of a Private URL are limited to the "Curator" and
106+
* The creation and deletion of a Preview URL are limited to the "Curator" and
107107
* "Admin" roles because only those roles have the permission called
108108
* "ManageDatasetPermissions", which is the permission used by the
109109
* "AssignRoleCommand" and "RevokeRoleCommand" commands. If you have the
110-
* permission to create or delete a Private URL, the fact that a Private URL is
110+
* permission to create or delete a Preview URL, the fact that a Preview URL is
111111
* enabled for a dataset will be indicated in blue at the top of the page.
112112
* Success messages are shown at the top of the page when you create or delete a
113-
* Private URL. In the GUI, deleting a Private URL is called "disabling" and you
113+
* Preview URL. In the GUI, deleting a Preview URL is called "disabling" and you
114114
* will be prompted for a confirmation. No matter what you call it the role is
115-
* revoked. You can also delete a Private URL by revoking the role.
115+
* revoked. You can also delete a Preview URL by revoking the role.
116116
* <p>
117117
* A "Contributor" does not have the "ManageDatasetPermissions" permission and
118-
* cannot see "Permissions" nor "Private URL" under the "Edit" menu of their
119-
* dataset. When a Curator or Admin has enabled a Private URL on a Contributor's
120-
* dataset, the Contributor does not see a visual indication that a Private URL
118+
* cannot see "Permissions" nor "Preview URL" under the "Edit" menu of their
119+
* dataset. When a Curator or Admin has enabled a Preview URL on a Contributor's
120+
* dataset, the Contributor does not see a visual indication that a Preview URL
121121
* has been enabled for their dataset.
122122
* <p>
123-
* There is no way for an "Admin" or "Curator" to see when a Private URL was
123+
* There is no way for an "Admin" or "Curator" to see when a Preview URL was
124124
* created or deleted for a dataset but someone who has access to the database
125125
* can see that the following commands are logged to the "actionlogrecord"
126126
* database table:
@@ -129,7 +129,7 @@
129129
* <li>{@link edu.harvard.iq.dataverse.engine.command.impl.CreatePrivateUrlCommand}</li>
130130
* <li>{@link edu.harvard.iq.dataverse.engine.command.impl.DeletePrivateUrlCommand}</li>
131131
* </ul>
132-
* See also the Private URL To Unpublished Dataset BRD at <a href=
132+
* See also the Preview URL To Unpublished Dataset BRD at <a href=
133133
* "https://docs.google.com/document/d/1FT47QkZKcmjSgRnePaJO2g1nzcotLyN3Yb2ORvBr6cs/edit?usp=sharing">
134134
* https://docs.google.com/document/d/1FT47QkZKcmjSgRnePaJO2g1nzcotLyN3Yb2ORvBr6cs/edit?usp=sharing</a>
135135
*/

src/main/java/propertyFiles/Bundle.properties

+16-16
Original file line numberDiff line numberDiff line change
@@ -1457,7 +1457,7 @@ dataset.editBtn.itemLabel.metadata=Metadata
14571457
dataset.editBtn.itemLabel.terms=Terms
14581458
dataset.editBtn.itemLabel.permissions=Permissions
14591459
dataset.editBtn.itemLabel.thumbnailsAndWidgets=Thumbnails + Widgets
1460-
dataset.editBtn.itemLabel.privateUrl=Private URL
1460+
dataset.editBtn.itemLabel.privateUrl=Preview URL
14611461
dataset.editBtn.itemLabel.permissionsDataset=Dataset
14621462
dataset.editBtn.itemLabel.permissionsFile=Restricted Files
14631463
dataset.editBtn.itemLabel.deleteDataset=Delete Dataset
@@ -1722,22 +1722,22 @@ dataset.requestAccessToRestrictedFiles=You may request access to any restricted
17221722
dataset.requestAccessToRestrictedFilesWithEmbargo=Embargoed files cannot be accessed during the embargo period. If your selection contains restricted files, you may request access to them by clicking the Request Access button.
17231723
dataset.privateurl.infoMessageAuthor=Privately share this dataset before it is published: {0}
17241724
dataset.privateurl.infoMessageReviewer=This unpublished dataset is being privately shared.
1725-
dataset.privateurl.header=Unpublished Dataset Private URL
1726-
dataset.privateurl.tip=Use a Private URL to allow those without Dataverse accounts to access your unpublished dataset. For more information about the Private URL feature, please refer to the <a href="{0}/{1}/user/dataset-management.html#private-url-to-review-unpublished-dataset" title="Private URL for Reviewing an Unpublished Dataset - Dataverse User Guide" target="_blank">User Guide</a>.
1727-
dataset.privateurl.absent=Private URL has not been created.
1728-
dataset.privateurl.createPrivateUrl=Create Private URL
1725+
dataset.privateurl.header=Unpublished Dataset Preview URL
1726+
dataset.privateurl.tip=Use a Preview URL to allow those without Dataverse accounts to access your unpublished dataset. For more information about the Preview URL feature, please refer to the <a href="{0}/{1}/user/dataset-management.html#private-url-to-review-unpublished-dataset" title="Preview URL for Reviewing an Unpublished Dataset - Dataverse User Guide" target="_blank">User Guide</a>.
1727+
dataset.privateurl.absent=Preview URL has not been created.
1728+
dataset.privateurl.createPrivateUrl=Create Preview URL
17291729
dataset.privateurl.createPrivateUrl.anonymized=Create URL for Anonymized Access
17301730
dataset.privateurl.createPrivateUrl.anonymized.unavailable=Anonymized Access is not available once a version of the dataset has been published
1731-
dataset.privateurl.disablePrivateUrl=Disable Private URL
1732-
dataset.privateurl.disablePrivateUrlConfirm=Yes, Disable Private URL
1733-
dataset.privateurl.disableConfirmationText=Are you sure you want to disable the Private URL? If you have shared the Private URL with others they will no longer be able to use it to access your unpublished dataset.
1734-
dataset.privateurl.cannotCreate=Private URL can only be used with unpublished versions of datasets.
1735-
dataset.privateurl.roleassigeeTitle=Private URL Enabled
1731+
dataset.privateurl.disablePrivateUrl=Disable Preview URL
1732+
dataset.privateurl.disablePrivateUrlConfirm=Yes, Disable Preview URL
1733+
dataset.privateurl.disableConfirmationText=Are you sure you want to disable the Preview URL? If you have shared the Preview URL with others they will no longer be able to use it to access your unpublished dataset.
1734+
dataset.privateurl.cannotCreate=Preview URL can only be used with unpublished versions of datasets.
1735+
dataset.privateurl.roleassigeeTitle=Preview URL Enabled
17361736
dataset.privateurl.createdSuccess=Success!
1737-
dataset.privateurl.full=This Private URL provides full read access to the dataset
1738-
dataset.privateurl.anonymized=This Private URL provides access to the anonymized dataset
1739-
dataset.privateurl.disabledSuccess=You have successfully disabled the Private URL for this unpublished dataset.
1740-
dataset.privateurl.noPermToCreate=To create a Private URL you must have the following permissions: {0}.
1737+
dataset.privateurl.full=This Preview URL provides full read access to the dataset
1738+
dataset.privateurl.anonymized=This Preview URL provides access to the anonymized dataset
1739+
dataset.privateurl.disabledSuccess=You have successfully disabled the Preview URL for this unpublished dataset.
1740+
dataset.privateurl.noPermToCreate=To create a Preview URL you must have the following permissions: {0}.
17411741
dataset.externalstatus.header=Curation Status Changed
17421742
dataset.externalstatus.removed=Curation Status Removed
17431743
dataset.externalstatus.info=Curation Status is now "{0}"
@@ -2719,8 +2719,8 @@ datasets.api.grant.role.assignee.has.role.error=User already has this role for t
27192719
datasets.api.revoke.role.not.found.error="Role assignment {0} not found"
27202720
datasets.api.revoke.role.success=Role {0} revoked for assignee {1} in {2}
27212721
datasets.api.privateurl.error.datasetnotfound=Could not find dataset.
2722-
datasets.api.privateurl.error.alreadyexists=Private URL already exists for this dataset.
2723-
datasets.api.privateurl.error.notdraft=Can't create Private URL because the latest version of this dataset is not a draft.
2722+
datasets.api.privateurl.error.alreadyexists=Preview URL already exists for this dataset.
2723+
datasets.api.privateurl.error.notdraft=Can't create Preview URL because the latest version of this dataset is not a draft.
27242724
datasets.api.privateurl.anonymized.error.released=Can't create a URL for anonymized access because this dataset has been published.
27252725
datasets.api.creationdate=Date Created
27262726
datasets.api.modificationdate=Last Modified Date
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
4+
Click nbfs://nbhost/SystemFileSystem/Templates/JSP_Servlet/XHtml.xhtml to edit this template
5+
-->
6+
<!DOCTYPE html>
7+
<html xmlns="http://www.w3.org/1999/xhtml">
8+
<head>
9+
<title>TODO supply a title</title>
10+
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
11+
</head>
12+
<body>
13+
<div>TODO write content</div>
14+
</body>
15+
</html>

0 commit comments

Comments
 (0)