From 991226be0d7798f064874658edd610668c94f631 Mon Sep 17 00:00:00 2001 From: gfawcett Date: Sun, 3 Apr 2011 01:08:49 +0000 Subject: [PATCH] tweak git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@1307 6d9bc8c9-1ec2-4278-b937-99fde70a366f --- conifer/syrup/views/items.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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',)) -- 2.11.0