Skip to content

Commit

Permalink
Fix callNumber and mix stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno De Bel authored and Bruno De Bel committed Feb 14, 2018
1 parent 0a4715d commit 2db3f4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions project/inventory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ void inventoryMapping::setCurrentInventoryValue(std::string field, std::string v
if ( field.compare("title")==0 ) currentInventory->title=value;
if ( field.compare("subtitle")==0 ) currentInventory->subtitle=value;
if ( field.compare("barcode")==0 ) currentInventory->barcode=value;
if ( field.compare("identifier")==0) currentInventory->callnumber=value;
if ( field.compare("dateIssued")==0 ) currentInventory->formaldate=value;

if ( field.compare("publisher")==0 ) currentInventory->publisher=value;
Expand Down
4 changes: 2 additions & 2 deletions project/metsparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ void StateParseramdSecState::startElement (const char* const name, const xercesc
CTX.mandatoryField.insert("scannerManufacturer");
CTX.mandatoryField.insert("scannerModelName");
CTX.mandatoryField.insert("scannerModelSerialNo");
CTX.mandatoryField.insert("scanningSoftware");
CTX.mandatoryField.insert("scanningSoftwareName");
CTX.mandatoryField.insert("scanningSoftwareVersionNo");
CTX.mandatoryField.insert("dateTimeCreated");
CTX.mandatoryField.insert("imageProducer");
Expand Down Expand Up @@ -134,7 +134,7 @@ StateParserState* StateParserRootamdSecState::getNext(const char* const name){
map["scannerManufacturer"]=new StateEmptyCheck();
map["scannerModelName"]=new StateEmptyCheck();
map["scannerModelSerialNo"]=new StateEmptyCheck();
map["scanningSoftware"]=new StateEmptyCheck();
map["scanningSoftwareName"]=new StateEmptyCheck();
map["scanningSoftwareVersionNo"]=new StateEmptyCheck();
map["dateTimeCreated"]=new StateEmptyCheck();
map["imageProducer"]=new StateEmptyCheck();
Expand Down

0 comments on commit 2db3f4e

Please sign in to comment.