move genre mappings to a place that makes slightly more sense

This commit is contained in:
Simon Kornblith 2007-03-19 22:46:31 +00:00
parent 41876b5a82
commit 0e0eb3bc10

View File

@ -7347,6 +7347,18 @@ function doExport() {
}
function doImport() {
var marcGenres = {
"book":"book",
"periodical":"journalArticle",
"newspaper":"newspaperArticle",
"theses":"thesis",
"letter":"letter",
"motion picture":"film",
"art original":"artwork",
"web site":"webpage"
};
var text = "";
var read;
@ -7403,18 +7415,6 @@ function doImport() {
newItem.title = titleInfo.m::title;
}
}
var marcGenres = {
"book":"book",
"periodical":"journalArticle",
"newspaper":"newspaperArticle",
"theses":"thesis",
"letter":"letter",
"motion picture":"film",
"art original":"artwork",
"web site":"webpage"
};
// try to get genre from local genre
for each(var genre in mods.m::genre) {
if(genre.@authority == "local" && Zotero.Utilities.itemTypeExists(genre)) {