Proposal: added support for "status" and "blog" metadata for deliverables + one example of usage

This commit is contained in:
Nicolas M. Thiéry 2017-03-14 17:24:27 +01:00 committed by Michael Kohlhase
parent aa81161d2c
commit 16a570c50c

View File

@ -419,6 +419,8 @@
\define@key{deliv}{short}{\def\deliv@short{#1}} \define@key{deliv}{short}{\def\deliv@short{#1}}
\define@key{deliv}{lead}{\def\deliv@lead{#1}} \define@key{deliv}{lead}{\def\deliv@lead{#1}}
\define@key{deliv}{issue}{\def\deliv@issue{#1}} \define@key{deliv}{issue}{\def\deliv@issue{#1}}
\define@key{deliv}{status}{\def\deliv@status{#1}}
\define@key{deliv}{blog}{\def\deliv@blog{#1}}
\newcounter{deliverable} \newcounter{deliverable}
\newcommand{\wpg@deliv}[3]{% keys, title, type \newcommand{\wpg@deliv}[3]{% keys, title, type
\stepcounter{deliverable} \stepcounter{deliverable}
@ -443,8 +445,10 @@
\@ifundefined{deliv@lead} \@ifundefined{deliv@lead}
{\protect\G@refundefinedtrue\@latex@warning{key 'lead' for Deliv \wpg@id undefined}} {\protect\G@refundefinedtrue\@latex@warning{key 'lead' for Deliv \wpg@id undefined}}
{\pdata@def{deliv}{\taskin\deliv@id\wpg@id}{lead}{\deliv@lead}} {\pdata@def{deliv}{\taskin\deliv@id\wpg@id}{lead}{\deliv@lead}}
\@ifundefined{deliv@due}{}{%
\@ifundefined{deliv@issue}{}{\pdata@def{deliv}{\taskin\deliv@id\wpg@id}{issue}{\deliv@issue}} \@ifundefined{deliv@issue}{}{\pdata@def{deliv}{\taskin\deliv@id\wpg@id}{issue}{\deliv@issue}}
\@ifundefined{deliv@status}{}{\pdata@def{deliv}{\taskin\deliv@id\wpg@id}{status}{\deliv@status}}
\@ifundefined{deliv@blog}{}{\pdata@def{deliv}{\taskin\deliv@id\wpg@id}{blog}{\deliv@blog}}
\@ifundefined{deliv@due}{}{%
\@for\@I:=\deliv@due\do{\protected@write\wpg@delivs{}{\string\deliverable% \@for\@I:=\deliv@due\do{\protected@write\wpg@delivs{}{\string\deliverable%
{\ifnum\@I<10 0\@I\else\@I\fi}% sort key {\ifnum\@I<10 0\@I\else\@I\fi}% sort key
{\@I}% due date {\@I}% due date