Skip to content

Commit

Permalink
Include internal application version at Identify verb for support
Browse files Browse the repository at this point in the history
  • Loading branch information
viniciusandrade committed Nov 5, 2013
1 parent 2dd3fa9 commit c98d2ca
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions htdocs/isis-oai-provider/lib/OAIServer.php
Expand Up @@ -204,6 +204,8 @@ private function ProcessIdentify()
$Response .= $this->FormatTag("repositoryName", $this->RepDescr["Name"]);
$Response .= $this->FormatTag("baseURL", $this->RepDescr["BaseURL"]);
$Response .= $this->FormatTag("protocolVersion", "2.0");
$Response .= $this->FormatTag("applicationVersion", $this->RepDescr["AppVersion"]);

foreach ($this->RepDescr["AdminEmail"] as $AdminEmail)
{
$Response .= $this->FormatTag("adminEmail", $AdminEmail);
Expand Down
1 change: 1 addition & 0 deletions htdocs/isis-oai-provider/lib/app_version.php
@@ -0,0 +1 @@
<?php define(APPLICATION_VERSION,'0.3-4'); ?>
2 changes: 2 additions & 0 deletions htdocs/isis-oai-provider/oai.php
Expand Up @@ -10,6 +10,7 @@
require_once(APPLICATION_PATH . '/lib/ISISItemFactory.php');
require_once(APPLICATION_PATH . '/lib/ISISItem.php');
require_once(APPLICATION_PATH . '/lib/ISISDb.php');
require_once(APPLICATION_PATH . '/lib/app_version.php');

// default verb: Identify
$verb = ($_REQUEST['verb'] == "")? "Identify" : $_REQUEST['verb'];
Expand All @@ -25,6 +26,7 @@
"IDPrefix" => $CONFIG['INFORMATION']['IDPREFIX'],
"IDDomain" => $CONFIG['INFORMATION']['IDDOMAIN'],
"BaseURL" => "http://" . $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME'],
"AppVersion" => APPLICATION_VERSION,
);

$server = new OAIServer($repository_description, $item_factory, TRUE, 0);
Expand Down

0 comments on commit c98d2ca

Please sign in to comment.