Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added majax to record display

git-svn-id: https://kochief.googlecode.com/svn/trunk@328 7550b0fe-1fa9-11de-8120-8d224146dbbc
  • Loading branch information...
commit acbd373308f08d121cbb3133260e7c1acc1600f4 1 parent f956a8c
gsf747 authored
View
1  helios/discovery/views.py
@@ -112,6 +112,7 @@ def record(request, record_id):
subject_terms.reverse()
subject_terms = [(x[1], x[0]) for x in subject_terms]
context['subject_terms'] = subject_terms
+ context['MAJAX_URL'] = settings.MAJAX_URL
template = loader.get_template('discovery/record.html')
return HttpResponse(template.render(context))
View
7 helios/templates/discovery/record.html
@@ -22,6 +22,9 @@
{% block title %} | {{ doc.title }}{% endblock %}
{% block head %}
<link rel="unapi-server" type="application/xml" title="unAPI" href="{% url discovery-unapi %}"/>
+ {% if MAJAX_URL %}
+ <script type="text/javascript" src="{{ MAJAX_URL }}"></script>
+ {% endif %}
{% endblock %}
{% block content %}
<div id="sidebar">
@@ -189,9 +192,9 @@ <h2 class="title">{{ doc.full_title }}</h2>
{% endif %}
<div class="holdings">
<span class="metadata">{% trans "Holdings:" %}</span>
- {% ifequal ILS "III" %}
+ {% if MAJAX_URL %}
<span class="majax-showholdings" title=".{{ doc.id }}"></span>
- {% endifequal %}
+ {% endif %}
{% ifequal doc.availability "Available" %}
<span class="available">{{ doc.availability }}</span>
{% endifequal %}
Please sign in to comment.
Something went wrong with that request. Please try again.