anchor.diff:  	var/title
   	var/category = "Any"
   	var/author
  -	var/SQLquery
  +	var/search_page = 0
   
   /obj/machinery/computer/libraryconsole/ui_interact(mob/user)
   	. = ..()
  -	var/dat = "" // <META HTTP-EQUIV='Refresh' CONTENT='10'>
  +	var/list/dat = list() // <META HTTP-EQUIV='Refresh' CONTENT='10'>
   	switch(screenstate)
   		if(0)
   			dat += "<h2>Search Settings</h2><br>"
  
positive.code: 				dat += "<font color=red><b>ERROR</b>: Unable to contact External Archive. Please contact your system administrator for assistance.</font><BR>"
  			else if(QDELETED(user))
  				return
  			else if(!SQLquery)
  				dat += "<font color=red><b>ERROR</b>: Malformed search request. Please contact your system administrator for assistance.</font><BR>"
  			else
  				dat += "<table>"
  				dat += "<tr><td>AUTHOR</td><td>TITLE</td><td>CATEGORY</td><td>SS<sup>13</sup>BN</td></tr>"
  
  				var/datum/DBQuery/query_library_list_books = SSdbcore.NewQuery(SQLquery)
  				if(!query_library_list_books.Execute())
  					dat += "<font color=red><b>ERROR</b>: Unable to retrieve book listings. Please contact your system administrator for assistance.</font><BR>"
  				else
  
negative.code: 			title = sanitize(newtitle)
  		else
  			title = null
  	if(href_list["setcategory"])
  		var/newcategory = input("Choose a category to search for:") in list("Any", "Fiction", "Non-Fiction", "Adult", "Reference", "Religion")
  		if(newcategory)
  			category = sanitize(newcategory)
  		else
  			category = "Any"
  	if(href_list["setauthor"])
  		var/newauthor = input("Enter an author to search for:") as text|null
  		if(newauthor)
  			author = sanitize(newauthor)
  		else
  			author = null
  	if(href_list["search"])
  		screenstate = 1
  
  	if(href_list["bookpagecount"])
  		search_page = text2num(href_list["bookpagecount"])
  
  	if(href_list["back"])
  		screenstate = 0
  