} header("Content-Type: application/xml"); if (!isset($args['verb'])) { echo $pmh->header() . $pmh->request($args) . $pmh->error('badVerb', 'no verb') . $pmh->footer(); exit; } if ($args['verb'] == 'GetRecord') { echo $pmh->GetRecord($args); } else { if ($args['verb'] == 'Identify') { echo $pmh->Identify(); } else { if ($args['verb'] == 'ListIdentifiers') { echo $pmh->ListIdentifiers($args); } else { if ($args['verb'] == 'ListMetadataFormats') { echo $pmh->ListMetadataFormats($args); } else { if ($args['verb'] == 'ListRecords') { echo $pmh->ListRecords($args); } else { if ($args['verb'] == 'ListSets') { echo $pmh->ListSets($args); } else { echo $pmh->header() . $pmh->request($args) . $pmh->error('badVerb', 'illegal verb') . $pmh->footer(); } } } } } }