diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/DataSetForm/DataSetFormView.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/DataSetForm/DataSetFormView.js index 791e4ec3b6235f36aec7d733aadd81b823a8d037..cd6a2da822cd75b5ec3abfb971105ed649c4f39d 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/DataSetForm/DataSetFormView.js +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/DataSetForm/DataSetFormView.js @@ -209,8 +209,28 @@ function DataSetFormView(dataSetFormController, dataSetFormModel) { $dataSetTypeFieldSet.append($ccn); for(var cIdx = 0; cIdx < this._dataSetFormModel.linkedData.contentCopies.length; cIdx++) { var cc = this._dataSetFormModel.linkedData.contentCopies[cIdx]; - var $cc = FormUtil.getFieldForLabelWithText("Content Copy", "" + "External DMS: " + cc.externalDms + " Path:" + cc.path); - $dataSetTypeFieldSet.append($cc); + + var externalDmsCode = null; + if(cc.externalDms && cc.externalDms.code) { + externalDmsCode = cc.externalDms.code; + } + + var host = null; + if(cc.externalDms && cc.externalDms.address) { + host = cc.externalDms.address.split(":")[0]; + } + + if(cc) { + var $cc = FormUtil.getFieldForLabelWithText("Content Copy " + cIdx , + "- <u>External DMS</u>: " + externalDmsCode + "</br>" + + "- <u>Host</u>: " + host + "</br>" + + "- <u>Directory</u>: " + cc.path + "</br>" + + "- <u>Commit Hash</u>: " + cc.gitCommitHash + "</br>" + + "- <u>Repository Id</u>: " + cc.gitRepositoryId + "</br>" + + "- <u>Connect cmd</u>: " + "ssh -t " + host + " \"cd " + cc.path + "; bash\"" + ); + $dataSetTypeFieldSet.append($cc); + } } }