<?php

/**
 * @file plugins/metadata/openurl10/schema/Openurl10DissertationSchema.inc.php
 *
 * Copyright (c) 2014-2019 Simon Fraser University
 * Copyright (c) 2000-2019 John Willinsky
 * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
 *
 * @class Openurl10DissertationSchema
 * @ingroup plugins_metadata_openurl10_schema
 * @see Openurl10BaseSchema
 *
 * @brief Class that provides meta-data properties of the
 *  OpenURL 1.0 dissertation standard.
 */


import('lib.pkp.plugins.metadata.openurl10.schema.Openurl10BaseSchema');

// "dissertation" is not defined as genre in the standard. We only use it internally.
define('OPENURL10_PSEUDOGENRE_DISSERTATION', 'dissertation');

class Openurl10DissertationSchema extends Openurl10BaseSchema {
	/**
	 * Constructor
	 */
	function __construct() {
		parent::__construct(
			'openurl-1.0-dissertation',
			'lib.pkp.plugins.metadata.openurl10.schema.Openurl10DissertationSchema'
		);

		// Add meta-data properties that only appear in the OpenURL dissertation standard
		$this->addProperty('co'); // Country of publication (plain text)
		$this->addProperty('cc'); // Country of publication (ISO 2-character code)
		$this->addProperty('inst'); // Institution that issued the dissertation
		$this->addProperty('advisor');
		$this->addProperty('tpages', METADATA_PROPERTY_TYPE_INTEGER);
		$this->addProperty('degree');
	}
}

