From: gfawcett Date: Sun, 3 Apr 2011 01:08:49 +0000 (+0000) Subject: tweak X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=991226be0d7798f064874658edd610668c94f631;p=Syrup.git tweak git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@1307 6d9bc8c9-1ec2-4278-b937-99fde70a366f --- diff --git a/conifer/syrup/views/items.py b/conifer/syrup/views/items.py index 02dadcc..296548d 100644 --- a/conifer/syrup/views/items.py +++ b/conifer/syrup/views/items.py @@ -128,13 +128,13 @@ def item_add(request, site_id, item_id): replacement = '; '.join(ris[risfield]) POST[field] = xlate(replacement) break - def space_comments(names): + def space_out_names(names): # RIS doesn't put spaces after commas in names return re.sub(',(?=[^ ])', ', ', names) update('title', ('TI', 'T1')) update('source_title', ('JO', 'JF')) - update('author', ('AU', 'A1'), space_comments) + update('author', ('AU', 'A1'), space_out_names) update('url', ('UR',)) update('volume', ('VL',)) update('issue', ('IS',))