Skip to content

Commit

Permalink
Added DatabaseID to investigation workspace. Refs #8538.
Browse files Browse the repository at this point in the history
- Removed investigationID check as it's handled on the DOI server.
  • Loading branch information
jawrainey committed Apr 8, 2014
1 parent 3b19191 commit bc1936c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Code/Mantid/Framework/ICat/src/CatalogPublish.cpp
Expand Up @@ -137,8 +137,6 @@ namespace Mantid
if (boost::lexical_cast<bool>(getPropertyValue("GenerateDOI")))
{
int64_t investigationID = getProperty("InvestigationID");
if (investigationID == 0) throw std::runtime_error("You must provide a valid investigationID.");

std::string generatedDOI = catalogInfoService->registerDatafileDOI(investigationID);
g_log.notice("The DOI registered for datafile " + Poco::Path(filePath).getFileName() + " was: " + generatedDOI);
}
Expand Down
2 changes: 2 additions & 0 deletions Code/Mantid/Framework/ICat/src/ICat4/ICat4Catalog.cpp
Expand Up @@ -391,6 +391,7 @@ namespace Mantid
if (outputws->getColumnNames().empty())
{
// Add rows headers to the output workspace.
outputws->addColumn("long64","DatabaseID");
outputws->addColumn("str","InvestigationID");
outputws->addColumn("str","Facility");
outputws->addColumn("str","Title");
Expand All @@ -414,6 +415,7 @@ namespace Mantid
std::string emptyCell("");

// Now add the relevant investigation data to the table (They always exist).
savetoTableWorkspace(investigation->id, table);
savetoTableWorkspace(investigation->name, table);
savetoTableWorkspace(investigation->facility->name, table);
savetoTableWorkspace(investigation->title, table);
Expand Down
1 change: 1 addition & 0 deletions Code/Mantid/MantidQt/MantidWidgets/src/CatalogSearch.cpp
Expand Up @@ -752,6 +752,7 @@ namespace MantidQt

// Show only a portion of the title as they can be quite long.
resultsTable->setColumnWidth(headerIndexByName(resultsTable, "Title"), 210);
resultsTable->setColumnHidden(headerIndexByName(resultsTable, "DatabaseID"),true);
resultsTable->setColumnHidden(headerIndexByName(resultsTable, "SessionID"), true);

// Sort by endDate with the most recent being first.
Expand Down

0 comments on commit bc1936c

Please sign in to comment.