Name

addrelicons — adds a small table containing icons from related sets

Synopsis

use Wacs;
use Wacs::WacsUI;
scalar addrelicons(...); 
 

Parameters

parameterdescription
setnoThe set number of this set
stypeThe type of this set
sformatThe format of this set - mostly useful for videos
layoutHow to layout the resulting output - specify table for HTML table, div for appropriate DIVs for CSS formating.
sizeSize of the icons to use - mini, std, etc.
perrow

Specifies how many icons should be included in each row of the table when displaying continuation icons (see addconticons below)

destlocWhich configuration variable to use for location of link destination application - typically cgiurl for perl scripts, siteurl for php scripts, or wacsurl for wacs GUI elements (like glyphs, javascript files or stylesheets)
destappThe stem of the URL to link to around the icon, something like wacsindex/page, needs to include any parameter introducers like page or setid=
destext

The extension of the URL to link to, or null, ie .html or .php. From Wacs 0.9.0 onwards this can also be none to leave it empty.

destinfoThe stem of the URL to link around a link to more information, something like wacsindex/info, needs to include any parameter introducers like page or setid=
dbhandleHandle to the current database connection for query

Summary

The addrelicons function returns the HTML to generate a small table with icons with hyperlinks for duplicate and/or continuation sets. It arranges the duplicate sets it rows, adding any appropriate continuation icons within each row as needed. It calls the function addconticons to produce each row of icons. Various optional parameters control how this HTML segment is generated.

Availability

addrelicons is available from Wacs release 0.9.0 onwards in both perl and php. It was not available prior to this release.