Browse Source

Add CardPrint support

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

+ 5 - 1
library.org

@@ -160,10 +160,13 @@ The following defines the format of book records, which are used to describe eac
   %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
 #+END_SRC
 
@@ -287,6 +290,7 @@ This handles git as needed, by first checking to see if the first argument is ~i
              -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}\""