Mercurial > hg > extraction-interface
comparison models/extractapp.php @ 89:e681d693240e extractapp
new: generated regex to SmartRegex
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Wed, 03 Jun 2015 16:54:09 +0200 |
parents | fb5049fc5dd7 |
children | 94ad33739fa4 |
comparison
equal
deleted
inserted
replaced
88:61593b047289 | 89:e681d693240e |
---|---|
411 $text .= "<place_name>".$book->place_name."</place_name>\n"; | 411 $text .= "<place_name>".$book->place_name."</place_name>\n"; |
412 $text .= "<x>".$book->x."</x>\n"; | 412 $text .= "<x>".$book->x."</x>\n"; |
413 $text .= "<y>".$book->y."</y>\n"; | 413 $text .= "<y>".$book->y."</y>\n"; |
414 $text .= "</book>\n"; | 414 $text .= "</book>\n"; |
415 | 415 |
416 /* | |
417 foreach ($book as $b) { | |
418 $text .= "<book>\n"; | |
419 $text .= "<id>".$b[0]."</id>\n"; | |
420 $text .= "<name>".$b[1]."</name>\n"; | |
421 $text .= "<level1>".$b[2]."</level1>\n"; | |
422 $text .= "<level2>".$b[3]."</level2>\n"; | |
423 $text .= "<period>".$b[4]."</period>\n"; | |
424 $text .= "<dynasty>".$b[5]."</dynasty>\n"; | |
425 $text .= "<start_year>".$b[6]."</start_year>\n"; | |
426 $text .= "<end_year>".$b[7]."</end_year>\n"; | |
427 $text .= "<line>".$b[8]."</line>\n"; | |
428 $text .= "<volume>".$b[9]."</volume>\n"; | |
429 $text .= "<author>".$b[10]."</author>\n"; | |
430 $text .= "<edition>".$b[11]."</edition>\n"; | |
431 $text .= "<in_jibengujiku>".$b[12]."</in_jibengujiku>\n"; | |
432 $text .= "<admin_type>".$b[13]."</admin_type>\n"; | |
433 $text .= "</book>\n"; | |
434 | |
435 } | |
436 */ | |
437 | 416 |
438 // --- section info --- | 417 // --- section info --- |
439 $text .= "<section>\n"; | 418 $text .= "<section>\n"; |
440 $text .= "<id>".$this->section_id."</id>\n"; | 419 $text .= "<id>".$this->section_id."</id>\n"; |
441 $text .= "<name>".$this->section_name."</name>\n"; | 420 $text .= "<name>".$this->section_name."</name>\n"; |