diff --git a/client/src/main/webapp/js/api.js b/client/src/main/webapp/js/api.js index 29930dbea1..667b95b198 100644 --- a/client/src/main/webapp/js/api.js +++ b/client/src/main/webapp/js/api.js @@ -170,7 +170,11 @@ ClientAPIDev.prototype = { * @method */ askForItem : function(pid, whenready) { - $.getJSON("api/item/" + pid, _.bind(function(data) { + // check page ?? Do it better + if (pid && pid.split("@").length > 1) { + pid = pid.split("@")[0]; + } + $.getJSON("api/item/" + pid, _.bind(function(data) { if (!this.isKeyReady("item")) { this.ctx["item"] = {}; } diff --git a/client/src/main/webapp/js/viewers/pdfview.js b/client/src/main/webapp/js/viewers/pdfview.js index 6a01fd39f5..1e9396f899 100644 --- a/client/src/main/webapp/js/viewers/pdfview.js +++ b/client/src/main/webapp/js/viewers/pdfview.js @@ -64,7 +64,8 @@ PDFView.prototype.open = function() { object.attr("data",href); object.attr("width","100%"); object.attr("height","100%"); - + object.css({ 'position': 'absolute'}); + pdfContainer.append(object); this.container.append(pdfContainer);