User Tools

Site Tools


admin:settings:searchbox

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
admin:settings:searchbox [2019/03/29 12:53]
tmccanna
admin:settings:searchbox [2019/06/27 18:34] (current)
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>
- +
-<wrap box 500px center> +
 <​nowiki><​form action="​https://​gapines.org/​eg/​opac/​results"​ method="​get"></​nowiki>​\\ <​nowiki><​form action="​https://​gapines.org/​eg/​opac/​results"​ method="​get"></​nowiki>​\\
 <​nowiki><​input type="​text"​ name="​query"​ placeholder="​Enter Search Words" /></​nowiki>​\\ <​nowiki><​input type="​text"​ name="​query"​ placeholder="​Enter Search Words" /></​nowiki>​\\
Line 13: Line 10:
 <​nowiki><​input type="​submit"​ value="​Search"></​nowiki>​\\ <​nowiki><​input type="​submit"​ value="​Search"></​nowiki>​\\
 <​nowiki></​form></​nowiki>​ <​nowiki></​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 [[admin:​ids|library contact info]] to get library system or branch ids).</​note>​
admin/settings/searchbox.1553878433.txt.gz · Last modified: 2019/03/29 12:53 by tmccanna