expcon action module Called from any PIE screen, expands or contracts an item action routine Input: CGI data from UIG (which contains itemid and userid) Output: Returns unmodified CGI data or CGI data with extra information about last search made PDL Get expanded state of item from viewitem table (so as to only change what this particular user sees) Expanded = 1-expanded Update viewitem table with new expanded value If response parameter is "searchresults" (Need to ensure that search data is set) Get data about last search from userdata table Foreach search parameter Set CGI parameter of same name Get list of resources searched from last_search_resources table Foreach resource Append resource_id to resource CGI parameter Return CGI data