Start

LIBRIS Help

 

Search boxes

Let your users search in LIBRIS directly from your website or webapp. You can copy ready-to-use search boxes from us. They come in different designs and work best against a light background. You can change the appearance of the search box by altering the style sheets

You can also download a plug-in which lets you search in LIBRIS from the toolbar in your browser.

1.Search box
Search LIBRIS  
Copy this code
<!-- BEGIN LIBRIS search box -->
<div style="background: #282828 url(http://libris.kb.se/images/bg1_2.gif) bottom repeat-x; width: 210px;">
  <div style="background: url(http://libris.kb.se/images/main1_2.gif) no-repeat; width: 210px;">
    <form method="get" target="_blank" action="http://libris.kb.se/formatQuery.jsp?" accept-charset="UTF-8" style="margin:0; padding: 0 0 13px 0; padding-top: 27px; padding-left: 13px;" onsubmit="window.open('http://libris.kb.se/formatQuery.jsp?language=' + document.getElementById('LANG').value + '&SEARCH_ALL='+ encodeURIComponent(document.getElementById('LIBRIS_SEARCH1').value),'LIBRIS'); return false;">
      <fieldset style="border: none; margin:0; padding: 0;">
        <legend style="display: none; margin:0; padding: 0;">Search LIBRIS</legend> 
        <input style="vertical-align: bottom; font-size: 11px; margin:0; padding: 0; width: 60%;" name="SEARCH_ALL" id="LIBRIS_SEARCH1" type="text" /> 
        <input style="vertical-align: bottom; cursor: pointer; font-size:11px; margin:0; padding: 0;" type="submit" value="Search"/>
        <input type="hidden" id="LANG" name="LANG" value="en" /> 
      </fieldset> 
    </form> 
  </div>
</div>
<!-- END LIBRIS search box -->
2.Search box
Search LIBRIS
 
Copy this code
<!-- BEGIN LIBRIS search box -->
<div style="background: #191919 url(http://libris.kb.se/images/bg2_2.gif) bottom repeat-x; width: 300px;">
  <div style="background: url(http://libris.kb.se/images/main2_2.gif) no-repeat; width: 300px;">
    <form style="margin: 0; padding: 7px 0 11px 100px;" method="get" target="_blank" action="http://libris.kb.se/formatQuery.jsp?" accept-charset="UTF-8" onsubmit="window.open('http://libris.kb.se/formatQuery.jsp?language=' + document.getElementById('LANG').value + '&SEARCH_ALL='+ encodeURIComponent(document.getElementById('LIBRIS_SEARCH2').value),'LIBRIS'); return false;">
      <fieldset style="margin: 0; padding: 0; border: none;">
        <legend style="margin: 0; padding: 0; display: none;">Search LIBRIS</legend>
        <div><input name="SEARCH_ALL" id="LIBRIS_SEARCH2" type="text" style="vertical-align: bottom; font-size: 11px; width: 60%;"/> <input type="submit" value="Search" style="vertical-align: bottom; cursor: pointer; font-size: 11px;"/></div>
        <input type="hidden" id="LANG" name="LANG" value="en" />
      </fieldset>
    </form>
  </div>
</div>
<!-- END LIBRIS search box -->
3.Search box
Search LIBRIS  
Copy this code
<!-- BEGIN LIBRIS search box -->
<div style="padding-bottom: 10px; background: #fff url(http://libris.kb.se/images/logo_vit3.gif) no-repeat 13px 16px; width: 300px;"> 
  <form style="padding: 12px 0 0 100px;" method="get" target="_blank" action="http://libris.kb.se/formatQuery.jsp?" accept-charset="UTF-8" onsubmit="window.open('http://libris.kb.se/formatQuery.jsp?language=' + document.getElementById('LANG').value + '&SEARCH_ALL='+ encodeURIComponent(document.getElementById('LIBRIS_SEARCH3').value),'LIBRIS'); return false;"> 
    <fieldset style="margin: 0; padding: 0; border: none;"> 
      <legend style="display: none;">Search LIBRIS</legend>
      <input name="SEARCH_ALL" id="LIBRIS_SEARCH3" type="text" style="vertical-align: bottom; margin: 0; padding: 0; font-size: 11px; width: 60%;" /> <input type="submit" value="Search" style="vertical-align: bottom; margin: 0; padding: 0; cursor: pointer; font-size: 11px;" />
      <input type="hidden" id="LANG" name="LANG" value="en" />
    </fieldset>
  </form> 
</div>
<!-- END LIBRIS search box -->
4.Search box with the possibility of limiting the search to one library only
Search LIBRIS
 
Change library
If you want to limit your search to a certain library, just change the value attribute in ´NAME="SEARCH_MYBIB" value="S"´. The value should conform to a Swedish library code, which can be found in the Library database. Also replace the text 'My library' in the code to the library name.
Copy this code
<!-- BEGIN LIBRIS search box -->
<div style="background: #efefef url(http://libris.kb.se/images/main4.gif) repeat-x; width: 250px; border: 1px solid #eaeaea;">
  <div style="background: url(http://libris.kb.se/images/bg4.gif) no-repeat 13px 0; padding: 0; margin: 0;">
    <form method="get" target="_blank" action="http://libris.kb.se/formatQuery.jsp?" accept-charset="UTF-8" style="padding: 50px 20px 20px 20px; margin: 0; border: none;" onsubmit="window.open('http://libris.kb.se/formatQuery.jsp?language=' + document.getElementById('LANG').value + '&SEARCH_ALL='+ encodeURIComponent(document.getElementById('LIBRIS_SEARCH4').value) + (document.getElementById('LIBRIS_MYBIB').checked ? '&SEARCH_MYBIB=' + document.getElementById('LIBRIS_MYBIB').value  : ''),'LIBRIS'); return false;">
      <fieldset style="border: none; margin: 0; padding: 0;">
        <legend style="display: none;">Search LIBRIS</legend>
        <input name="SEARCH_ALL" id="LIBRIS_SEARCH4" type="text" style="vertical-align: bottom; margin: 0; padding: 0; font-size: 12px; width: 60%;" /> <input type="submit" value="Search" style="vertical-align: bottom; margin: 0; padding: 0; cursor: pointer; font-size: 12px;" />
        <div style="text-align: right; font: 11px 'lucida grande', verdana, sans-serif; color: #666; margin-top: 8px;">
          <input type="checkbox" id="LIBRIS_MYBIB" name="SEARCH_MYBIB" value="S" /> <label for="ch1">My library</label>
        </div>
        <input type="hidden" id="LANG" name="LANG" value="en" />
      </fieldset> 
    </form>
  </div>
</div>
<!-- END LIBRIS search box -->
5.Search box with the possibility of limiting the search to one organisation only
Search LIBRIS
Change organisation
If you want to limit your search to a certain organisation (an organisation of individual libraries), just change the value attribute in ´name="SEARCH_MYORG"´ value="UUB"´. The value should conform to a Swedish library organisation code, which can be found by hovering the mouse pointer above the organisation name in the Refine menu. The organisation code can then be seen in the status field at the bottom of the browser.
ocode

