I forgot to say you have to run 'search/make_index.sh' again after
making changes to global_index.cfg, "obviously".

On Mon, Nov 17, 2008 at 2:18 AM, Cyril DANGERVILLE
<[EMAIL PROTECTED]> wrote:
> Hello,
> FYI, I solved the first bug 1) mentioned below with the following change:
>
> diff -ur docbookeasy-svn/search/global_index.cfg
> docbookeasy/search/global_index.cfg
> --- docbookeasy-svn/search/global_index.cfg     2005-04-15 07:32:01.000000000 
> +0200
> +++ docbookeasy/search/global_index.cfg 2008-11-17 01:38:44.000000000 +0100
> @@ -42,7 +42,7 @@
>  #ExtractPath *metaname* [replace|remove|prepend|append|regex]
>  ExtractPath book_id regex !^.*/books/xml/([^/]+)/.*$!$1!
>  ExtractPath lng regex !^.*/books/xml/[^/]+/([^/]+)/.*$!$1!
> -ExtractPath path regex !^.*/books/xml/[^/]+/[^/]+/(.*/)[^/]+$!$1!
> +ExtractPath path regex !^.*/books/xml/[^/]+/[^/]+/(.*)$!$1!
>
>  # This can be used with ExtractPath to set a default string to index under
>  # the given metaname if none of the ExtractPath patterns match.
> diff -ur docbookeasy-svn/templates/main/main.php
> docbookeasy/templates/main/main.php
> --- docbookeasy-svn/templates/main/main.php     2008-03-27 07:06:48.000000000 
> +0100
> +++ docbookeasy/templates/main/main.php 2008-11-17 02:05:19.000000000 +0100
> @@ -156,7 +155,8 @@
>       }
>     else
>       {
> -        $chunk = $event_args['chunk'];
> +        // remove '.xml'  extension from node_path
> +       $chunk = substr($event_args['node_path'], 0, -4);
>         $lng = $event_args['lng'];
>         if ($lng=='')
>           {
> ------------
>
> I hope it helps. Next time, I do a 'svn diff' to have a proper patch.
> Promised ;)
> -- Cyril
>
>
> On Thu, Nov 13, 2008 at 6:50 AM, Dashamir Hoxha <[EMAIL PROTECTED]> wrote:
>> Hi Cyril,
>>
>> It is clearly a bug. You can expect many other things like this, since
>> docbookeasy 1.0 is
>> just an initial release, not a stable one (maybe the release number
>> should have been 0.1).
>>
>> If you are kind of a developer and don't mind to get hands dirty in
>> the code, I can give you
>> any hint and you can try to fix it yourself. Otherwise I will try to
>> fix it when I have time and
>> I will let you know when it is done.
>>
>> Regards,
>> Dashamir
>>
>> On Thu, Nov 13, 2008 at 2:45 AM, Cyril DANGERVILLE
>> <[EMAIL PROTECTED]> wrote:
>>> Hello,
>>> I just installed docbookeasy 1.0. This application seems great overall.
>>> However, I am facing a couple of bugs that I'd like some help with:
>>>
>>> 1) When doing searches:
>>> Say I am searching "subversion" in the Docbookeasy docbook (just an
>>> example, the result is the same with search in general). I get "5
>>> nodes found", that's OK. But if I click on any of the results, say
>>> "General Overview" - the link reads
>>> "javascript:display('docbookeasy','docbookeasy/managing_content/','en')"
>>> in case this helps - I get this error message:
>>>
>>> ---
>>> WebApp Error: Parser::parse_file(): file
>>> 'content/books/xhtml/docbookeasy/en/undefined.xhtml' does not exist.
>>> ---
>>>
>>> (Note: the title says "{up_title} -->  {this_title} ".)
>>> Something wrong with the node path?
>>>
>>> 2) Just for testing if I would get the same error, I tried to go to
>>> the node by entering the URL manually as told in the documentation:
>>> "xref.php?mode/book_id/sect_id/lng". In my example, this gives
>>> "xref.php?view/docbookeasy/managing_content/en" (correct me if I'm
>>> wrong). This time, I get this more meaningful error message:
>>>
>>> ---
>>> WebApp Error: Parser::parse_file(): file
>>> 'content/books/xhtml/docbookeasy/en/warning: failed to load external
>>> entity "xslt/edit/get_node_path.xsl" cannot parse
>>> xslt/edit/get_node_path.xsl .xhtml' does not exist.
>>> ---
>>>
>>> I could notice there is no such file as "xslt/edit/get_node_path.xsl"
>>> indeed. (I noticed this file exists in the former docbookwiki version.
>>> Has it been replaced with another xsl?)
>>>
>>> How to fix it?
>>>
>>> Thanks for the help.
>>>
>>> Regards,
>>> --Cyril
>>>
>>> -------------------------------------------------------------------------
>>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>>> Build the coolest Linux based applications with Moblin SDK & win great 
>>> prizes
>>> Grand prize is a trip for two to an Open Source event anywhere in the world
>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>> _______________________________________________
>>> Doc-book-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/doc-book-users
>>>
>>
>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Doc-book-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/doc-book-users

Reply via email to