www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 0eebae010dd9076c891d5d24b0f9799cbfcf8187
parent b1b0bd47a0cebbff9fffc6d1363d0a6e8288fc87
Author: Matt Burton <mcburton@gmail.com>
Date:   Thu,  9 Apr 2009 20:34:58 +0000

Merge branch 'mods'

Diffstat:
Mtranslators/MODS.js | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/translators/MODS.js b/translators/MODS.js @@ -394,9 +394,11 @@ function doImport() { // title for each(var titleInfo in mods.m::titleInfo) { - if(titleInfo.@type != "abbreviated") { - newItem.title = titleInfo.m::title; - } + // dropping other title types so they don't overwrite the main title + // we have same behaviour in the MARC translator + if(!titleInfo.@type.toString()) { + newItem.title = titleInfo.*.text(); // including text from sub elements + } } // try to get genre from local genre for each(var genre in mods.m::genre) {