Commit 818e2062 authored by BigBlueHat's avatar BigBlueHat

Make Document plugin always return strings

parent 06a440fc
...@@ -156,15 +156,15 @@ ...@@ -156,15 +156,15 @@
if (this.metadata.highwire.title) { if (this.metadata.highwire.title) {
return this.metadata.title = this.metadata.highwire.title[0]; return this.metadata.title = this.metadata.highwire.title[0];
} else if (this.metadata.eprints.title) { } else if (this.metadata.eprints.title) {
return this.metadata.title = this.metadata.eprints.title; return this.metadata.title = this.metadata.eprints.title[0];
} else if (this.metadata.prism.title) { } else if (this.metadata.prism.title) {
return this.metadata.title = this.metadata.prism.title; return this.metadata.title = this.metadata.prism.title[0];
} else if (this.metadata.facebook.title) { } else if (this.metadata.facebook.title) {
return this.metadata.title = this.metadata.facebook.title; return this.metadata.title = this.metadata.facebook.title[0];
} else if (this.metadata.twitter.title) { } else if (this.metadata.twitter.title) {
return this.metadata.title = this.metadata.twitter.title; return this.metadata.title = this.metadata.twitter.title[0];
} else if (this.metadata.dc.title) { } else if (this.metadata.dc.title) {
return this.metadata.title = this.metadata.dc.title; return this.metadata.title = this.metadata.dc.title[0];
} else { } else {
return this.metadata.title = $("head title").text(); return this.metadata.title = $("head title").text();
} }
......
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