From c22b5a1d4cb8302f179947246a6c08b9c72fffeb Mon Sep 17 00:00:00 2001 From: Kiran Mathew Koshy Date: Wed, 18 Sep 2013 15:55:29 +0530 Subject: [PATCH] Rmoved title, favicon, faviconmimetype,description,author, publisher, date, language parameters from library file for diff files. --- src/common/kiwix/manager.cpp | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/common/kiwix/manager.cpp b/src/common/kiwix/manager.cpp index f988b8655..ac311c423 100644 --- a/src/common/kiwix/manager.cpp +++ b/src/common/kiwix/manager.cpp @@ -157,7 +157,9 @@ namespace kiwix { bookNode.append_attribute("indexType") = "clucene"; } - if (!itr->title.empty()) + if (itr->origID == "") + { + if (!itr->title.empty()) bookNode.append_attribute("title") = itr->title.c_str(); if (itr->description != "") @@ -175,6 +177,14 @@ namespace kiwix { if (itr->publisher != "") bookNode.append_attribute("publisher") = itr->publisher.c_str(); + if (itr->favicon != "") + bookNode.append_attribute("favicon") = itr->favicon.c_str(); + + if (itr->faviconMimeType != "") + bookNode.append_attribute("faviconMimeType") = itr->faviconMimeType.c_str(); + + } + if (itr->url != "") bookNode.append_attribute("url") = itr->url.c_str(); @@ -189,12 +199,6 @@ namespace kiwix { if (itr->size != "") bookNode.append_attribute("size") = itr->size.c_str(); - - if (itr->favicon != "") - bookNode.append_attribute("favicon") = itr->favicon.c_str(); - - if (itr->faviconMimeType != "") - bookNode.append_attribute("faviconMimeType") = itr->faviconMimeType.c_str(); } }