Hi! Several years ago as a volunteer for Richard Stallman's personal homepage, I wrote a search engine for the site:
http://stallman.org/site-search/index.html Which I still maintain. Recently it was brought to my attention that the search results page (you have to do an actual search to get there), fails libreJS because there is no included license. I installed libreJS on firefox and tested using a local mirror of the site. Initially, there was a small librejs icon in the browser frame that I could click for more information and the offence was attributed to PrevNext.js. I added licence info to the file like this: /* @source: http://www.stallman.org/site-search/js/PrevNext.js @licstart Copyright (C) 2010, 2013 Mark Eriksen The JavaScript code in this page is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License (GNU GPL) as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. The code is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU GPL for more details. @licend */ But the problem persisted, perhaps because the offending line reported by librejs seemed to be an "onkeypress()" event that was in the html source's <body> tag and not PrevNext.js, so I added the same comment in the page (template) header. At this point I had invoked firebug, and since then (and after stopping and restarting the browser, enabling and disabling librejs, etc), the information icon has disappeared -- only the large tab appears, which says nothing about the cause of the problem. This makes solving it somewhat like playing darts blindfolded. There are only two files in play, the html source and PrevNext.js, both of which had the licence comment above in. I think it is important that RMS's homepage comply with librejs, and in order make that so perhaps I need to understand better how librejs works and what will pacify it. My principle questions right now are: - Does it check the @source url? - If so what does it expect to find there? For PrevNext.js (which is not obfuscated or compacted), I simply used the address of PrevNext.js itself. However, the html source is dynamically generated, so I used a dud @source address there for my first test. This is the point at which the librejs icon disappeared, and before I fool around any further, I thought I should just ask directly what is required. It would be much appreciated if someone could assist me in getting everything straightened out. Note that I have currently not added licensing comments or made any other changes to the live site, since I would like to see this work properly on my local mirror first. Probably the easiest and best thing would be if someone could look at an html page from a search response and the associated PrevNext.js, and simply explain to me what needs to be done. Sincerely, Mark Eriksen -- "Enthusiasm is not the enemy of the intellect." (said of Irving Howe) "The angel of history[...]is turned toward the past." (Walter Benjamin)
