diff --git a/omeroweb/webclient/templates/webclient/annotations/includes/toolbar.html b/omeroweb/webclient/templates/webclient/annotations/includes/toolbar.html index a120d8a22b..87c2ec7616 100644 --- a/omeroweb/webclient/templates/webclient/annotations/includes/toolbar.html +++ b/omeroweb/webclient/templates/webclient/annotations/includes/toolbar.html @@ -355,7 +355,7 @@ {% if not share %} {% if image.showOriginalFilePaths %} - {% endif %} diff --git a/omeroweb/webclient/templates/webclient/annotations/metadata_general.html b/omeroweb/webclient/templates/webclient/annotations/metadata_general.html index c997131222..2329d61954 100644 --- a/omeroweb/webclient/templates/webclient/annotations/metadata_general.html +++ b/omeroweb/webclient/templates/webclient/annotations/metadata_general.html @@ -149,11 +149,14 @@ var repo = data.repo, client = data.client, html = ""; - $panel_title.html(repo.length + " Image file" + (repo.length>1 ? "s:" : ":")); + $panel_title.html("Fileset Info"); + + html += `

Fileset ID: ${data.fileset.id}

` + + html += `

File count: ${repo.length}

` if (importTransfer) { - html += "

Imported with --transfer="+ importTransfer; - html += "


"; + html += "

Imported with: --transfer="+ importTransfer + "

"; } html += "

Imported from:

"; diff --git a/omeroweb/webgateway/views.py b/omeroweb/webgateway/views.py index 771d971538..c9bd449895 100644 --- a/omeroweb/webgateway/views.py +++ b/omeroweb/webgateway/views.py @@ -2686,7 +2686,12 @@ def original_file_paths(request, iid, conn=None, **kwargs): if image is None: raise Http404 paths = image.getImportedImageFilePaths() - return {"repo": paths["server_paths"], "client": paths["client_paths"]} + fileset_id = image.fileset.id.val + return { + "repo": paths["server_paths"], + "client": paths["client_paths"], + "fileset": {"id": fileset_id}, + } @login_required()