# the given item.
RESERVES_DESK_NAME = getattr(settings, 'RESERVES_DESK_NAME', None)
+
+ # BIB_PART_MERGE: if True, merge parts under one title
+ BIB_PART_MERGE = getattr(settings, 'BIB_PART_MERGE', False)
# USE_Z3950: if True, use Z39.50 for catalogue search; if False, use OpenSRF.
# Don't set this value directly here: rather, if there is a valid Z3950_CONFIG
return bc_dups, id_dups
+ #syrup tries to store as little as possible about an
+ #item, which leads to a lot of hoops when combining
+ #volumes/parts
def get_copydetails(barcode,copyids,reserves_loc,bcs,ids):
copy_list = []
-
bcs_set, ids_set = collect_set(barcode,bcs,ids)
for copyid in copyids:
copies = get_copydetails(barcode,copyids,self.RESERVES_DESK_NAME,bcs,ids)
desk = get_desk_counts(counts)
+ if barcode:
+ desk = len(copies)
+
avail = desk
copy_parts = []
duetime = None
# http://code.google.com/p/django-cas/
CAS_AUTHENTICATION = False
+# This flag will merge titles with parts into
+# one entry on public display
+BIB_PART_MERGE = False
+
+
#---------------------------------------------------------------------------
# local_settings.py
# walk the tree
out = []
- out_barcodes = []
- out_ids = []
def walk(parent, accum):
+ out_barcodes = []
+ out_ids = []
here = dct.get(parent, [])
for item in here:
sub = []
walk(item, sub)
push_thru, bib_barcodes, syrup_ids = deal_with_dups(item,items,edit_status,out_barcodes)
+
if len(bib_barcodes) > 0:
out_barcodes.append(bib_barcodes)
out_ids.append(syrup_ids)