Library: Difference between revisions

No edit summary
Adds location parameter and numeric pane of Advanced search.
Line 9: Line 9:
javascript: (function () {
javascript: (function () {
     var t = window.getSelection ? window.getSelection().toString() : document.selection.createRange().text;
     var t = window.getSelection ? window.getSelection().toString() : document.selection.createRange().text;
     window.location = 'http://newburyport.mvlc.org/eg/opac/results?contains=contains;_special=1;qtype=identifier%7Cisbn;query=' + t;
     window.location = 'http://newburyport.mvlc.org/eg/opac/results?contains=contains;_special=1;qtype=identifier%7Cisbn;locg=1;pane=numeric;query=' + t;
})()
})()
</source>
</source>
Line 15: Line 15:
{{Messagebox|type=success|text=Note: for the bookmarklet to work, it all has to be on one line.  The code above is presented on several lines for readability.}}
{{Messagebox|type=success|text=Note: for the bookmarklet to work, it all has to be on one line.  The code above is presented on several lines for readability.}}


Want this bookmarklet?  Drag this link to your browser bookmark bar: <html><a href="javascript: (function(){var t=window.getSelection?window.getSelection().toString():document.selection.createRange().text;window.location='http://newburyport.mvlc.org/eg/opac/results?contains=contains;_special=1;qtype=identifier%7Cisbn;query='+t;})()">Search MLVC</a></html>
Want this bookmarklet?  Drag this link to your browser bookmark bar: <html><a href="javascript: (function(){var t=window.getSelection?window.getSelection().toString():document.selection.createRange().text;window.location='http://newburyport.mvlc.org/eg/opac/results?contains=contains;_special=1;qtype=identifier%7Cisbn;locg=1;pane=numeric;query='+t;})()">Search MLVC</a></html>


== Try it ==
== Try it ==
Line 21: Line 21:
* Free Culture is ISBN 1594200068
* Free Culture is ISBN 1594200068


Unfortunately, it doesn't pass testing because there doesn't seem to be a URL pattern to request the search to be accross all the MLVC rather than a specific library.
If you want to customize the location of the search, you must change the '''locg''' parameter.  <code>locg=1</code> searches across all the MLVC rather than a specific library to cast the widest net - and of course you can always ask for the material to be loaned to your local library.


[[Category:Library]]
[[Category:Library]]