private class TextProvider: IResourceTextProvider

        {

            public bool ProcessResourceText( IResource res, IResourceTextConsumer consumer )

            {

                consumer.AddDocumentFragment( res.Id, res.GetPropText( "Name" ),

                    DocumentSection.SubjectSection );

               

                foreach( IResource author in res.GetLinksOfType( null, PropTypes.BookAuthor ) )

                {

                    consumer.AddDocumentFragment( res.Id, author.DisplayName,

                        DocumentSection.SourceSection );

                }

 

                consumer.AddDocumentFragment( res.Id, res.GetPropText( PropTypes.Isbn ) );

               

                return true;               

            }

        }