diff --git a/datalad_catalog/catalog/assets/app_component_dataset.js b/datalad_catalog/catalog/assets/app_component_dataset.js index ce115642..9c024a6f 100644 --- a/datalad_catalog/catalog/assets/app_component_dataset.js +++ b/datalad_catalog/catalog/assets/app_component_dataset.js @@ -142,7 +142,10 @@ const datasetView = () => if (dataset.url[i].toLowerCase().indexOf("gin.g-node") >= 0) { disp_dataset.is_gin = true; disp_dataset.url = dataset.url[i]; + disp_dataset.url = disp_dataset.url.replace('ssh://', ''); disp_dataset.url = disp_dataset.url.replace('git@gin.g-node.org:', 'https://gin.g-node.org'); + disp_dataset.url = disp_dataset.url.replace('git@gin.g-node.org', 'https://gin.g-node.org'); + disp_dataset.url = disp_dataset.url.replace('.git', ''); } } if (!disp_dataset.url) { @@ -268,6 +271,10 @@ const datasetView = () => // https://stackoverflow.com/questions/60581285/execcommand-is-now-obsolete-whats-the-alternative // https://www.sitepoint.com/clipboard-api/ selectText = document.getElementById("clone_code").textContent; + selectText = '\n ' + selectText + ' \n\n ' + console.log(selectText) + selectText = selectText.replace(/^\s+|\s+$/g, ''); + console.log(selectText) navigator.clipboard .writeText(selectText) .then(() => {}) diff --git a/datalad_catalog/catalog/templates/dataset-template.html b/datalad_catalog/catalog/templates/dataset-template.html index b786fe06..86871c86 100644 --- a/datalad_catalog/catalog/templates/dataset-template.html +++ b/datalad_catalog/catalog/templates/dataset-template.html @@ -15,9 +15,9 @@ Version: {{selectedDataset.dataset_version.substring(0,7)}}  Last updated: {{displayData.last_updated}}  DOI: {{selectedDataset.doi.replace("https://doi.org/", "")}} - not available  + unknown  License: {{selectedDataset.license.name}} - not available + unknown
@@ -132,9 +132,9 @@

Cite dataset

Properties:
- Subdatasets: {{selectedDataset.subdatasets_available_count}}  + Subdatasets: {{selectedDataset.subdatasets_available_count}}  - {{display_property.name}}: {{display_property.value}}  + {{display_property.name}}: {{display_property.value}} 
@@ -172,7 +172,7 @@

Cite dataset

Modified    - + @@ -184,7 +184,7 @@

Cite dataset

v-bind="inputAttrs" v-model="tag_text" v-on="inputHandlers" - placeholder="Search by keyword (select or press enter to add)" + placeholder="Filter by keyword (select or press enter to add)" class="form-control" ref="tag_search_input" @input="inputTagText()" @@ -313,7 +313,7 @@
{{pub.title}}
There are no funding sources listed for the current dataset