Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bookshare
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
30
Issues
30
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
SRCT
bookshare
Commits
773c6517
Commit
773c6517
authored
Jan 11, 2017
by
Daniel W Bond
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'jrouly/bookshare-master'
parents
b92a75e6
c283d6ce
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
bookshare/templates/charts.html
bookshare/templates/charts.html
+1
-1
bookshare/trades/views.py
bookshare/trades/views.py
+7
-1
No files found.
bookshare/templates/charts.html
View file @
773c6517
...
...
@@ -17,7 +17,7 @@ SRCT Bookshare • Charts
<div
class=
"page-header"
id=
"banner"
>
<div
class=
"row"
>
<div
class=
"col-lg-12 text-center"
>
<h1><strong>
SRCT
</strong>
BOOKSHARE
</h1>
<h1><strong>
SRCT
</strong>
​
BOOKSHARE
</h1>
<p
class=
"lead"
><strong>
Listing Charts
</strong></p>
</div>
</div>
...
...
bookshare/trades/views.py
View file @
773c6517
...
...
@@ -31,7 +31,13 @@ def ISBNMetadata(standardISBN):
url
=
"http://xisbn.worldcat.org/webservices/xid/isbn/"
+
\
str
(
standardISBN
)
+
\
"?method=getMetadata&format=json&fl=title,year,author,ed"
metadata
=
requests
.
get
(
url
)
# In case the API fails to return, simply return None.
try
:
metadata
=
requests
.
get
(
url
,
timeout
=
3
)
except
ConnectionError
:
return
None
# format into a dictionary
dejson
=
metadata
.
json
()
try
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment