Oxy collapsible property for bookevent elements
Posted: Thu Jul 22, 2021 4:28 pm
We have done some customization in CSS for bookmap elements. For one of the requirement, we have do add custom CSS to element. We have the following structure for <bookchangehistory> element in our bookmap DTD.
We would like to add collapsible property to <bookevent> with <bookeventtype="changerecord">. Since this type of element can be inserted multiple times, we would like to have some kind of collapsible property defined only for these elements which can collapse all these elements in one go. It would be easier for end users to collapse all bookevent at once.
The element which should only remain visible are reviewed, edited, approved and first bookevent element. Rest all following bookevent elements must be collapsible.
We did try to add collapsible property to bookevent element, but it is adding to all the following bookevent elements. We also tried to add collapsible property to bookchangehistory with exceptions of approved. edited. reviewed and first bookevent element, but it always collapses all but the last element available in the CSS definition.
The above piece of code is hiding all but edited element.
Another observation with above mentioned code is that, even though I have ser oxy_lable as Revision Information, it is showing Bookchangehistory Revision Information as display text in author view.
Is there a way to achieve collapsibility to only bookevent elements at one go and not on individual ones?
Code: Select all
<bookchangehistory>
Code: Select all
<bookchangehistory>
<reviewed>
<person value=""/>
</reviewed>
<edited>
<person value=""/>
<organization/>
</edited>
<approved value="no">
<person value=""/>
<organization/>
</approved>
<bookevent>
<bookeventtype name="workflow_status" value="work"/>
</bookevent>
<bookevent>
<bookeventtype name="changerecord"/>
<person/>
<revisionid/>
<completed>
<year/>
<month/>
<day/>
</completed>
<summary/>
</bookevent>
<bookevent>
<bookeventtype name="changerecord"/>
<person/>
<revisionid/>
<completed>
<year/>
<month/>
<day/>
</completed>
<summary/>
</bookevent>
</bookchangehistory>
The element which should only remain visible are reviewed, edited, approved and first bookevent element. Rest all following bookevent elements must be collapsible.
We did try to add collapsible property to bookevent element, but it is adding to all the following bookevent elements. We also tried to add collapsible property to bookchangehistory with exceptions of approved. edited. reviewed and first bookevent element, but it always collapses all but the last element available in the CSS definition.
Code: Select all
*[class~="bookmap/bookchangehistory"]{
-oxy-foldable:true !important;
-oxy-folded:false !important;
content:oxy_label(text, "Revision Information", width, 163px, text-align, left,color,gray,styles,"font-weight:bold")!important;
color:gray;
font-weight:normal;
-oxy-not-foldable-child: bookevent;
-oxy-not-foldable-child: reviewed;
-oxy-not-foldable-child: approved;
-oxy-not-foldable-child: edited;
}
Another observation with above mentioned code is that, even though I have ser oxy_lable as Revision Information, it is showing Bookchangehistory Revision Information as display text in author view.
Is there a way to achieve collapsibility to only bookevent elements at one go and not on individual ones?