View | Details | Raw Unified | Return to bug 1883
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tmpl (+3 lines)
Lines 116-121 h4.collapse a { font-size : 80%; text-decoration: none; } fieldset.brief ol { di Link Here
116
            <!--/TMPL_LOOP-->
116
            <!--/TMPL_LOOP-->
117
            </select>
117
            </select>
118
        </li>
118
        </li>
119
        <!-- TMPL_IF NAME="patron_reason_loop" --><li><label for="patronreason">Reason for suggestion: </label><select name="patronreason" id="patronreason"><option value=""> -- Choose -- </option><!-- TMPL_LOOP NAME="patron_reason_loop" -->
120
                <!-- TMPL_IF NAME="selected" --><option value="<!-- TMPL_VAR NAME="authorised_value" -->" selected="selected"><!--TMPL_VAR NAME="lib" --></option><!-- TMPL_ELSE --><option value="<!-- TMPL_VAR NAME="authorised_value" -->"><!--TMPL_VAR NAME="lib" --></option><!-- /TMPL_IF -->
121
           <!-- /TMPL_LOOP --></select></li><!-- /TMPL_IF -->
119
        <li><label for="note">Notes:</label><textarea name="note" id="note" rows="5" cols="40"><!--TMPL_VAR Name="note"--></textarea></li>
122
        <li><label for="note">Notes:</label><textarea name="note" id="note" rows="5" cols="40"><!--TMPL_VAR Name="note"--></textarea></li>
120
        </ol>
123
        </ol>
121
    </fieldset>
124
    </fieldset>
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-suggestions.tmpl (+3 lines)
Lines 91-96 $.tablesorter.addParser({ Link Here
91
			<!-- TMPL_IF name="selected" --><option value="<!-- TMPL_VAR name="itemtype"-->" selected="selected"> <!--TMPL_ELSE--><option value="<!-- TMPL_VAR name="itemtype" -->"> <!--/TMPL_IF--> <!-- TMPL_VAR name="description" --></option>
91
			<!-- TMPL_IF name="selected" --><option value="<!-- TMPL_VAR name="itemtype"-->" selected="selected"> <!--TMPL_ELSE--><option value="<!-- TMPL_VAR name="itemtype" -->"> <!--/TMPL_IF--> <!-- TMPL_VAR name="description" --></option>
92
        <!-- /TMPL_LOOP -->
92
        <!-- /TMPL_LOOP -->
93
        </select> </li>
93
        </select> </li>
94
    <!-- TMPL_IF NAME="patron_reason_loop" --><li><label for="patronreason">Reason for suggestion: </label><select name="patronreason" id="patronreason"><option value="">-- Choose --</option><!-- TMPL_LOOP NAME="patron_reason_loop" -->
95
           <option value="<!-- TMPL_VAR NAME="authorised_value" -->"><!--TMPL_VAR NAME="lib" --></option>
96
    <!-- /TMPL_LOOP --></select></li><!-- /TMPL_IF -->
94
    <li><label for="note">Notes:</label><textarea name="note" id="note" rows="5" cols="40"></textarea></li>
97
    <li><label for="note">Notes:</label><textarea name="note" id="note" rows="5" cols="40"></textarea></li>
95
    </ol></fieldset>
98
    </ol></fieldset>
96
        <fieldset class="action"><input type="hidden" name="suggestedby" value="<!--TMPL_VAR Name="suggestedbyme"-->" /><input type="hidden" name="op" value="add_confirm" /><input type="submit" onclick="Check(this.form); return false;" value="Submit Your Suggestion" /> <a class="action" href="/cgi-bin/koha/opac-suggestions.pl">Cancel</a></fieldset>
99
        <fieldset class="action"><input type="hidden" name="suggestedby" value="<!--TMPL_VAR Name="suggestedbyme"-->" /><input type="hidden" name="op" value="add_confirm" /><input type="submit" onclick="Check(this.form); return false;" value="Submit Your Suggestion" /> <a class="action" href="/cgi-bin/koha/opac-suggestions.pl">Cancel</a></fieldset>
(-)a/opac/opac-suggestions.pl (-1 / +6 lines)
Lines 115-131 foreach my $suggestion(@$suggestions_loop) { Link Here
115
    } else {
115
    } else {
116
        $suggestion->{'showcheckbox'} = 0;
116
        $suggestion->{'showcheckbox'} = 0;
117
    }
117
    }
118
    if($suggestion->{'patronreason'}){
119
        $suggestion->{'patronreason'} = GetKohaAuthorisedValueLib("OPAC_SUG",$suggestion->{'patronreason'},1);
120
    }
118
}
121
}
119
122
123
my $patron_reason_loop = GetAuthorisedValues("OPAC_SUG");
124
120
$template->param(
125
$template->param(
121
	%$suggestion,
126
	%$suggestion,
122
	itemtypeloop=> $supportlist,
127
	itemtypeloop=> $supportlist,
123
    suggestions_loop => $suggestions_loop,
128
    suggestions_loop => $suggestions_loop,
129
    patron_reason_loop => $patron_reason_loop,
124
    showall    => $allsuggestions,
130
    showall    => $allsuggestions,
125
    "op_$op"         => 1,
131
    "op_$op"         => 1,
126
    suggestionsview => 1,
132
    suggestionsview => 1,
127
);
133
);
128
134
129
130
output_html_with_http_headers $input, $cookie, $template->output;
135
output_html_with_http_headers $input, $cookie, $template->output;
131
136
(-)a/suggestion/suggestion.pl (-1 / +3 lines)
Lines 259-264 foreach my $support(@$supportlist){ Link Here
259
}
259
}
260
$template->param(itemtypeloop=>$supportlist);
260
$template->param(itemtypeloop=>$supportlist);
261
261
262
my $patron_reason_loop = GetAuthorisedValues("OPAC_SUG",$$suggestion_ref{'patronreason'});
263
$template->param(patron_reason_loop=>$patron_reason_loop);
264
262
#Budgets management
265
#Budgets management
263
my $searchbudgets={ budget_branchcode=>$branchfilter} if $branchfilter;
266
my $searchbudgets={ budget_branchcode=>$branchfilter} if $branchfilter;
264
my $budgets = GetBudgets($searchbudgets);
267
my $budgets = GetBudgets($searchbudgets);
265
- 

Return to bug 1883