BRKMYR / co-ode-owl-plugins

Automatically exported from code.google.com/p/co-ode-owl-plugins
0 stars 0 forks source link

OWLDoc: Bug in Asserted Class Hierarchy for more than 3 subclasses #23

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
  In Protege 4 (build 113) select Tools/Export OWLDoc

What is the expected output? What do you see instead?

  For Classes with more than 3 subclasses there is a "N more..." link at 
the end of the Asserted class hierarchy where N is the number of more 
subclasses. Nothing happens when clicking this link. JavaScript Debugger 
says:

> missing ) after argument list 
>   showSubs(''Behaviour Characteristic'');

Using the online version from http://code.google.com/p/ontology-browser/ 
the "N more..." links are working perfect...

What version of the product are you using? On what operating system?
  Protege 4, build 113
  OWLDoc plugin 1.0.9

Christian.

Original issue reported on code.google.com by christia...@gmail.com on 13 Oct 2009 at 8:58

GoogleCodeExporter commented 8 years ago
I found the error. OWLDoc is producing the following code:

<span id=''Teddy Entity'' style='display: none;'>
<li class='expandable'> +
<a href="TEDDY_0000083___-1572585971.html" 
title="http://www.ebi.ac.uk/compneur-srv/
teddy.owl#TEDDY_0000083">'Temporal Behaviour'</a></li><li class='expandable'> +
<a href="TEDDY_obsolete___1509148937.html" 
title="http://www.ebi.ac.uk/compneur-srv/
teddy.owl#TEDDY_obsolete">_obsolete</a></li></span><!-- subs -->
<span id=''Teddy Entity'-expand'><a class='subsexpand' id='showSubs' href='#' 
onClick="showSubs(''Teddy Entity'');">2 more...</a></span>

The double apostrophe ('') for the id of the span block is wrong. It produces 
the 
error when showSubs() is called... It has to be single apostrophs:

<span id='Teddy Entity' style='display: none;'>

...

<span id=''Teddy Entity'-expand'><a class='subsexpand' id='showSubs' href='#' 
onClick="showSubs('Teddy Entity');">2 more...</a></span>

Christian.

Original comment by christia...@gmail.com on 13 Oct 2009 at 9:14