Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
import org.labkey.api.view.ViewContext;
import org.labkey.api.view.WebPartFactory;
import org.labkey.api.view.WebPartView;
import org.labkey.panoramapublic.bluesky.BlueskyApiClient;
import org.labkey.panoramapublic.bluesky.PanoramaPublicLogoResourceType;
import org.labkey.panoramapublic.catalog.CatalogImageAttachmentType;
import org.labkey.panoramapublic.model.Journal;
import org.labkey.panoramapublic.model.speclib.SpecLibKey;
Expand Down Expand Up @@ -104,6 +106,7 @@ protected void init()
addController(PanoramaPublicController.NAME, PanoramaPublicController.class);
PanoramaPublicSchema.register(this);
AttachmentService.get().registerAttachmentType(CatalogImageAttachmentType.get());
AttachmentService.get().registerAttachmentType(PanoramaPublicLogoResourceType.get());
}

@Override
Expand Down Expand Up @@ -378,6 +381,7 @@ public Set<Class> getUnitTests()
set.add(ContainerJoin.TestCase.class);
set.add(Formula.TestCase.class);
set.add(CatalogEntryManager.TestCase.class);
set.add(BlueskyApiClient.TestCase.class);
return set;

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public static void notifyCopied(ExperimentAnnotations srcExpAnnotations, Experim
}

public static void notifyDataPublished(ExperimentAnnotations srcExperiment, ExperimentAnnotations journalCopy, Journal journal,
JournalExperiment je, DataCiteException doiError, boolean madePublic, boolean addedPublication, User user)
JournalExperiment je, DataCiteException doiError, boolean madePublic, boolean addedPublication, String blueskyPostUrl, User user)
{
StringBuilder messageBody = new StringBuilder();
messageBody.append("Dear ").append(getUserName(user)).append(",").append(NL2);
Expand Down Expand Up @@ -161,6 +161,10 @@ else if (addedPublication)
{
messageBody.append(NL2).append("The data will be available under the ").append(journalCopy.getDataLicense().getDisplayName()).append(" license.");
}
if (madePublic && !StringUtils.isBlank(blueskyPostUrl))
{
messageBody.append(NL2).append("We have announced your data on Bluesky - take a look here: ").append(bold(link("Bluesky Post", blueskyPostUrl))).append(".");
}
if (journalCopy.hasPxid())
{
messageBody.append(NL2);
Expand Down
Loading