Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PRICE_TYPE_CODE = (
- ('01', '01 - RRP excluding tax'),
- ('02', '02 - RRP including tax'),
- ('03', '03 - Fixed retail price excluding tax'),
- ('04', '04 - Fixed retail price including tax'),
- ('05', '05 - Supplier net price excluding tax'),
- ('06', '06 - Supplier net price excluding tax: rental goods'),
- ('07', '07 - Supplier net price including tax'),
- ('08', '08 - Supplier alternative net price excluding tax'),
- ('09', '09 - Supplier alternative net price including tax'),
- ('11', '11 - Special sale RRP excluding tax'),
- ('12', '12 - Special sale RRP including tax'),
- ('13', '13 - Special sale fixed retail price excluding tax'),
- ('14', '14 - Special sale fixed retail price including tax'),
- ('15', '15 - Supplier net price for special sale excluding tax'),
- ('17', '17 - Supplier net price for special sale including tax'),
- ('21', '21 - Pre-publication RRP excluding tax'),
- ('22', '22 - Pre-publication RRP including tax'),
- ('23', '23 - Pre-publication fixed retail price excluding tax'),
- ('24', '24 - Pre-publication fixed retail price including tax'),
- ('25', '25 - Supplier prepublication net price excluding tax'),
- ('27', '27 - Supplier prepublication net price including tax'),
- ('31', '31 - Freight-pass-through RRP excluding tax'),
- ('32', '32 - Freight-pass-through billing price excluding tax'),
- ('41', '41 - Publishers agency retail price excluding tax'),
- ('42', '42 - Publishers agency retail price including tax'),
- )
- # LIST 33 Other text type code
- OTHER_TEXT_TYPE_CODE = (
- ('01', 'Main description'),
- ('02', 'Short description/annotation'),
- ('03', 'Long description'),
- ('04', 'Table of contents'),
- ('05', 'Review quote, restricted length'),
- ('06', 'Quote from review of previous edition'),
- ('07', 'Review text'),
- ('08', 'Review quote'),
- ('09', 'Promotional headline'),
- ('10', 'Previous review quote'),
- ('11', 'Author comments'),
- ('12', 'Description for reader'),
- ('13', 'Biographical note'),
- ('14', 'Description for Reading Group Guide'),
- ('15', 'Discussion question for Reading Group Guide'),
- ('16', 'Competing titles'),
- ('17', 'Flap copy'),
- ('18', 'Back cover copy'),
- ('19', 'Feature'),
- ('20', 'New feature'),
- ('21', 'Publishers Notice'),
- ('22', 'Index'),
- ('23', 'Excerpt from book'),
- ('24', 'First chapter'),
- ('25', 'Description for sales people'),
- ('26', 'Description for press or other media'),
- ('27', 'Description for subsidiary rights department'),
- ('28', 'Description for teachers/educators'),
- ('30', 'Unpublished endorsement'),
- ('31', 'Description for bookstore'),
- ('32', 'Description for library'),
- ('33', 'Introduction or preface'),
- ('34', 'Full text'),
- ('35', 'Promotional text'),
- ('40', 'Author interview / QandA'),
- ('41', 'Reading Group Guide'),
- ('42', 'Commentary / discussion'),
- ('43', 'Short description for series or set'),
- ('44', 'Long description for series or set'),
- ('45', 'Contributor event schedule'),
- ('46', 'License'),
- ('47', 'Open access statement'),
- ('98', 'Master brand name'),
- ('99', 'Country of final manufacture'),
- )
- # LIST 46 Sales rights type code
- SALES_RIGHTS_TYPE_CODE = (
- ('00', 'Sales rights unknown'),
- ('01', 'For sale with exclusive rights in the specified countries or territories'),
- ('02', 'For sale with non-exclusive rights in the specified countries or territories'),
- ('03', 'Not for sale in the specified countries or territories (reason unspecified)'),
- ('04', 'Not for sale in the specified countries (but publisher holds exclusive rights in those countries or territories)'),
- ('05', 'Not for sale in the specified countries (publisher holds non-exclusive rights in those countries or territories)'),
- ('06', 'Not for sale in the specified countries (because publisher does not hold rights in those countries or territories)'),
- ('07', 'For sale with exclusive rights in the specified countries or territories (sales restriction applies)'),
- ('08', 'For sale with non-exclusive rights in the specified countries or territories (sales restriction applies)'),
- )
- # LIST 54 availability status codes
- AVAILABILITY_CODE = (
- ('AB', 'Cancelled'),
- ('AD', 'Available direct from publisher only'),
- ('CS', 'Availability uncertain'),
- ('EX', 'No longer stocked by us'),
- ('IP', 'Available'),
- ('MD', 'Manufactured on demand'),
- ('NP', 'Not yet published'),
- ('NY', 'Newly catalogued, not yet in stock'),
- ('OF', 'Other format available'),
- ('OI', 'Out of stock indefinitely'),
- ('OP', 'Out of print'),
- ('OR', 'Replaced by new edition'),
- ('PP', 'Publication postponed indefinitely'),
- ('RF', 'Refer to another supplier'),
- ('RM', 'Remaindered'),
- ('RP', 'Reprinting'),
- ('RU', 'Reprinting, undated'),
- ('TO', 'Special order'),
- ('TP', 'Temporarily out of stock because publisher cannot supply'),
- ('TU', 'Temporarily unavailable'),
- ('UR', 'Unavailable, awaiting reissue'),
- ('WR', 'Will be remaindered as of (date)'),
- ('WS', 'Withdrawn from sale'),
- )
- # LIST 59 price type qualifier
- PRICE_QUALIFIER_CODE = (
- ('00', 'Unqualified Price'),
- ('01', 'Member/subscriber price'),
- ('02', 'Export price'),
- ('03', 'Reduced price applicable when the item is purchased as part of a set'),
- ('04', 'Voucher price'),
- ('05', 'Consumer price'),
- ('06', 'Corporate price'),
- ('07', 'Reservation order price'),
- ('08', 'Promotional offer price'),
- ('09', 'Linked price'),
- )
- # LIST 65 product availability
- PRODUCT_AVAILABILITY_CODE = (
- ('01', 'Cancelled'),
- ('10', 'Not yet available'),
- ('11', 'Awaiting stock'),
- ('12', 'Not yet available, will be POD'),
- ('20', 'Available'),
- ('21', 'In stock'),
- ('22', 'To order'),
- ('23', 'POD'),
- ('30', 'Temporarily unavailable'),
- ('31', 'Out of stock'),
- ('32', 'Reprinting'),
- ('33', 'Awaiting reissue'),
- ('34', 'Temporarily withdrawn from sale'),
- ('40', 'Not available (reason unspecified)'),
- ('41', 'Not available, replaced by new product'),
- ('42', 'Not available, other format available'),
- ('43', 'No longer supplied by us'),
- ('44', 'Apply direct'),
- ('45', 'Not sold separately'),
- ('46', 'Withdrawn from sale'),
- ('47', 'Remaindered'),
- ('48', 'Not available, replaced by POD'),
- ('49', 'Recalled'),
- ('50', 'Not sold as set'),
- ('51', 'Not available, publisher indicates OP'),
- ('52', 'Not available, publisher no longer sells product in this market'),
- ('97', 'No recent update received'),
- ('98', 'No longer receiving updates'),
- ('99', 'Contact supplier'),
- )
- # LIST 71 sales restriction type code
- SALES_RESTRICTION_TYPE_CODE = (
- ('00', 'Unspecified'),
- ('01', 'Retailer exclusive / own brand'),
- ('02', 'Office supplies edition'),
- ('03', 'Internal publisher use only'),
- ('04', 'Retailer exclusive'),
- ('05', 'Retailer own brand'),
- ('06', 'Library edition'),
- ('07', 'Schools only edition'),
- ('08', 'Indiziert'),
- ('09', 'Not for sale to libraries'),
- ('10', 'News outlet edition'),
- ('11', 'Retailer exception'),
- )
- # LIST 102 sales outlet identifier type
- SALES_OUTLET_ID_TYPE = (
- ('01', 'Proprietary'),
- ('02', 'BIC sales outlet ID'),
- ('03', 'ONIX sales outlet ID'),
- )
- # LIST 139 ONIX sales outlets
- ONIX_SALES_OUTLET_ID = (
- ("ACM", "A C Moore"),
- ("AAP", "AandP"),
- ("ALB", "Albertson's"),
- ("AMZ", "Amazon"),
- ("ANR", "Angus and Robertson"),
- ("ANB", "Anobii"),
- ("APC", "Apple"),
- ("ASD", "Asda"),
- ("AUD", "Audible"),
- ("BDL", "B Dalton"),
- ("BNO", "Barnes and Noble"),
- ("BBB", "Bed Bath and Beyond"),
- ("BST", "Best Buy"),
- ("BIL", "Bilbary"),
- ("BJW", "BJ's Wholesale Club"),
- ("BLK", "Blackwell's"),
- ("BCA", "Book Club Associates"),
- ("BSH", "Bookish"),
- ("BKP", "Bookpeople"),
- ("BKM", "Books-A-Million"),
- ("BRD", "Borders"),
- ("BRB", "Borders/Books Etc"),
- ("BRT", "British Bookshops"),
- ("CDL", "Casa del Libro"),
- ("CHD", "Christianbook.com"),
- ("COP", "Copia"),
- ("CST", "Costco"),
- ("CRB", "Crate and Barrel"),
- ("CVS", "CVS Drug Stores"),
- ("CYB", "Cyberlibris"),
- ("DSG", "Dick's Sporting Goods"),
- ("DIL", "Dilicom"),
- ("DYM", "Dymocks"),
- ("ELC", "Early Learning Centre"),
- ("ESN", "Eason"),
- ("EBC", "Ebooks Corp"),
- ("ECH", "eChristian"),
- ("ECI", "El Corte Ingles"),
- ("ELE", "Electre"),
- ("ELB", "Elib.se"),
- ("EMP", "Empik"),
- ("ENH", "English Heritage"),
- ("FDB", "FeedBooks"),
- ("FNC", "Fnac"),
- ("FRY", "Fry's Electronics"),
- ("GMS", "Gamestop"),
- ("GOO", "Google Books"),
- ("GOS", "Blinkbo"),
- ("HST", "Hastings Entertainment"),
- ("HMV", "HMV"),
- ("HMD", "Home Depot"),
- ("IMM", "Immateriel.fr"),
- ("IND", "Indigo-Chapters"),
- ("IZN", "Izneo"),
- ("JSM", "John Smith and Son"),
- ("KMT", "K-Mart"),
- ("KNB", "KNFB/Blio"),
- ("KNO", "Kno Inc"),
- ("KBO", "Kobo"),
- ("KOO", "Koorong"),
- ("KRG", "Kroger"),
- ("LWE", "Lowe's"),
- ("MKS", "Marks and Spencer"),
- ("MAT", "Matras"),
- ("MMS", "Media Markt/Satur"),
- ("MCR", "Microcenter"),
- ("MRR", "Morrisons"),
- ("MTC", "Mothercare"),
- ("MYB", "MyBoox"),
- ("NTR", "National Trust"),
- ("NUM", "Numilog"),
- ("OFD", "Office Depot"),
- ("OFM", "Office Max"),
- ("OLF", "OLF"),
- ("PST", "Past Times"),
- ("PTS", "Pet Smart"),
- ("PTC", "Petco"),
- ("PLY", "Play.com"),
- ("PTB", "Pottery Barn"),
- ("RED", "RedShelf"),
- ("RDB", "Readbooks"),
- ("RCL", "ReadCloud"),
- ("RST", "Restoration Hardware"),
- ("RET", "Rethink"),
- ("RTZ", "Ritz Camera"),
- ("SFW", "Safeway"),
- ("SNS", "Sainsbury's"),
- ("SLF", "Selfridges"),
- ("SKB", "Skoobe"),
- ("SMW", "SmashWords"),
- ("SNY", "Sony"),
- ("STP", "Staples"),
- ("TEA", "The Ebook Alternative"),
- ("TRG", "Target"),
- ("TES", "Tesco"),
- ("TSR", "Toys 'R' Us"),
- ("TSO", "TSO (The Stationery Office)"),
- ("TXR", "Txtr"),
- ("VRG", "Virgin Megastores"),
- ("WHS", "W H Smith"),
- ("WTR", "Waitrose"),
- ("WLM", "Wal-Mart"),
- ("WST", "Waterstone's"),
- ("WHT", "Whitcoul's"),
- ("WLS", "Williams Sonoma"),
- ("WLW", "Woolworths"),
- ("ZVV", "Zavv"),
- ("ZZZ", "Other"),
- )
- class ONIXCodes(object):
- def get_notification_type(self, code):
- codes = {
- '01': 'Early Notification',
- '02': 'Advance Notification',
- '03': 'Confirmed on Publication',
- '04': 'Update',
- '05': 'Delete',
- '08': 'Notice of sale',
- '09': 'Notice of acquisition',
- '12': 'Update (Supply only)',
- '13': 'Update (MarketRep only)',
- '14': 'Update (Supply and MarketRep)'
- }
- return codes.get(code)
- def get_product_id_type(self, code):
- codes = {
- '01': 'Proprietary',
- '02': 'ISBN-10',
- '03': 'GTIN-13',
- '04': 'UPC',
- '05': 'ISMN-10',
- '06': 'DOI',
- '13': 'LCCN',
- '14': 'GTIN-14',
- '15': 'ISBN-13',
- '17': 'Legal Deposit Number',
- '22': 'URN',
- '23': 'OCLC number',
- '24': 'Co-publisher ISBN-13',
- '25': 'ISMN-13',
- '26': 'ISBN-A'
- }
- return codes.get(code)
- def get_title_type(self, code):
- codes = {
- '01': 'Distinctive Title',
- '02': 'ISSN',
- '03': 'Title in original language',
- '04': 'Title acronym',
- '05': 'Abbrreviated title',
- '06': 'Title in other language',
- '07': 'Thematic title of journal issue',
- '08': 'Former title',
- '10': 'Distributers Title',
- '11': 'Alternative title on cover',
- '12': 'Alternative title on back',
- '13': 'Expanded title'
- }
- return codes.get(code)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement