|
a/src/internfile/internfile.cpp |
|
b/src/internfile/internfile.cpp |
1 |
#ifndef lint
|
1 |
#ifndef lint
|
2 |
static char rcsid[] = "@(#$Id: internfile.cpp,v 1.24 2007-01-15 13:06:38 dockes Exp $ (C) 2004 J.F.Dockes";
|
2 |
static char rcsid[] = "@(#$Id: internfile.cpp,v 1.25 2007-01-17 13:53:40 dockes Exp $ (C) 2004 J.F.Dockes";
|
3 |
#endif
|
3 |
#endif
|
4 |
/*
|
4 |
/*
|
5 |
* This program is free software; you can redistribute it and/or modify
|
5 |
* This program is free software; you can redistribute it and/or modify
|
6 |
* it under the terms of the GNU General Public License as published by
|
6 |
* it under the terms of the GNU General Public License as published by
|
7 |
* the Free Software Foundation; either version 2 of the License, or
|
7 |
* the Free Software Foundation; either version 2 of the License, or
|
|
... |
|
... |
234 |
}
|
234 |
}
|
235 |
return false;
|
235 |
return false;
|
236 |
}
|
236 |
}
|
237 |
|
237 |
|
238 |
static const string keyab("abstract");
|
238 |
static const string keyab("abstract");
|
|
|
239 |
static const string keyau("author");
|
239 |
static const string keycs("charset");
|
240 |
static const string keycs("charset");
|
240 |
static const string keyct("content");
|
241 |
static const string keyct("content");
|
241 |
static const string keyfn("filename");
|
242 |
static const string keyfn("filename");
|
242 |
static const string keykw("keywords");
|
243 |
static const string keykw("keywords");
|
243 |
static const string keymd("modificationdate");
|
244 |
static const string keymd("modificationdate");
|
|
... |
|
... |
249 |
bool FileInterner::dijontorcl(Rcl::Doc& doc)
|
250 |
bool FileInterner::dijontorcl(Rcl::Doc& doc)
|
250 |
{
|
251 |
{
|
251 |
Dijon::Filter *df = m_handlers.back();
|
252 |
Dijon::Filter *df = m_handlers.back();
|
252 |
const std::map<std::string, std::string>& docdata = df->get_meta_data();
|
253 |
const std::map<std::string, std::string>& docdata = df->get_meta_data();
|
253 |
|
254 |
|
|
|
255 |
getKeyValue(docdata, keyau, doc.author);
|
254 |
getKeyValue(docdata, keyoc, doc.origcharset);
|
256 |
getKeyValue(docdata, keyoc, doc.origcharset);
|
255 |
getKeyValue(docdata, keyct, doc.text);
|
257 |
getKeyValue(docdata, keyct, doc.text);
|
256 |
getKeyValue(docdata, keytt, doc.title);
|
258 |
getKeyValue(docdata, keytt, doc.title);
|
257 |
getKeyValue(docdata, keykw, doc.keywords);
|
259 |
getKeyValue(docdata, keykw, doc.keywords);
|
258 |
getKeyValue(docdata, keymd, doc.dmtime);
|
260 |
getKeyValue(docdata, keymd, doc.dmtime);
|