User Tools

Site Tools


admin:settings:searchbox

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
admin:settings:searchbox [2019/03/29 16:52] – created tmccannaadmin:settings:searchbox [2019/03/29 16:55] tmccanna
Line 3: Line 3:
 To insert a PINES search box on your web page, use the script below in the HTML body where you want the box to appear. To insert a PINES search box on your web page, use the script below in the HTML body where you want the box to appear.
  
-<note>Be sure to replace the number library id (locg)  in the code below with your library's id number if you want it to default to your branch or system (see [[https://pines.georgialibraries.org/ids|library contact info]] to get library system or branch ids).</note> +<wrap round box 500px center> 
- +<nowiki><form action="https://gapines.org/eg/opac/results" method="get"></nowiki>\\ 
-<wrap box 500px center> +<nowiki><input type="text" name="query" placeholder="Enter Search Words" /></nowiki>\\ 
-<nowiki> +<nowiki><input type="hidden" name="qtype" value="keyword" /></nowiki>\\ 
-<form action="https://gapines.org/eg/opac/results" method="get"> +<nowiki><input type="hidden" name="locg" value="1" /></nowiki>\\ 
- +<nowiki><input type="submit" value="Search"></nowiki>\\ 
-<input type="text" name="query" placeholder="Enter Search Words" /> +<nowiki></form></nowiki>
- +
-<input type="hidden" name="qtype" value="keyword" /> +
- +
-<input type="hidden" name="locg" value="1" /> +
- +
-<input type="submit" value="Search"> +
- +
-</form> +
-</nowiki>+
 </wrap> </wrap>
-  
  
 If you wish to add a search that goes to the Kids' Catalog, you can use this code: If you wish to add a search that goes to the Kids' Catalog, you can use this code:
  
-  +<wrap round box 500px center> 
- +<nowiki><form action="https://gapines.org/eg/kpac/results" method="get"></nowiki>\\ 
-<form action="https://gapines.org/eg/kpac/results" method="get"> +<nowiki><input type="text" name="query" placeholder="Enter Search Words" /></nowiki>\\ 
- +<nowiki><input type="hidden" name="qtype" value="keyword" /></nowiki>\\ 
-<input type="text" name="query" placeholder="Enter Search Words" /> +<nowiki><input type="hidden" name="locg" value="1" /></nowiki>\\ 
- +<nowiki><input type="submit" value="Search"></nowiki>\\ 
-<input type="hidden" name="qtype" value="keyword" /> +<nowiki></form></nowiki> 
- +</wrap>
-<input type="hidden" name="locg" value="1" /> +
- +
-<input type="submit" value="Search"> +
- +
-</form>+
  
  
 +<note>Be sure to replace the number library id (locg)  in the code above with your library's id number if you want it to default to your branch or system (see [[https://pines.georgialibraries.org/ids|library contact info]] to get library system or branch ids).</note>
admin/settings/searchbox.txt · Last modified: 2019/06/27 22:34 by tmccanna