How To Change the Default Show / Hide Details Option when Displaying Search Results
Issue:
The Show/Hide Details option is set to Show by default in DocuShare, this can be changed but the option reverts to Show again after each search is performed.
Solution:
NOTE: This solution applies to DocuShare 6.x
Modify the dslib.vdf template
NOTE: You must be a Windows Administrator to perform this solution.
1. Copy the dslib.vdf from <DSHOME>\amber\templates\system
2. Paste the dslib.vdf into <DSHOME>\amber\templates\local
3. Open the <DSHOME>\amber\templates\local\dslib.vdf in a text editor. (such as NotePad)
4. Scroll down the file until around line 1258 (or search for the word style=”display )
5. The section should look like the one below.
<!-- show/hide details; selector in toolbar_multi -->
<!-- Uncomment this line and comment out the next if you want the abstract details hidden when the page is first displayed. -->
<!--<div style="display: none;" id="abstracttext">-->
<div style="display: ;" id="abstracttext">
<p><strong><insert ref="viewdef:dslibMessages:contentSnippet" /></strong></p>
<p><insert ref="request:xss_safe_value(value=$object:getSnippet)"/></p>
</div>
<else>
<div>
<p><strong><insert ref="viewdef:dslibMessages:contentSnippet" /></strong></p>
<p><insert ref="request:xss_safe_value(value=$object:getSnippet)"/></p></div>
</else>
</if>
6. Uncomment the div where <!--<div style="display: none;" id="abstracttext">-->
NOTE: To uncomment remove the <!-- at the beginning and the --> at the end.
Example: <div style="display: none;" id="abstracttext">
7. Comment out the div where <div style="display: ;" id="abstracttext">
NOTE: To comment out the line add the <!-- at the beginning and the --> at the end.
Example: <!--<div style="display: ;" id="abstracttext">-->
8. Save the modified dslib.vdf file.
9. The changes should take effect immediately.
NOTE: If you do not see the desired results please stop and restart DocuShare to ensure its using the new template.