Generate toc_url entry into XML
authorNigel Metheringham <nigel.metheringham@jrtheatre.co.uk>
Sat, 9 Jun 2012 19:01:35 +0000 (20:01 +0100)
committerNigel Metheringham <nigel.metheringham@jrtheatre.co.uk>
Sat, 9 Jun 2012 19:01:35 +0000 (20:01 +0100)
script/gen.pl

index bb94a7c2e9bb2898898d4c9a13bc616de2cc6079..17f697d5223dfee5ce41cd75bc665a4a38d5a506 100755 (executable)
@@ -155,6 +155,7 @@ sub do_doc {
                 : sprintf( '%sch%02d.html', $prepend_chapter, $counter - 1 ) );
             $chapter->appendTextChild( 'next_url', sprintf( '%sch%02d.html', $prepend_chapter, $counter + 1 ) )
                 unless int(@chapters) == $counter;
+            $chapter->appendTextChild( 'toc_url', ( $type eq 'filter' ? 'filter' : 'index' ) . '.html' );
             $chapter->appendTextChild(
                 'canonical_url',
                 sprintf(