Re: Swish-e PDF titles in search results

Bill Moseley <[email protected]>
Newsgroups gmane.comp.web.swish-e
Message-ID <[email protected]>
On Thu, Jul 13, 2006 at 03:34:29PM +0100, Luke Simmons wrote:
> <meta name="title" content="Jan Feb 06">
> 
> and no <title>Jan Feb 06</title>
> 
> Do I need to add the title method in SWISH::Filters::Pdf2HTML.pm?
> Is there something I should be adding to the swish config file to use  
> with the converted pdf data (i.e. the HTML)?

Oh yes. I forgot that the pdf converter doesn't have a default for
the title.

You would need to modify DirTree.pl where it calls filter:

    my %user_data;
    $user_data{pdf}{title_tag} = 'title';

    $was_filtered = $filter->filter(
        document  => $filename,
        user_data => \%user_data,
    );

But, there's other options:

You could try aliasing the title meta to swishtitle.

Maybe:

    MetaNameAlias swishtitle title

-- 
Bill Moseley
[email protected]

Unsubscribe from or help with the swish-e list: 
   http://swish-e.org/Discussion/

Help with Swish-e:
   http://swish-e.org/current/docs
   [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.