%@ Language=VBScript%> <% 'Page/form name:3.5_adm_infolibrary.asp 'Purpose: Admin Library Information 'Date Modified:16/07/2001 'Author:Anupama Tuli %> <% dim strPub,strTitle,strSub if len(trim(Request.Form("title")))=0 then strTitle=Request("title") else strTitle=Request.Form("title") end if if len(trim(Request.Form("publisher")))=0 then strPub=Request("publisher") else strPub=Request.Form("publisher") end if if len(trim(Request.Form("subject")))=0 then strSub=Request("subject") else strSub=Request.Form("subject") end if strTitle=WorkingOnSpecialCharacters_IN_Keywords(strTitle) 'Response.Write "strtitle1 " & strtitle strPub=WorkingOnSpecialCharacters_IN_Keywords(strPub) strSub=WorkingOnSpecialCharacters_IN_Keywords(strSub) if strTitle<>"" then strSearchCriterion= "for '" & strTitle &"'" else strSearchCriterion="" end if if strSub<>"" then if strSearchCriterion="" then strSearchCriterion=" for '"& strSub &"'" else strSearchCriterion=strSearchCriterion & ", '" & strSub &"'" end if else strSearchCriterion=strSearchCriterion end if if strPub<>"" then if strSearchCriterion="" then strSearchCriterion=" for '"&strPub&"'" else strSearchCriterion=strSearchCriterion & ", '" & strPub &"'" end if else strSearchCriterion=strSearchCriterion end if ' CODE ENTERED FOR FREE TEXT SEARCH dim intKeyWordTitle intKeyWordTitle = 0 intKeyWordTitle = DoubleQuotes_Processing(strTitle) 'Response.Write "intkw" & intKeyWordTitle if (intKeyWordTitle = 2 ) Or (intKeyWordTitle = 3 ) then arrCrt = split(strTitle," ",-1,1) end if dim strkeywordTitle strkeywordTitle = "" if strTitle <>"" then if (intKeyWordTitle = 2 ) Or (intKeyWordTitle = 3 ) then if Isarray(arrCrt) then dim I dim strWord strWord = "" for I = 0 to ubound(arrCrt) strWord = trim(arrCrt(i)) if strWord <> "" then strkeywordTitle = strkeywordTitle & """" & strWord & "*""" & " OR " end if next end if strkeywordTitle = trim(strkeywordTitle) 'Removing the unwanted OR word from the last . strkeywordTitle = trim(left(strkeywordTitle,len(strkeywordTitle) - 2)) elseif intKeyWordTitle = 1 then 'For single Word strkeywordTitle = strTitle strkeywordTitle = trim(strkeywordTitle) end if end if dim intKeyWordSub intKeyWordSub = 0 intKeyWordSub = DoubleQuotes_Processing(strSub) 'Response.Write "intkw" & intKeyWordSub if (intKeyWordSub = 2 ) Or (intKeyWordSub = 3 ) then arrCrt = split(strSub," ",-1,1) end if dim strkeywordSub strkeywordSub = "" if strSub <>"" then if (intKeyWordSub = 2 ) Or (intKeyWordSub = 3 ) then if Isarray(arrCrt) then I=0 strWord = "" for I = 0 to ubound(arrCrt) strWord = trim(arrCrt(i)) if strWord <> "" then strkeywordSub = strkeywordSub & """" & strWord & "*""" & " OR " end if next end if strkeywordSub = trim(strkeywordSub) 'Removing the unwanted OR word from the last . strkeywordSub = trim(left(strkeywordSub,len(strkeywordSub) - 2)) elseif intKeyWordSub = 1 then 'For single Word strkeywordSub = strSub strkeywordSub = trim(strkeywordSub) end if end if dim intKeyWordPub intKeyWordPub = 0 intKeyWordPub = DoubleQuotes_Processing(strPub) 'Response.Write "intkw" & intKeyWordPub if (intKeyWordPub = 2 ) Or (intKeyWordPub = 3 ) then arrCrt = split(strPub," ",-1,1) end if dim strkeywordPub strkeywordPub = "" if strPub <>"" then if (intKeyWordPub = 2 ) Or (intKeyWordPub = 3 ) then if Isarray(arrCrt) then I=0 strWord = "" for I = 0 to ubound(arrCrt) strWord = trim(arrCrt(i)) if strWord <> "" then strkeywordPub = strkeywordPub & """" & strWord & "*""" & " OR " end if next end if strkeywordPub = trim(strkeywordPub) 'Removing the unwanted OR word from the last . strkeywordPub = trim(left(strkeywordPub,len(strkeywordPub) - 2)) elseif intKeyWordPub = 1 then 'For single Word strkeywordPub = strPub strkeywordPub = trim(strkeywordPub) end if end if ' CODE FOR FREE TEXT SEARCH ENDS HERE 'Response.End %> <% dim strpagecode strpagecode= "3LIBR11" %> <%if Request.QueryString("item")="Book / Publication" then i=6 end if if Request.QueryString("item")="Market Research" or Request.QueryString("item")="Market Survey" then i=5 end if if Request.QueryString("item")="ITPO Report" or Request.QueryString("item")="Periodical" then i=5 end if if Request.QueryString("item")="CD ROM" then i=5 end if if Request.QueryString("item")="Fair Catalogue" then i=4 end if if Request.QueryString("item")="Foreign Product Catalogue" then i=4 end if %>