chore(print): improve pdf metadata to include apc ident
This commit is contained in:
parent
0fd436a3cb
commit
3c5cffb409
@ -50,6 +50,7 @@ instance MDLetter LetterCourseCertificate where
|
|||||||
letterMeta LetterCourseCertificate{..} DateTimeFormatter{ format } lang _rcvrEnt =
|
letterMeta LetterCourseCertificate{..} DateTimeFormatter{ format } lang _rcvrEnt =
|
||||||
mkMeta
|
mkMeta
|
||||||
[ toMeta "participant" ccParticipant
|
[ toMeta "participant" ccParticipant
|
||||||
|
, toMeta "subject-meta" ccParticipant
|
||||||
, mbMeta "fra-number" ccFraNumber
|
, mbMeta "fra-number" ccFraNumber
|
||||||
, mbMeta "fra-department" ccFraDepartment
|
, mbMeta "fra-department" ccFraDepartment
|
||||||
, mbMeta "company" ccCompany
|
, mbMeta "company" ccCompany
|
||||||
|
|||||||
@ -53,6 +53,7 @@ instance MDLetter LetterExpireQualification where
|
|||||||
, toMeta "licencename" leqName
|
, toMeta "licencename" leqName
|
||||||
, toMeta "licenceshort" leqShort
|
, toMeta "licenceshort" leqShort
|
||||||
, toMeta "licenceholder" leqHolderDN
|
, toMeta "licenceholder" leqHolderDN
|
||||||
|
, toMeta "subject-meta" leqHolderDN
|
||||||
, mbMeta "expiry" (format SelFormatDate <$> leqExpiry)
|
, mbMeta "expiry" (format SelFormatDate <$> leqExpiry)
|
||||||
, mbMeta "licence-url" leqUrl
|
, mbMeta "licence-url" leqUrl
|
||||||
, toMeta "de-opening" $ bool ("Guten Tag " <> leqHolderDN <> ",") "Sehr geehrte Damen und Herren," isSupervised
|
, toMeta "de-opening" $ bool ("Guten Tag " <> leqHolderDN <> ",") "Sehr geehrte Damen und Herren," isSupervised
|
||||||
|
|||||||
@ -17,8 +17,8 @@
|
|||||||
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
|
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
|
||||||
\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
|
\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
|
||||||
\hypersetup{
|
\hypersetup{
|
||||||
$if(title-meta)$
|
$if(subject-meta)$
|
||||||
pdftitle={$title-meta$},
|
pdfsubject={$subject-meta$},
|
||||||
$endif$
|
$endif$
|
||||||
$if(author-meta)$
|
$if(author-meta)$
|
||||||
pdfauthor={$author-meta$},
|
pdfauthor={$author-meta$},
|
||||||
@ -28,11 +28,11 @@ $if(lang)$
|
|||||||
$endif$
|
$endif$
|
||||||
$if(is-de)$
|
$if(is-de)$
|
||||||
$if(de-subject)$
|
$if(de-subject)$
|
||||||
pdfsubject={$de-subject$},
|
pdftitle={$de-subject$},
|
||||||
$endif$
|
$endif$
|
||||||
$else$
|
$else$
|
||||||
$if(en-subject)$
|
$if(en-subject)$
|
||||||
pdfsubject={$en-subject$},
|
pdftitle={$en-subject$},
|
||||||
$endif$
|
$endif$
|
||||||
$endif$
|
$endif$
|
||||||
$if(apc-ident)$
|
$if(apc-ident)$
|
||||||
|
|||||||
@ -17,8 +17,8 @@
|
|||||||
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
|
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
|
||||||
\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
|
\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
|
||||||
\hypersetup{
|
\hypersetup{
|
||||||
$if(title-meta)$
|
$if(subject-meta)$
|
||||||
pdftitle={$title-meta$},
|
pdfsubject={$subject-meta$},
|
||||||
$endif$
|
$endif$
|
||||||
$if(author-meta)$
|
$if(author-meta)$
|
||||||
pdfauthor={$author-meta$},
|
pdfauthor={$author-meta$},
|
||||||
@ -28,11 +28,11 @@ $if(lang)$
|
|||||||
$endif$
|
$endif$
|
||||||
$if(is-de)$
|
$if(is-de)$
|
||||||
$if(de-subject)$
|
$if(de-subject)$
|
||||||
pdfsubject={$de-subject$},
|
pdftitle={$de-subject$},
|
||||||
$endif$
|
$endif$
|
||||||
$else$
|
$else$
|
||||||
$if(en-subject)$
|
$if(en-subject)$
|
||||||
pdfsubject={$en-subject$},
|
pdftitle={$en-subject$},
|
||||||
$endif$
|
$endif$
|
||||||
$endif$
|
$endif$
|
||||||
$if(apc-ident)$
|
$if(apc-ident)$
|
||||||
|
|||||||
@ -10,8 +10,14 @@
|
|||||||
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
|
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
|
||||||
\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
|
\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
|
||||||
\hypersetup{
|
\hypersetup{
|
||||||
$if(title-meta)$
|
$if(is-de)$
|
||||||
pdftitle={$title-meta$},
|
$if(de-subject)$
|
||||||
|
pdftitle={$de-subject$},
|
||||||
|
$endif$
|
||||||
|
$else$
|
||||||
|
$if(en-subject)$
|
||||||
|
pdftitle={$en-subject$},
|
||||||
|
$endif$
|
||||||
$endif$
|
$endif$
|
||||||
$if(author-meta)$
|
$if(author-meta)$
|
||||||
pdfauthor={$author-meta$},
|
pdfauthor={$author-meta$},
|
||||||
@ -19,11 +25,11 @@ $endif$
|
|||||||
$if(lang)$
|
$if(lang)$
|
||||||
pdflang={$lang$},
|
pdflang={$lang$},
|
||||||
$endif$
|
$endif$
|
||||||
$if(subject)$
|
$if(subject-meta)$
|
||||||
pdfsubject={$subject$},
|
pdfsubject={$subject-meta$},
|
||||||
$endif$
|
$endif$
|
||||||
$if(keywords)$
|
$if(apc-ident)$
|
||||||
pdfkeywords={$for(keywords)$$keywords$$sep$, $endfor$},
|
pdfkeywords={$apc-ident$},
|
||||||
$endif$
|
$endif$
|
||||||
}
|
}
|
||||||
\usepackage{url}
|
\usepackage{url}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user