@( doc: services.document.ExtendedDocumentMetadata, currentUser: services.user.User, sharingPolicies: Seq[services.generated.tables.records.SharingPolicyRecord] )(implicit request: RequestHeader, messages: Messages, webJarsUtil: org.webjars.play.WebJarsUtil) @_layout("Settings | Sharing", doc, currentUser, Some("sharing")) {

@messages("document.settings.sharing.public_access")

@defining(!doc.license.map(_.isOpen).getOrElse(false)) { disabled =>
@defining(disabled || doc.publicVisibility == services.PublicAccess.PRIVATE) { noaccess =>
Access: anyone can Saved

Annotating requires a Recogito account. Visitors who are not logged in can view the document (if enabled), and download annotations from the download page. But they can not add annotations, even when public annotation is enabled. Blocking access to the document content will also limit some of the download options.

} }

@messages("document.settings.sharing.collaborators")

@for(shared <- sharingPolicies) { }
@shared.getSharedWith
@Html(webJarsUtil.script("typeahead.jquery.min.js")) @Html(webJarsUtil.requireJs(routes.Assets.versioned("javascripts/document/settings/sharing.js"))) @helper.javascriptRouter("jsRoutes")( controllers.my.routes.javascript.WorkspaceController.workspace, controllers.document.settings.routes.javascript.SettingsController.setPublicVisibility, controllers.document.settings.routes.javascript.SettingsController.setPublicAccessLevel, controllers.document.settings.routes.javascript.SettingsController.searchUsers, controllers.document.settings.routes.javascript.SettingsController.addCollaborator, controllers.document.settings.routes.javascript.SettingsController.removeCollaborator ) }