Browse Source

Add/update functionality for cards

Samuel W. Flint 4 years ago
parent
commit
6cc46cd01f
1 changed files with 5 additions and 1 deletions
  1. 5 1
      library

+ 5 - 1
library

@@ -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