From 6e3c8fd7e20ec9f094d282a7bef719ddd5316f6d Mon Sep 17 00:00:00 2001 From: artunit Date: Tue, 30 Nov 2010 04:44:20 +0000 Subject: [PATCH] url fields now stored git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@1093 6d9bc8c9-1ec2-4278-b937-99fde70a366f --- conifer/syrup/views/items.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/conifer/syrup/views/items.py b/conifer/syrup/views/items.py index f7a7e3f..56943b2 100644 --- a/conifer/syrup/views/items.py +++ b/conifer/syrup/views/items.py @@ -111,6 +111,9 @@ def item_add(request, site_id, item_id): elif item_type == 'URL': title = request.POST.get('title', '').strip() url = request.POST.get('url', '').strip() + author = request.POST.get('author', '').strip() + publisher = request.POST.get('publisher', '').strip() + published = request.POST.get('published', '').strip() if not (title and url): # fixme, better error handling. return HttpResponseRedirect(request.get_full_path()) @@ -120,7 +123,10 @@ def item_add(request, site_id, item_id): item_type='URL', parent_heading=parent_item, title=title, - url = url) + url = url, + author = author, + publisher = publisher, + published = published) item.save() elif item_type == 'ELEC': title = request.POST.get('title', '').strip() -- 2.11.0