Ticket #1662: MODS-MARC-fix.diff

File MODS-MARC-fix.diff, 3.3 KB (added by karnesky, 6 years ago)
  • translators/MODS.js

     
    5454                        marcGenre = "newspaper"; 
    5555                } else if(item.itemType == "thesis") { 
    5656                        modsType = "text"; 
    57                         marcGenre = "theses"; 
     57                        marcGenre = "thesis"; 
    5858                } else if(item.itemType == "letter") { 
    5959                        modsType = "text"; 
    6060                        marcGenre = "letter"; 
     
    332332 
    333333function doImport() { 
    334334        var marcGenres = { 
     335//              "abstract or summary":XXX, 
     336//              "abstract":XXX, 
     337//              "summary":XXX, 
     338                "art reproduction":"artwork", 
     339                "article":"journalArticle", 
     340                "autobiography":"book", 
     341                "bibliography":"book", 
     342                "biography":"book", 
    335343                "book":"book", 
     344//              "calendar":XXX, 
     345//              "catalog":XXX, 
     346                "chart":"artwork", 
     347                "comic or graphic novel":"book", 
     348                "comic":"book", 
     349                "graphic novel":"book", 
     350                "comic strip":"artwork", 
     351                "conference publication":"conferencePaper", 
     352//              "database":XXX, 
     353                "dictionary":"dictionaryEntry", 
     354                "diorama":"artwork", 
     355//              "directory":XXX, 
     356                "drama":"book", 
     357                "encyclopedia":"encyclopediaArticle", 
     358//              "essay":XXX, 
     359                "festschrift":"book", 
     360                "fiction":"book", 
     361//              "filmography":XXX, 
     362                "filmstrip":"videoRecording", 
     363//              "findingaid":XXX, 
     364//              "flash card":XXX, 
     365                "folktale":"book", 
     366//              "font":XXX, 
     367//              "game":XXX, 
     368                "government publication":"book", 
     369                "graphic":"artwork", 
     370                "globe":"map", 
     371                "handbook":"book", 
     372                "history":"book", 
     373                "hymnal":"book", 
     374                "humor,satire":"book", 
     375                "humor":"book", 
     376                "satire":"book", 
     377//              "index":XXX, 
     378//              "instruction":XXX, 
     379//              "interview":XXX, 
     380//              "issue":XXX, 
     381                "journal":"journalArticle", 
     382                "kit":"artwork", 
     383//              "language instruction":XXX, 
     384                "law report or digest":"journalArticle", 
     385                "law report":"journalArticle", 
     386                "digest":"journalArticle", 
     387                "law digest":"journalArticle", 
     388                "legal article":"journalArticle", 
     389                "legal case and case notes":"case", 
     390                "legal case":"case", 
     391                "case notes":"case", 
     392                "legislation":"statute", 
     393                "loose-leaf":"manuscript", 
     394                "map":"map", 
     395                "memoir":"book", 
     396                "microscope slide":"artwork", 
     397                "model":"artwork", 
     398//              "multivolume monograph":XXX, 
     399                "novel":"book", 
     400//              "numeric data":XXX, 
     401//              "offprint":XXX, 
     402                "online system or service":"webpage", 
     403                "online system":"webpage", 
     404                "service":"webpage", 
     405                "online service":"webpage", 
     406                "patent":"patent", 
    336407                "periodical":"journalArticle", 
     408                "picture":"artwork", 
     409//              "poetry":XXX, 
     410//              "programmed text":XXX, 
     411                "realia":"artwork", 
     412//              "rehearsal":XXX, 
     413//              "remote sensing image":XXX, 
     414//              "reporting":XXX, 
     415//              "review":XXX, 
     416                "script":"book", 
     417//              "series":XXX, 
     418//              "short story":XXX, 
     419                "slide":"artwork", 
     420                "sound":"audioRecording", 
     421                "speech":"audioRecording", 
     422//              "standard or specification":XXX, 
     423//              "standard":XXX, 
     424//              "specification":XXX, 
     425//              "statistics":XXX, 
     426//              "survey of literature":XXX, 
     427                "technical report":"report", 
    337428                "newspaper":"newspaperArticle", 
    338429                "theses":"thesis", 
     430                "thesis":"thesis", 
     431//              "toy":XXX, 
     432                "transparency":"artwork", 
     433//              "treaty":XXX, 
     434                "videorecording":"videoRecording", 
    339435                "letter":"letter", 
    340436                "motion picture":"film", 
    341437                "art original":"artwork", 
    342438                "web site":"webpage" 
     439                "yearbook":"book", 
    343440        }; 
    344441         
    345442        // parse with E4X 
     
    399496                                        } 
    400497                                } 
    401498                                 
    402                                 if(!newItem.itemType) newItem.itemType = "book"; 
     499                                if(!newItem.itemType) newItem.itemType = "document"; 
    403500                        } 
    404501                } 
    405502