Commit 3b78c1f3 authored by Jean Michel Rouly's avatar Jean Michel Rouly
Browse files

Added template filter to grab worldcat ISBN data on a textbook.

parent 3c5d6abc
{% extends 'layouts/base.html' %}
{% load website_extras %}
{% block title %}
GMU Bookshare • Seller Profile
......@@ -151,7 +152,7 @@ function insert_target( source, target ){
{% for lookout in lookouts %}
<td class="text-center">{{lookout.ISBN}}</td>
<td class="text-center">
<a href="#" onclick="insert_target('{{DeleteLookout_form.lookout_id.id_for_label}}', '{{ }}');"
data-toggle="modal" data-target="#DeleteLookout">Delete</a>
from django import template
from website.views import ISBNMetadata
register = template.Library()
def get_isbn_data( isbn, field ):
data = ISBNMetadata( isbn )
if data:
return data.get(field)
return "No data found."
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment