@(curationObject: models.CurationObject, files :List[CurationFile], m: List[models.Metadata], limit:Int, spaceName: String)(implicit user: Option[models.User]) @import play.api.i18n.Messages @import helper._ @import _root_.util.Formatters._ @implicitFieldConstructor = @{ FieldConstructor(twitterBootstrapInput.f) } @main(curationObject.name) {

@curationObject.name

@Messages("publicationrequest.description"):


@Html(curationObject.description.replace("\n","
"))



Creator(s): @if(curationObject.creators.length !=0) { @for(i <- 0 to (curationObject.creators.length - 2) ) { @curationObject.creators(i).trim , } @curationObject.creators(curationObject.creators.length-1).trim }
@Messages("owner.label"): @curationObject.author.fullName
Created: @curationObject.created.date.format("MMM dd, yyyy")
Repository: @curationObject.repository.getOrElse("Not selected.")
Submitted: @{curationObject.submittedDate match { case Some(d) => d.format("MMM dd, yyyy") case None => "Not submitted" } }
Published: @{curationObject.publishedDate match { case Some(d) => d.format("MMM dd, yyyy") case None => "Not published." } }
External Identifier: @curationObject.externalIdentifier match { case Some(e) => { @if(e.toString.startsWith("http://") || e.toString.startsWith("https://")) { @e } else { @e } } case None => {Not Set} }

@Messages("dataset.title") @curationObject.datasets(0).name

Note: The links in this page redirect to the live objects.
Size: @{files.map(_.length).sum /1024} KB
File Formats: @files.map(_.contentType).toSet.mkString(", ")
@Messages("owner.label"): @curationObject.datasets(0).author.fullName
@*if(Permission.checkPermission(Permission.ViewMetadata, ResourceRef(ResourceRef.curationObject, curationObject.id))) {*@
@if(m.filter(_.attachedTo.resourceType == ResourceRef.curationObject).size > 0) {

Metadata

}
@metadatald.view(m.filter(_.attachedTo.resourceType == ResourceRef.curationObject), false)
@*}*@
Submission Status in repository

}