import warnings
import pdb
-from conifer.integration.hooksystem import gethook, callhook, callhook_required
+from conifer.plumbing.hooksystem import gethook, callhook, callhook_required
from conifer.syrup import models
from datetime import datetime
from django.contrib.auth import authenticate, login, logout
from conifer.libsystems.marcxml import (marcxml_to_dictionary,
marcxml_dictionary_to_dc)
+from django.utils.translation import ugettext as _
#-----------------------------------------------------------------------------
# Authorization
if request.user.is_anonymous():
# then take them to login screen....
dest = (request.META['SCRIPT_NAME'] + \
- '/accounts/login/?next=' + request.META['PATH_INFO'])
+ '/accounts/login/?next=%s%s' % (
+ request.META['SCRIPT_NAME'],
+ request.META['PATH_INFO']))
return HttpResponseRedirect(dest)
else:
return simple_message(_('Access denied.'), message,
import itertools
import urllib
-from conifer.integration.hooksystem import gethook, callhook
-from conifer.syrup import models
-from django.utils import translation
+from conifer.plumbing.hooksystem import gethook, callhook
+from conifer.syrup import models
+from django.utils import translation
_ = translation.ugettext
<tr><th>Title</th><td>${item.title}</td></tr>
<tr py:if="item.author"><th>Author</th><td>${item.author}</td></tr>
<tr py:if="item.publisher"><th>Publisher</th><td>${item.publisher}</td></tr>
- <tr py:if="item.published"><th>Published</th><td>${item.published and item.published.year}</td></tr>
+ <tr py:if="item.published"><th>Published</th><td>${item.published}</td></tr>
<tr><th>Type</th><td>${item.get_item_type_display()}</td></tr>
<tr py:if="item.item_type=='PHYS'"
py:with="avail, status = item.describe_physical_item_status()">