+
+ # get details of the list
+ my ($shelfnumber,$shelfname,$owner,$category,$sorton) = GetShelf($shelfid);
+
+ # if modal context is passed set a variable so that page markup can be different
+ if($context eq "modal"){
+ $template->param(modal => 1);
+ } else {
+ $template->param(fullpage => 1);
+ }
+ $template->param(csv_profiles => GetCsvProfilesLoop('marc'));
+ $template->param(
+ showprivateshelves => $showprivateshelves,
+ shelfid => $shelfid,
+ shelfname => $shelfname,
+ shelfnumber => $shelfnumber,
+ viewshelf => $shelfnumber
+ );