Merge branch 'patroncards-wip' of git://git.foundations.edu/koha into community
[koha_fer] / opac / opac-suggestions.pl
index cd512de..8a43353 100755 (executable)
@@ -66,7 +66,7 @@ if ($allsuggestions){
 else {
        $$suggestion{suggestedby} ||= $borrowernumber unless ($allsuggestions);
 }
-warn "bornum:",$borrowernumber;
+warn "bornum:",$borrowernumber;
 use YAML;
 my $suggestions_loop =
   &SearchSuggestion( $suggestion);
@@ -75,7 +75,7 @@ if ( $op eq "add_confirm" ) {
                #some suggestion are answering the request Donot Add    
        } 
        else {
-               $$suggestion{'suggestioncreatedon'}=C4::Dates->today;
+               $$suggestion{'suggestioncreateddate'}=C4::Dates->today;
                $$suggestion{'branchcode'}=C4::Context->userenv->{"branch"};
                &NewSuggestion($suggestion);
                # empty fields, to avoid filter in "SearchSuggestion"
@@ -97,7 +97,7 @@ map{ $_->{'branchcodesuggestedby'}=GetBranchInfo($_->{'branchcodesuggestedby'})-
 my $supportlist=GetSupportList();                              
 foreach my $support(@$supportlist){
        if ($$support{'imageurl'}){
-               $$support{'imageurl'}= getitemtypeimagelocation( 'intranet', $$support{'imageurl'} );
+               $$support{'imageurl'}= getitemtypeimagelocation( 'opac', $$support{'imageurl'} );
        }
        else {
           delete $$support{'imageurl'}
@@ -112,5 +112,6 @@ $template->param(
          suggestionsview => 1
 );
 
+
 output_html_with_http_headers $input, $cookie, $template->output;