Copy this code
<!-- BEGIN LIBRIS search box -->
<div style="background: #efefef url(http://libris.kb.se/images/main4.gif) repeat-x; width: 250px; border: 1px solid #eaeaea;">
  <div style="background: url(http://libris.kb.se/images/bg4.gif) no-repeat 13px 0; padding: 0; margin: 0;">
    <form method="get" target="_blank" action="http://libris.kb.se/formatQuery.jsp?" accept-charset="UTF-8" style="padding: 50px 20px 20px 20px; margin: 0; border: none;" onsubmit="window.open('http://libris.kb.se/formatQuery.jsp?language=' + document.getElementById('LANG').value + '&SEARCH_ALL='+ encodeURIComponent(document.getElementById('LIBRIS_SEARCH6').value) + (document.getElementById('LIBRIS_MYORG').checked ? '&SEARCH_MYORG=' + document.getElementById('LIBRIS_MYORG').value  : ''),'LIBRIS'); return false;">
      <fieldset style="border: none; margin: 0; padding: 0;">
        <legend style="display: none;">Search LIBRIS</legend>
        <input name="SEARCH_ALL" id="LIBRIS_SEARCH6" type="text" style="vertical-align: bottom; margin: 0; padding: 0; font-size: 12px; width: 60%;" /> <input type="submit" value="Search" style="vertical-align: bottom; margin: 0; padding: 0; cursor: pointer; font-size: 12px;" />
        <div style="text-align: right; font: 11px 'lucida grande', verdana, sans-serif; color: #666; margin-top: 8px;">
          <input type="checkbox" id="LIBRIS_MYORG" name="SEARCH_MYORG" value="UUB" /> <label for="LIBRIS_MYORG">Min organisation</label>
        </div>
        <input type="hidden" id="LANG" name="LANG" value="en" />
      </fieldset> 
    </form>
  </div>
</div>
<!-- END LIBRIS search box -->
6.Search box with the possibility of permanently limiting the search to one organisation only
Search LIBRIS
Change organisation
If you want to limit your search to a certain organisation (an organisation of individual libraries) for the rest of a browser session, just change the value attribute in ´name="SEARCH_MYORG"´ value="LNU"´. The value should conform to a Swedish library organisation code, which can be found by hovering the mouse pointer above the organisation name in the Refine menu. The organisation code can then be seen in the status field at the bottom of the browser.
ocode

Copy this code
<!-- BEGIN LIBRIS search box -->
<div style="background: #efefef url(http://libris.kb.se/images/main4.gif) repeat-x; width: 250px; border: 1px solid #eaeaea;">
  <div style="background: url(http://libris.kb.se/images/bg4.gif) no-repeat 13px 0; padding: 0; margin: 0;">
    <form method="get" target="_blank" action="http://libris.kb.se/formatQuery.jsp?" accept-charset="UTF-8" style="padding: 50px 20px 20px 20px; margin: 0; border: none;" onsubmit="window.open('http://libris.kb.se/formatQuery.jsp?language=' + document.getElementById('LANG').value + '&SEARCH_ALL='+ encodeURIComponent(document.getElementById('LIBRIS_SEARCH5').value) + '&SOURCE_PERMORG=' + document.getElementById('SOURCE_PERMORG').value + (document.getElementById('LIBRIS_PERMORG').checked ? '&SEARCH_PERMORG=' + document.getElementById('LIBRIS_PERMORG').value  : ''),'LIBRIS'); return false;">
      <fieldset style="border: none; margin: 0; padding: 0;"> 
        <legend style="display: none;">Search LIBRIS</legend>
        <input type="hidden" id="LANG" name="LANG" value="en" />
        <input name="SEARCH_ALL" id="LIBRIS_SEARCH5" type="text" style="vertical-align: bottom; margin: 0; padding: 0; font-size: 12px; width: 60%;" />
        <input type="submit" value="Search" style="vertical-align: bottom; margin: 0; padding: 0; cursor: pointer; font-size: 12px;" /> 
        <div style="text-align: right; font: 11px 'lucida grande', verdana, sans-serif; color: #666; margin-top: 8px;"> 
          <input type="hidden" id="SOURCE_PERMORG" name="SOURCE_PERMORG" value="true"/>
          <input type="checkbox" id="LIBRIS_PERMORG" name="SEARCH_PERMORG" value="LNU" /> <label for="LIBRIS_PERMORG">My organisation</label>
        </div>
      </fieldset>  
    </form>
  </div>
</div>
<!-- END LIBRIS search box -->

Copyright © LIBRIS - National Library Systems