Gossamer Forum
Home : Products : DBMan : Customization :

How to do a search in only specified fields?

Quote Reply
How to do a search in only specified fields?
If somebody does a search in the database with a keyword, the results page makes the found keywords in the records in bold. So an url which holds the keyword become like this: http://www.<B>pool</B>.com.
And it becomes unusable. How can i tell DBMAn to only search in specified fields?
Quote Reply
Re: How to do a search in only specified fields? In reply to
Hi,

I think JPDeni has a work-around for this, but if you're in a hurry to fix it, set $bold_search_results to 0 in the .cfg file.

Cheers,
adam
Quote Reply
Re: How to do a search in only specified fields? In reply to
 
Sorry, that should have read $db_bold:

$db_bold = 0;

adam
Quote Reply
Re: How to do a search in only specified fields? In reply to
What you can do is take out the bolding on fields you don't want bolded. For example, you probably have a field called "URL" (or something like it) to hold the URL to a website.

In html.pl, sub html_record, after

my (%rec) = @_;

add

$rec{'URL'} =~ s/<.?B>//g;

Change URL to the actual name of the field. This will strip out all the bold tags from the data. Repeat this line for each field you want to be "unbolded."


------------------
JPD