Browse Source

Update to using recset

Samuel W. Flint 7 years ago
parent
commit
90e8e79e25
1 changed files with 4 additions and 4 deletions
  1. 4 4
      library.org

+ 4 - 4
library.org

@@ -287,14 +287,14 @@ The following defines the format of book records, which are used to describe eac
       shift
 
       if [[ $FIELD = "Withdrawn" ]] ; then
-          recins -e "ID = ${ID}" \
-                 -f "Withdrawn" -v `date "%a, %d %b %Y %H:%M:%S %z"` \
+          recset -e "ID = ${ID}" \
+                 -f "Withdrawn" -S `date "%a, %d %b %Y %H:%M:%S %z"` \
                  ${LIBRARYFILE}
       else
           VALUE=$1
           shift
-          recins -e "ID = ${ID}" \
-                 -f "${FIELD}" -v "${VALUE}" \
+          recset -e "ID = ${ID}" \
+                 -f "${FIELD}" -s "${VALUE}" \
                  ${LIBRARYFILE}
       fi
       do-git add `basename ${LIBRARYFILE}`