Replace library form

Using

Greasemonkey, user script compiler

Year

2009

Because it is unclear what the privacy policies of worldcat.org are, especially with regards to data retention and level of compliance under the Patriot act, it is all the more heinous that the Cornell Libraries has instituted a new form that defaults to sending all searches through worldcat.org. These searches thus leave the confines of the Cornell campus network and are sent in plaintext over the web, open to interception by anyone. All the more, the worldcat.org results are less useful (requiring clicks on each item to see its location and status, rather than on the search results themselves under the “classic” catalog), use unnecessary AJAX to load the book’s status, are nearly 7 times as large as the “classic” results, and link the library to commercial entities (not local ones) for the “ability” to purchase books. All these aspects are at cross purposes to the mission of the library and the search form on the library website, namely whether or not the book is located at the library and if so, where it is. Thus this script, also available in a standalone version, that replaces the “new” worldcat.org interface with the older “classic” interface, thus negating the need to click multiple times in order to protect your privacy.

// UserScript
// name &nbsp; &nbsp; &nbsp; &nbsp; Replace Library Form</span><br /> <span style="color: #006600; font-style: italic;">// namespace        http://zeitkunst.org
// description &nbsp; &nbsp; &nbsp;Replace the worldcat form with the older one</span><br /> <span style="color: #006600; font-style: italic;">// include          http://library.cornell.edu
// include &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;http://*.library.cornell.edu</span><br /> <span style="color: #006600; font-style: italic;">// version          0.1
// /UserScript

var ReplaceLibraryForm = {
    version : ‘0.1’,
    init : function() {
        // nothing here right now
        replaceLibraryForm();
    },

    replaceLibraryForm : function() {
        divToReplace = document.getElementById("quick-search");
        divToReplace.innerHTML = "&lt;form name=\"querybox\"
            action=\"http://library.cornell.edu/script/opac-redirect.php\" method=\"get\"
            autocomplete=\"OFF\"&gt;

            &lt;span class=searchHead&gt;&lt;a href=\"http://catalog.library.cornell.edu/\"&gt;Library Catalog&lt;/a&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp; &lt;span class=searchForm&gt;
            &lt;input size=10 maxlength=\"100\" name=\"Search_Arg\" id=searchInput&gt;
            &lt;select name=\"Search_Code\" size=\"1\"&gt;
                &lt;option selected value=\"TALL\"&gt;Title&lt;/option&gt;
                &lt;option value=\"NAME_\"&gt;Author&lt;/option&gt;
                &lt;option value=\"SUBJ_\"&gt;Subject&lt;/option&gt;
                &lt;option value=\"FT*\"&gt;Keyword&lt;/option&gt;

            &lt;/select&gt;
            &lt;input type=\"image\" border=\"0\" value=\"Go\" name=\"Go22\" src=\"img/go.gif\" align=absbottom alt=\"[Search]\"&gt;&lt;/span&gt;&lt;/form&gt;"
;

    }
}

ReplaceLibraryForm.init()

Images

Add new comment