function datasetEditor(collectionId, data) {

  var newFiles = [];
  var setActiveTab, getActiveTab;
  //var timeoutId;

  $(".edit-accordion").on('accordionactivate', function (event, ui) {
    setActiveTab = $(".edit-accordion").accordion("option", "active");
    if (setActiveTab !== false) {
      Florence.globalVars.activeTab = setActiveTab;
    }
  });


  getActiveTab = Florence.globalVars.activeTab;
  accordion(getActiveTab);
  getLastPosition();

  //resolveVersionCorrectionTitleT8(collectionId, data, 'versions');

  //Add parent link onto page
  var parentUri = getParentPage(data.uri);
  $.ajax ({
    url: parentUri + "/data",
    dataType: 'json',
    crossDomain: true,
    success: function (data) {
      //Add title to parent link area
      var parentTitle = data.description.title;
      $('.child-page__title').append(parentTitle);
    },
    error: function() {
      sweetAlert("Error", "Could not find parent that this is a sub page of", "error");
    }
  });

  //Add link back to parent page
  $('.child-page').append("<a class='child-page__link'>Back to parent page</a>");

  //Take user to parent edit screen on link click
  $('.child-page__link').click(function(){
    //If there are edits check whether user wants to continue
    if (Florence.Editor.isDirty) {
      swal ({
        title: "Warning",
        text: "You have unsaved changes. Are you sure you want to continue?",
        type: "warning",
        showCancelButton: true,
        confirmButtonText: "Continue",
        cancelButtonText: "Cancel"
      }, function (result) {
        if (result === true) {
          Florence.Editor.isDirty = false;
          //Return to parent if user confirms it
          updateContent(collectionId, data.uri, JSON.stringify(data), parentUri);
          return true;
        }
      });
    } else {
      //Return to parent
      updateContent(collectionId, data.uri, JSON.stringify(data), parentUri);
    }
  });


  // Save
  var editNav = $('.edit-nav');
  editNav.off(); // remove any existing event handlers.

  editNav.on('click', '.btn-edit-save', function () {
    save();
    updateContent(collectionId, data.uri, JSON.stringify(data));
  });

  // completed to review
  editNav.on('click', '.btn-edit-save-and-submit-for-review', function () {
    //pageData = $('.fl-editor__headline').val();
    save();
    saveAndCompleteContent(collectionId, data.uri, JSON.stringify(data));
  });

  // reviewed to approve
  editNav.on('click', '.btn-edit-save-and-submit-for-approval', function () {
    save();
    saveAndReviewContent(collectionId, data.uri, JSON.stringify(data));
  });

  function save() {
    // Files are uploaded. Save metadata
    var orderFile = $("#sortable-supplementary-files").sortable('toArray');
    $(orderFile).each(function (indexF, nameF) {
      var title = $('#supplementary-files-title_' + nameF).val();
      var file = data.supplementaryFiles[parseInt(nameF)].file;
      newFiles[indexF] = {title: title, file: file};
    });
    data.supplementaryFiles = newFiles;
    // Notes
    data.section = {markdown: $('#one-markdown').val()};
  }
}

//function resolveVersionCorrectionTitleT8(collectionId, data, field) {
//  var ajaxRequest = [];
//  var templateData = $.extend(true, {}, data);
//  $(templateData[field]).each(function (index, version) {
//    var dfd = $.Deferred();
//    if (version.correctionNotice) {
//      templateData[field][index].type = true;
//    } else {
//      templateData[field][index].type = false;
//    }
//    templateData[field][index].label = version.label;
//    dfd.resolve();
//    ajaxRequest.push(dfd);
//  });
//
//  $.when.apply($, ajaxRequest).then(function () {
//
//    initialiseDatasetVersion(collectionId, data, templateData, 'versions', 'version');
//    initialiseDatasetVersion(collectionId, data, templateData, 'versions', 'correction');
//
//    // Version/Correction section
//    // New version
//    $("#add-version").one('click', function () {
//      //console.log("clicked");
//      editDatasetVersion(collectionId, data, templateData, 'versions', 'version');
//    });
//
//    // New correction
//    $("#add-correction").one('click', function () {
//      editDatasetVersion(collectionId, data, templateData, 'versions', 'correction');
//    });
//  });
//}


@@ -97,27 +97,8 @@
 Tab;
-%0A  //var timeoutId;
 %0A%0A  
@@ -156,17 +156,8 @@
 on (
-event, ui
 ) %7B%0A
@@ -428,78 +428,8 @@
 );%0A%0A
-  //resolveVersionCorrectionTitleT8(collectionId, data, 'versions');%0A%0A
   //
@@ -503,161 +503,75 @@
 ;%0A  
-$.ajax (%7B%0A    url: parentUri + %22/data%22,%0A    dataType: 'json',%0A    crossDomain: true,%0A    success: function (data) %7B%0A      //Add title to parent link area
+getPageDataTitle(collectionId, parentUri,%0A    function (response) %7B
 %0A   
@@ -595,24 +595,16 @@
 e = 
-data.description
+response
 .tit
@@ -672,15 +672,8 @@
 %0A   
- error:
  fun
@@ -677,16 +677,17 @@
 function
+ 
 () %7B%0A   
@@ -775,25 +775,24 @@
 %22);%0A    %7D%0A  
-%7D
 );%0A%0A  //Add 
@@ -988,18 +988,20 @@
 function
+ 
 ()
+ 
 %7B%0A    //
@@ -1658,84 +1658,77 @@
 rent
-%0A      updateContent(collectionId, data.uri, JSON.stringify(data), parentUri
+ without saving%0A      createWorkspace(parentUri, collectionId, 'edit'
 );%0A 
@@ -2913,1184 +2913,4 @@
 %0A%7D%0A%0A
-//function resolveVersionCorrectionTitleT8(collectionId, data, field) %7B%0A//  var ajaxRequest = %5B%5D;%0A//  var templateData = $.extend(true, %7B%7D, data);%0A//  $(templateData%5Bfield%5D).each(function (index, version) %7B%0A//    var dfd = $.Deferred();%0A//    if (version.correctionNotice) %7B%0A//      templateData%5Bfield%5D%5Bindex%5D.type = true;%0A//    %7D else %7B%0A//      templateData%5Bfield%5D%5Bindex%5D.type = false;%0A//    %7D%0A//    templateData%5Bfield%5D%5Bindex%5D.label = version.label;%0A//    dfd.resolve();%0A//    ajaxRequest.push(dfd);%0A//  %7D);%0A//%0A//  $.when.apply($, ajaxRequest).then(function () %7B%0A//%0A//    initialiseDatasetVersion(collectionId, data, templateData, 'versions', 'version');%0A//    initialiseDatasetVersion(collectionId, data, templateData, 'versions', 'correction');%0A//%0A//    // Version/Correction section%0A//    // New version%0A//    $(%22#add-version%22).one('click', function () %7B%0A//      //console.log(%22clicked%22);%0A//      editDatasetVersion(collectionId, data, templateData, 'versions', 'version');%0A//    %7D);%0A//%0A//    // New correction%0A//    $(%22#add-correction%22).one('click', function () %7B%0A//      editDatasetVersion(collectionId, data, templateData, 'versions', 'correction');%0A//    %7D);%0A//  %7D);%0A//%7D%0A%0A

Change ajax to retrieve only title. No save on cancel