Changeset 22452

Show
Ignore:
Timestamp:
20.07.2010 15:55:04 (9 years ago)
Author:
kjdon
Message:

added a variable to store the default format, so can change it easily. Still have to recompile though. Maybe one day I'll have it read in from a file or somewhere.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/runtime-src/src/z3950/z3950server.cpp

    r22400 r22452  
    5454 
    5555int z3950_verbosity_ = 3; 
     56 
     57// change the default format here - these two must match 
     58int default_marc_format_d2m_ = USMARC; // USMARC, UNIMARC, DANMARC, FINMARC, NORMARC, SWEMARC 
     59oid_value default_marc_format_yaz_ = VAL_USMARC; // VAL_USMARC, VAL_UNIMARC, VAL_DANMARC, VAL_FINMARC, VAL_NORMARC, VAL_SWEMARC 
    5660 
    5761// *** initialize things here *** 
     
    674678    r->output_format = r->request_format; 
    675679 
    676     // *** use this until found a good way of mapping Greenstone 
    677     // *** metadata fields to USMARC fields 
     680    // simple unstructured text 
    678681    if (r->request_format == VAL_SUTRS) 
    679682    { 
     
    756759      default: 
    757760    // we don;t know any other format, so assume usMARC 
    758     record_format = USMARC; 
     761    record_format = default_marc_format_d2m_; 
    759762    // set above to be request_format, but this may change it 
    760     r->output_format = VAL_USMARC; 
     763    r->output_format = default_marc_format_yaz_; 
    761764      } 
    762765