'; $query .= '\n'; $query .= ''.$url.'\n'; $query .= ''; $w = waramu_get(); $resp = $w->listIdentifiers("", $query); $ids = $resp['identifiers'][0]['id']; if (!empty($ids)) { /*translation:Resource with that URL is already created.*/ register_error(elgg_echo('koolielu:resource_url_error')); forward('pg/waramu/new?show=link'); } $_SESSION['url'] = $url; $_SESSION['schema'] = "http://koolielu.ee/schemas/Reference"; $_SESSION['mdLanguage'] = 'et'; // remove previous values from session unset($_SESSION['keywords']); unset($_SESSION['language']); unset($_SESSION['lotype']); unset($_SESSION['license']); unset($_SESSION['curriculumSubject']); unset($_SESSION['min']); unset($_SESSION['max']); forward('pg/waramu/edit'); ?>