Пример #1
0
 switch ($verb) {
     case "ListRecords":
         if ($error == false) {
             $dataModel = new $methodology();
             listRecords($metadataPrefix, $methodology, $fullpath);
         }
         break;
     case "GetRecord":
         if ($error == false) {
             $dataModel = new $methodology();
             getRecord($identifier, $methodology, $fullpath);
         }
         break;
     case "Identify":
         print headXML($verb);
         print identify();
         $error = false;
         break;
     case "ListIdentifiers":
         if ($error == false) {
             $dataModel = new $methodology();
             listRecords($metadataPrefix, $methodology);
         }
         break;
     case "ListSets":
         listRecords($metadataPrefix, $methodology);
         break;
     case "ListMetadataFormats":
         print headXML($verb);
         print listMetadataFormats();
         $error = false;
Пример #2
0
            $csw->params['QSTR'][] = "AND";
            $csw->params['QSTR'][] = "_SERVER_ = '" . $input['set'] . "'";
        }
        $csw->params['ELEMENTSETNAME'] = 'summary';
        break;
    case 'getrecord':
        $csw->params["VERB"] = "GetRecord";
        $csw->params['REQUEST'] = 'GetRecords';
        $csw->params['ELEMENTSETNAME'] = 'summary';
        $id = explode(":", $input['identifier']);
        $id = $id[count($id) - 1];
        //$csw->params['ID'] = $id;
        $csw->params['QSTR'][] = "@identifier = '" . $id . "'";
        break;
    case 'identify':
        identify();
        exit;
        break;
    case 'listsets':
        listSets();
        exit;
        break;
    default:
        error("badVerb", 'Value of the "verb" argument is not a legal OAI-PMH verb, the "verb" argument is missing, or the "verb" argument is repeating');
        exit;
        break;
}
$csw->requestType = 1;
$csw->params['SERVICE'] = 'CSW';
$csw->params['TYPENAMES'] = htmlspecialchars($input['metadataprefix']);
$csw->params['VERSION'] = '2.0.2';
Пример #3
0
                    </form>
                </div>
            </div>

        </div>

        <div class="col-lg-6">



            <?php 
$found = array();
$id_array = array();
$unfound = array();
foreach ($keyword_array as $keyword) {
    $ids = identify($dbc, $keyword);
    foreach ($ids as $id) {
        $found[] = get_entity_link($id, $keyword, $db_name);
        $id_array[] = $id;
    }
    if (count($ids) == 0) {
        $unfound[] = $keyword;
    }
}
?>

            <div class="container">


                <div class="btn-group pull-right">