From 805dc54afc7afeea7ae43d8e040614e87d8455d0 Mon Sep 17 00:00:00 2001 From: Allan Brighton Date: Fri, 11 Nov 2022 21:33:55 +0100 Subject: [PATCH] Added --documentNumber option to icd-db and field to PDF options popup to specify optional document number to display under the subtitle in the generated PDF. --- icd-db/src/main/scala/csw/services/icd/PdfCache.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/icd-db/src/main/scala/csw/services/icd/PdfCache.scala b/icd-db/src/main/scala/csw/services/icd/PdfCache.scala index afd093f3..5f916b3c 100644 --- a/icd-db/src/main/scala/csw/services/icd/PdfCache.scala +++ b/icd-db/src/main/scala/csw/services/icd/PdfCache.scala @@ -52,7 +52,8 @@ class PdfCache(cacheDir: File) { sv.maybeComponent.isEmpty && !clientApi && !searchAllSubsystems && - pdfOptions.details + pdfOptions.details && + pdfOptions.documentNumber.isEmpty } // Gets the file used to store the ICD between the two subsystem versions