function viewCollectionDetails(collectionId) {

  getCollectionDetails(collectionId,
    success = function (response) {
      populateCollectionDetails(response, collectionId);
    },
    error = function (response) {
      handleApiError(response);
    }
  );

  function populateCollectionDetails(collection, collectionId) {

    Florence.setActiveCollection(collection);

    if (!collection.publishDate) {
      collection.date = '[manual collection]';
    } else if (collection.publishDate && collection.type === 'manual') {
      collection.date = '[manual collection] Originally scheduled for ' + StringUtils.formatIsoFull(collection.publishDate);
    } else {
      collection.date = StringUtils.formatIsoFull(collection.publishDate);
    }

    ProcessPages(collection.inProgress);
    ProcessPages(collection.complete);
    ProcessPages(collection.reviewed);

    var collectionHtml = window.templates.collectionDetails(collection);
    $('.collection-selected').html(collectionHtml).animate({right: "0%"}, 500);

    var deleteButton = $('#collection-delete');
    if (collection.inProgress.length === 0
      && collection.complete.length === 0
      && collection.reviewed.length === 0) {
        deleteButton.show().click(function () {
          swal ({
            title: "Warning",
            text: "Are you sure you want to delete this collection?",
            type: "warning",
            showCancelButton: true,
            confirmButtonText: "Continue",
            cancelButtonText: "Cancel",
            closeOnConfirm: false
          }, function(result) {
            if (result === true) {
              deleteCollection(collectionId,
              function () {
              swal ({
                title: "Collection deleted",
                type: "success",
                timer: 2000
              });
              viewCollections();
              },
              function (error) {
                viewCollectionDetails(collectionId);
                sweetAlert('File has not been deleted. Contact an administrator', error, "error");
              })
            } else {}
          });
        });
      } else {
        deleteButton.hide();
      }

    var approve = $('.btn-collection-approve');
    if (collection.inProgress.length === 0
      && collection.complete.length === 0
      && collection.reviewed.length > 0) {
      approve.show().one('click', function () {
        postApproveCollection(collection.id);
        swal ({
          title: "Collection approval in progress. It can take some time. You will be redirected soon.",
          type: "success",
          timer: 5000
        });
      });
    }
    else {
      // You can't approve collections unless there is nothing left to be reviewed
      approve.hide();
    }

    //edit collection
    $('.collection-selected .btn-collection-edit').click(function () {
     editCollection(collection);
    });

    //page-list
    $('.page-item').click(function () {
      $('.page-list li').removeClass('selected');
      $('.page-options').hide();

      $(this).parent('li').addClass('selected');
      $(this).next('.page-options').show();
    });

    $('.btn-page-edit').click(function () {
      var path = $(this).attr('data-path');
      var language = $(this).attr('data-language');
      if (language === 'cy') {
        var safePath = checkPathSlashes(path);
        Florence.globalVars.welsh = true;
      } else {
        var safePath = checkPathSlashes(path);
        Florence.globalVars.welsh = false;
      }
      getPageDataDescription(collectionId, safePath,
        success = function () {
          createWorkspace(safePath, collectionId, 'edit');
        },
        error = function (response) {
          handleApiError(response);
        }
      );
    });

    $('.page-delete').click(function () {
      var path = $(this).attr('data-path');
      var language = $(this).attr('data-language');

      //Shows relevant alert text - SweetAlert doesn't return a true or false in same way that confirm() does so have to write each alert with delete function called after it
      function deleteAlert(text) {
        swal ({
          title: "Warning",
          text: text,
          type: "warning",
          showCancelButton: true,
          confirmButtonText: "Delete",
          cancelButtonText: "Cancel",
          closeOnConfirm: false
        }, function(result) {
          if (result === true) {
            if (language === 'cy' && !(path.match(/\/bulletins\//) || path.match(/\/articles\//))) {
              path = path + '/data_cy.json';
            }
            deleteContent(collectionId, path, function() {
              viewCollectionDetails(collectionId);
              swal({
                title: "Page deleted",
                text: "This page has been deleted",
                type: "success",
                timer: 2000
              });
                }, function(error) {
                  handleApiError(error);
                }
            );
          }
        });
      }

      if (path.match(/\/bulletins\//) || path.match(/\/articles\//)) {
        deleteAlert("This will delete the English and Welsh content of this page, if any. Are you sure you want to delete this page from the collection?");
      } else if (language === 'cy') {
        deleteAlert("Are you sure you want to delete this page from the collection?");
      } else {
        deleteAlert("This will delete the English and Welsh content of this page, if any. Are you sure you want to delete this page from the collection?");
      }
    });

    $('.collection-selected .btn-collection-cancel').click(function () {
      $('.collection-selected').stop().animate({right: "-50%"}, 500);
      $('.collections-select-table tbody tr').removeClass('selected');
      // Wait until the animation ends
      setTimeout(function () {
        //viewController('collections');
      }, 500);
    });

    $('.btn-collection-work-on').click(function () {
      Florence.globalVars.welsh = false;
      createWorkspace('', collectionId, 'browse');
    });

    setCollectionDetailsHeight();
  }

  function ProcessPages(pages) {
    _.sortBy(pages, 'uri');
    _.each(pages, function (page) {
      page.uri = page.uri.replace('/data.json', '');
      return page;
    });
  }

  function setCollectionDetailsHeight(){
    var panelHeight = parseInt($('.collection-selected').height());

    var headHeight = parseInt($('.section-head').height());
    var headPadding = parseInt($('.section-head').css('padding-bottom'));
    
    var contentPadding = parseInt($('.section-content').css('padding-bottom'));
    
    var navHeight = parseInt($('.section-nav').height());
    var navPadding = (parseInt($('.section-nav').css('padding-bottom')))+(parseInt($('.section-nav').css('padding-top')));

    var contentHeight = panelHeight-(headHeight+headPadding+contentPadding+navHeight+navPadding);
    $('.section-content').css('height', contentHeight);
  }
}
@@ -4437,24 +4437,26 @@
             
+//
 if (language
@@ -4528,24 +4528,61 @@
 les%5C//))) %7B%0A
+            if (language === 'cy') %7B%0A
             
@@ -5075,24 +5075,26 @@
    %7D%0A%0A      
+//
 if (path.mat
@@ -5144,32 +5144,34 @@
 es%5C//)) %7B%0A      
+//
   deleteAlert(%22T
@@ -5306,24 +5306,26 @@
 n?%22);%0A      
+//
 %7D else if (l
@@ -5429,32 +5429,34 @@
 ction?%22);%0A      
+//
 %7D else %7B%0A       
@@ -5446,32 +5446,34 @@
 /%7D else %7B%0A      
+//
   deleteAlert(%22T
@@ -5608,24 +5608,26 @@
 n?%22);%0A      
+//
 %7D%0A    %7D);%0A%0A 

Change delete functionality for Welsh content