This is an old revision of the document!
NICAM publication list by theme
Please check publication list by year for complete list.
<php>
// Load template
$txt_tem = file( 'theme_template.txt' );
$label = array();
$name = array();
for ( $i=0; $i<count($txt_tem); $i++ )
{
//print( 'debug: ' . $txt_tem[$i] );
if( preg_match( '/^\| *([^| ]+) *\| *([^|]+) *\|/', $txt_tem[$i], $matches ) )
{
//print( " -> match: $matches[1], $matches[2] \n" );
array_push( $label, $matches[1] );
array_push( $name, $matches[2] );
}
}
//for ( $j=0; $j<count($label); $j++ )
//{
// print( "label=$label[$j]: $name[$j] \n" );
//}
// Load publication $txt_pub = file( 'year.txt' );
// Show
for ( $j=0; $j<count($label); $j++ )
{
//print( "label=$label[$j] \n" );
print( "===== $name[$j] =====\n" );
for ( $i=0; $i<count($txt_pub); $i++ )
{
//if( preg_match( "/LABEL:$label[$j]/", $txt_pub[$i] ) )
if( preg_match( "/\/\*LABEL:$label[$j]\*\//", $txt_pub[$i] ) )
{
print( $txt_pub[$i] );
}
}
print( "\n" );
}
</php>