diff --git a/cps/metadata_provider/comicvine.py b/cps/metadata_provider/comicvine.py
index 787a316a..633184af 100644
--- a/cps/metadata_provider/comicvine.py
+++ b/cps/metadata_provider/comicvine.py
@@ -31,7 +31,7 @@ class ComicVine(Metadata):
apikey = "57558043c53943d5d1e96a9ad425b0eb85532ee6"
if self.active:
headers = {
- 'User-Agent': 'Not Evil Browser' # ,
+ 'User-Agent': 'Not Evil Browser'
}
result = requests.get("https://comicvine.gamespot.com/api/search?api_key="
diff --git a/cps/metadata_provider/scholar.py b/cps/metadata_provider/scholar.py
index b9875a1b..81398840 100644
--- a/cps/metadata_provider/scholar.py
+++ b/cps/metadata_provider/scholar.py
@@ -17,8 +17,8 @@
# along with this program. If not, see .
from scholarly import scholarly
+from flask import url_for
-import json
from cps.services.Metadata import Metadata
#try:
@@ -51,7 +51,7 @@ class scholar(Metadata):
v['tags'] = ""
v['ratings'] = 0
v['series'] = ""
- v['cover'] = "/../../../static/generic_cover.jpg"
+ v['cover'] = url_for('static', filename='generic_cover.jpg')
v['url'] = ""
v['source'] = {
"id": self.__id__,
diff --git a/cps/static/js/edit_books.js b/cps/static/js/edit_books.js
index 7c812ae9..00c971d3 100644
--- a/cps/static/js/edit_books.js
+++ b/cps/static/js/edit_books.js
@@ -269,3 +269,4 @@ $("#xchange").click(function () {
$("#book_title").val($("#bookAuthor").val());
$("#bookAuthor").val(title);
});
+
diff --git a/cps/static/js/get_meta.js b/cps/static/js/get_meta.js
index 395eeb69..e53104ea 100644
--- a/cps/static/js/get_meta.js
+++ b/cps/static/js/get_meta.js
@@ -107,4 +107,9 @@ $(function () {
$("#keyword").val(bookTitle);
doSearch(bookTitle);
});
+ $("#metaModal").on("show.bs.modal", function(e) {
+ $(e.relatedTarget).one('focus', function (e) {
+ $(this).blur();
+ });
+ });
});
diff --git a/cps/templates/book_edit.html b/cps/templates/book_edit.html
index 9be7558c..20076321 100644
--- a/cps/templates/book_edit.html
+++ b/cps/templates/book_edit.html
@@ -232,7 +232,7 @@