|
@@ -132,6 +132,7 @@ function add_single {
|
|
|
-f Publisher -v "${PUBLISHER}" \
|
|
|
-f ISBN -v "${ISBN}" \
|
|
|
-f Location -v "${LOCATION}" \
|
|
|
+ -f Card -v UNPRINTED \
|
|
|
${LIBRARYFILE}
|
|
|
do_git add `basename ${LIBRARYFILE}`
|
|
|
do_git commit -m "Added record for \"${TITLE}\""
|
|
@@ -232,10 +233,13 @@ function initialize {
|
|
|
%type: Location line
|
|
|
%type: Withdrawn date
|
|
|
%type: Inserted date
|
|
|
+%type: Course line
|
|
|
%type: LoanTo line
|
|
|
%type: LoanOn date
|
|
|
+%typedef: CardPrint enum PRINTED REPRINT UNPRINTED
|
|
|
+%type: Card CardPrint
|
|
|
%mandatory: Title Author LCCN Inserted
|
|
|
-%allowed: ISBN Publisher Copyright Location Withdrawn LoanTo LoanOn
|
|
|
+%allowed: ISBN Publisher Copyright Location Withdrawn LoanTo LoanOn Course Card
|
|
|
%auto: ID Inserted
|
|
|
# file-format ends here
|
|
|
EOF
|