Any other ideas are very welcome. I got a comment of "I want to do LibGuides style tabbing" and am trying to come up with some better solutions.
Miriam
Miriam
--
You received this message because you are subscribed to the Google Groups "SubjectsPlus" group.
To view this discussion on the web visit https://groups.google.com/d/msg/subjectsplus/-/Uv-SvKnPdOcJ.
To post to this group, send email to subjec...@googlegroups.com.
To unsubscribe from this group, send email to subjectsplus...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/subjectsplus?hl=en.
*********************************************
Julia Bauder
Social Studies and Data Services Librarian
Interim Director of the Data Analysis and Social Inquiry Lab (DASIL)
Grinnell College Libraries
1111 Sixth Ave.
Grinnell, IA 50112
Miriam
--
Added show/hide,(display hidden/visible) feature to pluslet "All Items by Source"1. Add css and small script to <head> area of the header file, in this case I added to our custom-header.phtml that is called by the header.php file[css stuff].nolooky {display : none;}[script]<script><script>function showhide(id){jQuery('#'+id).toggle('slow');}</script>2. Modify /sp/control/includes/classes/sp_Pluslet_1.php, in function output,We really don't need the TOC, so we decided to disable itfrom://///////////////////////// Create TOC/////////////////////////$TOC = self::createTOC();$this->_body = $TOC;to (comment out the TOC stuff)://///////////////////////// Create TOC///////////////////////////$TOC = self::createTOC();//$this->_body = $TOC;--------------------from:if ($this_source_id != $last_source_id) {$results .= "<p class=\"leftcolheader\"><a name=\"$myrow[4]\"></a>$myrow[3]</p>\n\n";$last_source_id = $this_source_id;$res_class = "dbresults no-border";} else {$res_class = "dbresults";}to:if ($this_source_id != $last_source_id) {$results .= "$enddiv"; #first time through $enddiv is blank which is what we want
$nolooky_id += 1;$nolooky_id_name = sprintf("nolooky_id_%d",$nolooky_id); # create unique id names for each information type$results .= "<p onclick=\"showhide('{$nolooky_id_name}')\" class=\"leftcolheader\"><img src=\"/sp/assets/images/icons/expand.png\" /> <a name=\"$myrow[4]\"></a>$myrow[3]</p>\n\n<hr><div id=\"{$nolooky_id_name}\"class=\"nolooky\">";$last_source_id = $this_source_id;$enddiv = "</div>";$res_class = "dbresults no-border";} else {$res_class = "dbresults";}---------------------And a little lower down, from:}$this->_body .= $results;parent::assemblePluslet();return $this->_pluslet;to:}$results .= $enddiv; # needed this last closing </div>$this->_body .= $results;parent::assemblePluslet();return $this->_pluslet;