# Scraper user exit. # # Copyright © 1999-2007 Readerware Corporation. All Rights Reserved. # # To activate this sample userexit script it must be renamed to # userexit.py. If userexit.py exists it is called immediately # before the scraper process returns. You can change any of the # global variables to customize the extraction process. # More info: http://www.readerware.com/help/rwCustomExtraction.html # # This sample script moves The LOC Call Number to a user defined # field. You can change which field receives the call number # by simply changing the user number. import string def userextract(): global title,author,isbn,publisher,format,first,signed,date,place global copies,rating,condition,category,read,pflag,eflag,value global comments,dateEntered,dataSource,cart,ordered global lccn,dewey,userNumber,copyDate,valueDate,location global series,pages,keywords,dimensions global user1,user2,user3,user4,user5,user6,user7,user8,user9,user10 global author2,author3,author4,author5,author6 global usedprice,usedcount,collectibleprice,collectiblecount global newprice,newcount,listprice,readinglevel,salesrank,available global buyerwaiting,editionNumber,weight,image global fullDateFormat,source global callnumber user1 = callnumber userextract()