diff --git a/ui-eln-lims/src/core-plugins/eln-lims/1/dss/reporting-plugins/exports-api/exportsApi.py b/ui-eln-lims/src/core-plugins/eln-lims/1/dss/reporting-plugins/exports-api/exportsApi.py index 9565d715b0f63b16145540dc4d72e7e83d6f5ef4..54681f721c1f77108a5e66262aa6307e71621198 100644 --- a/ui-eln-lims/src/core-plugins/eln-lims/1/dss/reporting-plugins/exports-api/exportsApi.py +++ b/ui-eln-lims/src/core-plugins/eln-lims/1/dss/reporting-plugins/exports-api/exportsApi.py @@ -259,11 +259,11 @@ def cleanUp(tempDirPath, tempZipFilePath): FileUtils.forceDelete(File(tempDirPath)); FileUtils.forceDelete(File(tempZipFilePath)); -# Return Name if it exists, otherwise return code +# Return Name (Code) if it exists, otherwise return just Code def extractName(entity): name = None if "$NAME" in entity.getProperties(): - name = entity.getProperties().get("$NAME") + name = entity.getProperties().get("$NAME") + " (" + entity.getCode() + ")" if name is not None and len(name) > 0: return name else: