[llvm-commits] CVS: llvm-www/pubs/pubs.js
Misha Brukman
brukman at cs.uiuc.edu
Tue Oct 27 07:27:03 PDT 2009
Changes in directory llvm-www/pubs:
pubs.js updated: 1.69 -> 1.70
---
Log message:
* Properly handle paper entries without a URL specified
+ when missing a URL, add a "search" link to be able to find the paper
* Simplified the labeling of the histogram of papers per year
---
Diffs of the changes: (+9 -4)
pubs.js | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
Index: llvm-www/pubs/pubs.js
diff -u llvm-www/pubs/pubs.js:1.69 llvm-www/pubs/pubs.js:1.70
--- llvm-www/pubs/pubs.js:1.69 Mon Oct 26 01:29:24 2009
+++ llvm-www/pubs/pubs.js Tue Oct 27 09:25:46 2009
@@ -939,8 +939,14 @@
container.appendChild(list);
}
var item = document.createElement('li');
- item.innerHTML += '"<a href="' + pub.url + '">' + htmlEscape(pub.title) +
- '</a>"<br>';
+ if (typeof pub.url != "undefined" && pub.url) {
+ item.innerHTML += '"<a href="' + pub.url + '">' + htmlEscape(pub.title) +
+ '</a>"<br>';
+ } else {
+ item.innerHTML += '"' + htmlEscape(pub.title) + '" ' +
+ '<a href="http://www.google.com/search?q=' +
+ encodeURIComponent(pub.title) + '">search</a><br>';
+ }
item.innerHTML += htmlEscape(pub.author) + '<br>';
if (isDef(pub.published)) {
item.innerHTML += '<i>' + pub.published + '</i>';
@@ -1009,8 +1015,7 @@
'?cht=bvs' + // vertical bars
'&chs=300x200' + // size
'&chco=76A4FB' + // color
- '&chtt=Histogram' + // title
- '&chdl=Count' + // label in legend
+ '&chtt=Number of papers per year' + // title
'&chxt=x,y' + // axes
'&chxl=0:|' + sortedYears.join('|') + // x-axis labels
'&chxr=1,0,' + (maxCount + 5) + // y-axis range
More information about the llvm-commits
mailing list