Changeset 1883
- Timestamp:
- 2006-01-26 15:08:56 (3 years ago)
- Files:
-
- Anode/acidfree/output_cmml.php (deleted)
- Anode/trunk/Anode.module (moved) (moved from Anode/Anode.module)
- Anode/trunk/acidfree (moved) (moved from Anode/acidfree)
- Anode/trunk/acidfree/class_anode.inc (modified) (2 diffs)
- Anode/trunk/acidfree/output_annodex.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
Anode/trunk/acidfree/class_anode.inc
r1880 r1883 67 67 $media_location = _acidfree_filemanager_url($node->large,true); 68 68 $anx_stub = '<?php 69 $media_file = "'.$media_location.'";70 require_once("../../../modules/output_annodex.php");';69 require_once("../../../modules/output_annodex.php"); 70 output_annodex( "'.$media_location.'" )'; 71 71 //FIXME this kind of path hardcoding can't be good. 72 72 … … 79 79 //FIXME maybe just define the node id? 80 80 $cmml_stub = '<?php 81 $media_file = "'.$media_location.'";82 require_once("../../../modules/output_cmml.php");';81 require_once("../../../modules/output_annodex.php"); 82 output_cmml( "'.$media_location.'" )'; 83 83 //FIXME this kind of path hardcoding can't be good. 84 84 Anode/trunk/acidfree/output_annodex.php
r1880 r1883 7 7 require_once("phpannodex/AnnodexWriter.php"); 8 8 9 $anx = new AnnodexWriter(); 10 $anx->import($media_file,NULL,NULL,0,-1); 9 function output_annodex( $media_file, $output_headers=TRUE ) { 10 $anx = new AnnodexWriter(); 11 $anx->import($media_file,NULL,NULL,0,-1); 11 12 12 while( $buffer = $anx->write_output() ) {13 while( $buffer = $anx->write_output() ) { 13 14 echo $buffer; 15 } 16 17 $anx->close(); 18 return; 14 19 } 15 20 16 $anx->close(); 17 return; 21 function output_cmml( $cmml_file, $output_headers=TRUE ) { 22 23 echo "This is pretty CMML"; 24 return; 25 } 18 26 27 function output_cmml_headers() { 28 29 return; 30 } 31 32 function output_annodex_headers( AnnodexWriter $anx ) { 33 34 return; 35 } 36