Switch to unified view

a/src/rcldb/rclquery.cpp b/src/rcldb/rclquery.cpp
...
...
37
37
38
#ifndef NO_NAMESPACES
38
#ifndef NO_NAMESPACES
39
namespace Rcl {
39
namespace Rcl {
40
#endif
40
#endif
41
41
42
static const string cstr_keycap("caption");
43
static const string cstr_keydmtime("dmtime");
44
42
// Field names inside the index data record may differ from the rcldoc ones
45
// Field names inside the index data record may differ from the rcldoc ones
43
// (esp.: caption / title)
46
// (esp.: caption / title)
44
static const string& docfToDatf(const string& df)
47
static const string& docfToDatf(const string& df)
45
{
48
{
46
    static const string keycap("caption");
47
    static const string keydmtime("dmtime");
48
    if (!df.compare(Doc::keytt)) {
49
    if (!df.compare(Doc::keytt)) {
49
    return keycap;
50
    return cstr_keycap;
50
    } else if (!df.compare(Doc::keymt)) {
51
    } else if (!df.compare(Doc::keymt)) {
51
    return keydmtime;
52
    return cstr_keydmtime;
52
    } else {
53
    } else {
53
    return df;
54
    return df;
54
    }
55
    }
55
}
56
}
56
57