|
a/src/rcldb/rcldb_p.h |
|
b/src/rcldb/rcldb_p.h |
|
... |
|
... |
102 |
// Field names inside the index data record may differ from the rcldoc ones
|
102 |
// Field names inside the index data record may differ from the rcldoc ones
|
103 |
// (esp.: caption / title)
|
103 |
// (esp.: caption / title)
|
104 |
inline const string& docfToDatf(const string& df)
|
104 |
inline const string& docfToDatf(const string& df)
|
105 |
{
|
105 |
{
|
106 |
static const string keycap("caption");
|
106 |
static const string keycap("caption");
|
107 |
return df.compare(Doc::keytt) ? df : keycap;
|
107 |
static const string keydmtime("dmtime");
|
|
|
108 |
if (!df.compare(Doc::keytt)) {
|
|
|
109 |
return keycap;
|
|
|
110 |
} else if (!df.compare(Doc::keymt)) {
|
|
|
111 |
return keydmtime;
|
|
|
112 |
} else {
|
|
|
113 |
return df;
|
|
|
114 |
}
|
108 |
}
|
115 |
}
|
109 |
|
116 |
|
110 |
}
|
117 |
}
|
111 |
#endif /* _rcldb_p_h_included_ */
|
118 |
#endif /* _rcldb_p_h_included_ */
|