[svn r19765] FS#4030 - Fixing the "Document Metadata" form.

skala
Ivan Tcholakov 16 years ago
parent aefbbb671c
commit 7353f2353f
  1. 14
      main/inc/lib/xht.lib.php
  2. 4
      main/metadata/doc/mdApiTest.php
  3. 4
      main/metadata/md_document.htt
  4. 4
      main/metadata/openobject.php

@ -362,6 +362,18 @@ function _show_param() // for debugging info
function _lang($var, $cur_elem = 0)
{
$result = @call_user_func($this->xht_get_lang, $var, $cur_elem);
// This is a hack for proper working of the language selectors
// in the forms that are generated through templates.
if ($var == 'Langs')
{
global $langLangs;
if (isset($langLangs))
{
$result = $langLangs;
}
}
return isset($result) ? $result : $var;
}
@ -536,4 +548,4 @@ Example template file:
-->
*/
?>
?>

@ -23,7 +23,9 @@ define('EID_TYPE', 'Document');
require('../md_' . strtolower(EID_TYPE) . '.php');
// name of the language file that needs to be included
/*
$language_file = 'Whatever';
*/
require("../../inc/global.inc.php");
isset($_course) or give_up("Select a course first...");
@ -141,4 +143,4 @@ $mdStore->mds_append(EID_TYPE . '.1001', ' more findable terms');
Display::display_footer();
?>
?>

@ -143,7 +143,7 @@
<tr>
<td colspan="2">{-D label Format-}{-C LABEL-}</td>
<td>{-D xpath metadata/lom/technical/format-}{-D optionarray Formats-}{-C SELECT-}</td>
<td><a href="{-X metadata/lom/technical/location-}">{-D label Location-}{-C LABEL-}</a></td>
<td><a href="{-X metadata/lom/technical/location-}" target="_blank">{-D label Location-}{-C LABEL-}</a></td>
<td>{-D xpath metadata/lom/technical/location-}{-C INPUTW-}</td>
</tr>
<tr>
@ -259,4 +259,4 @@ Small problems with NS 7 and Mozilla 1.7...
2. Old script is cached and may pop up as error 'oCl is not defined'.
<!-- {--} -->
<!-- {--} -->

@ -19,7 +19,9 @@
require("md_funcs.php");
// name of the language file that needs to be included
/*
$language_file = 'Whatever';
*/
require("../inc/global.inc.php");
$this_section=SECTION_COURSES;
@ -32,4 +34,4 @@ $mdObj = new mdobject($_course, substr(EID, $dotpos + 1));
header('Location: ' . $mdObj->mdo_url);
exit;
?>
?>

Loading…
Cancel
Save