From 3ace2173b02d5e012b8bea47b38571dffb009e93 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Sun, 12 Mar 2017 21:53:15 +0000
Subject: jslectureplanner (12mar17)

git-svn-id: svn://tug.org/texlive/trunk@43476 c570f23f-e606-0410-a88d-b1316a301751
---
 .../tex/latex/jslectureplanner/jsmembertable.sty      | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/jslectureplanner/jsmembertable.sty')

diff --git a/Master/texmf-dist/tex/latex/jslectureplanner/jsmembertable.sty b/Master/texmf-dist/tex/latex/jslectureplanner/jsmembertable.sty
index 01bdc0da4f8..19428272eb7 100644
--- a/Master/texmf-dist/tex/latex/jslectureplanner/jsmembertable.sty
+++ b/Master/texmf-dist/tex/latex/jslectureplanner/jsmembertable.sty
@@ -24,8 +24,8 @@
 %%
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
-\def\filedate{2016/10/19}
-\def\fileversion{1.4}
+\def\filedate{2017/03/12}
+\def\fileversion{1.5}
 \def\filename{jsmembertable.sty}
 
 \NeedsTeXFormat{LaTeX2e}
@@ -54,6 +54,11 @@
   \@datatooltrue
 }
 \DeclareOptionX{datafile}{\setkeys{mem}{datafile=#1}}
+\def\jsmt@datakeys{pname,sname,mid,email}
+\define@key{mem}{datakeys}{%
+  \def\jsmt@datakeys{#1}
+}
+\DeclareOptionX{datakeys}{\setkeys{mem}{datakeys={#1}}}
 \ProcessOptionsX
 
 %
@@ -63,8 +68,8 @@
 % Load datatool if necessary
 \if@datatool
   \RequirePackage{datatool}
-  \DTLloadrawdb[noheader,keys={fname,sname,mid,email}]{data}{\jsmt@datafile}
-  \dtlsort{sname,fname}{data}{\dtlicompare}
+  \DTLloadrawdb[noheader,keys={\jsmt@datakeys}]{data}{\jsmt@datafile}
+  \dtlsort{sname,pname}{data}{\dtlicompare}
 \fi
 
 %
@@ -194,7 +199,7 @@
   \endhead
   \if@datatool
     \DTLforeach*{data}{%
-      \jsmt@firstname=fname,\jsmt@surname=sname,\jsmt@mid=mid,\jsmt@email=email}{%
+      \jsmt@firstname=pname,\jsmt@surname=sname,\jsmt@mid=mid,\jsmt@email=email}{%
       \DTLiffirstrow{}{\tabularnewline\hline}%
       \getmembernr & \jsmt@mid & \jsmt@surname, \jsmt@firstname & \jsmt@email%
     }%
@@ -646,7 +651,7 @@
   \endhead
   \if@datatool%
     \DTLforeach*{data}{%
-      \jsmt@firstname=fname,\jsmt@surname=sname}{%
+      \jsmt@firstname=pname,\jsmt@surname=sname}{%
       \DTLiffirstrow{}{\tabularnewline\hline}%
       \bodyrowone{\jsmt@surname, \jsmt@firstname}%
     }%
@@ -681,7 +686,7 @@
     \endhead
     \if@datatool
       \DTLforeach*{data}{%
-        \jsmt@firstname=fname,\jsmt@surname=sname}{%
+        \jsmt@firstname=pname,\jsmt@surname=sname}{%
         \DTLiffirstrow{}{\tabularnewline\hline}%
         \bodyrowtwo{\jsmt@surname, \jsmt@firstname}%
       }%
-- 
cgit v1.2.3

