regluit/core/parameters.py

50 lines
1.5 KiB
Python
Raw Normal View History

2014-01-03 19:15:26 +00:00
(REWARDS, BUY2UNGLUE, THANKS) = (1, 2, 3)
2014-02-20 03:18:23 +00:00
(INDIVIDUAL, LIBRARY, BORROWED, RESERVE, THANKED) = (1, 2, 3, 4, 5)
TESTING = 0
2016-07-30 06:36:01 +00:00
OFFER_CHOICES = ((INDIVIDUAL,'Individual license'),(LIBRARY,'Library License'))
2016-08-05 19:53:29 +00:00
ACQ_CHOICES = ((INDIVIDUAL,'Individual license'),(LIBRARY,'Library License'),(BORROWED,'Borrowed from Library'), (TESTING,'Just for Testing'), (RESERVE,'On Reserve'),(THANKED,'Already Thanked'),)
AGE_LEVEL_CHOICES = (
('', 'No Rating'),
('5-6', 'Children\'s - Kindergarten, Age 5-6'),
('6-7', 'Children\'s - Grade 1-2, Age 6-7'),
('7-8', 'Children\'s - Grade 2-3, Age 7-8'),
('8-9', 'Children\'s - Grade 3-4, Age 8-9'),
('9-11', 'Children\'s - Grade 4-6, Age 9-11'),
('12-14', 'Teen - Grade 7-9, Age 12-14'),
('15-18', 'Teen - Grade 10-12, Age 15-18'),
('18-', 'Adult/Advanced Reader')
)
2016-08-15 22:28:39 +00:00
TEXT_RELATION_CHOICES = (
('translation', 'translation'),
('revision', 'revision'),
('sequel', 'sequel'),
('compilation', 'compilation')
)
2016-08-05 19:53:29 +00:00
ID_CHOICES = (
('http', 'Web Address'),
('isbn', 'ISBN'),
('doab', 'DOABooks ID'),
('gtbg', 'Project Gutenberg Number'),
('doi', 'Digital Object Identifier'),
('oclc', 'OCLC Number'),
('goog', 'Google Books ID'),
('gdrd', 'Goodreads ID'),
('thng', 'Library Thing ID'),
('olwk', 'Open Library Work ID'),
('glue', 'Unglue.it ID'),
('ltwk', 'Library Thing Work ID'),
)
WORK_IDENTIFIERS = ('doi','olwk','glue','ltwk')
ID_CHOICES_MAP = dict(ID_CHOICES)
2016-08-05 19:53:29 +00:00