diff --git a/chrome/content/zotero/bindings/itembox.xml b/chrome/content/zotero/bindings/itembox.xml index 3757d28aca..13681c4996 100644 --- a/chrome/content/zotero/bindings/itembox.xml +++ b/chrome/content/zotero/bindings/itembox.xml @@ -28,8 +28,8 @@ + xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml"> @@ -291,6 +291,8 @@ return; } + this.updateRetracted(); + if (this.clickByItem) { var itemBox = document.getAnonymousNodes(this)[0]; itemBox.setAttribute('onclick', @@ -2374,6 +2376,125 @@ + + Retraction Watch' + ); + let parts = Zotero.Utilities.parseMarkup(text); + for (let part of parts) { + if (part.type == 'text') { + creditElem.appendChild(document.createTextNode(part.text)); + } + else if (part.type == 'link') { + let a = document.createElementNS(htmlNS, 'a'); + a.href = part.attributes.href; + a.textContent = part.text; + creditElem.appendChild(a); + } + } + } + + Zotero.Utilities.Internal.updateHTMLInXUL(this._id('retraction-box')); + }.bind(this))(); + ]]> + + + @@ -2484,6 +2605,22 @@ +