- Edit the institute feature
- SFX Admin Center > KBManager > Institutes : Define Institutes by IP
Range
- Edit the FEEDBACK.pm target parser
- UNIX login (e.g. sfxtst3) : tp (target parser directory) > cd FEEDBACK >
cp FEEDBACK.pm CUSTOMFEEDBACK.pm
- line 1: package designation becomes 'package
Parsers::TargetParser::FEEDBACK::CUSTOMFEEDBACK.pm;'
- about line 48: add a way to gather the institute value:
# customize
setting: generate institute value
$qry{inst} =
$ctx_obj->get('@req.institutes');
- Edit the feedback.cgi script to parse any additional fields you will add to the
web form (step 4 below)
This script accepts values from the web form and sends
them to designated email addresses - UNIX login (e.g. sfxtst3) : cgi > cd public
- cp feedback.cgi feedback_custom.cgi around line 45:
- $msg .= "\n\n** Username **\n" . $p->param('username');
$msg .= "\n\n**
Useremail **\n" . $p->param('useremail');
$msg .= "\n\n** Phone Number
**\n" . $p->param('Phone_Number') if $p->param('Phone_Number');
$msg .=
"\n\n** User Affiliation **\n" . $p->param('Duke_Affiliation') if
; Off campus but in the United
States</b><br>
<input type="RADIO"
name="Location" value="Off campus, overseas"> <b>
Off
campus and overseas</b><br>
...
<TMPL_INCLUDE
footer.tmpl>
- Add user parameters specific to each Institute
- For each institute added in step 1 (above), add the following three institute
parameters and values in the SFX Admin Center > KBManager > User
Parameters
- $$INSTANCE
- $$LOCAL_SERVER
- $$YOUR_EMAIL_ADDRESS
- e.g.
- SFX Admin Center > KBManager > User Parameters
- Add New Item
- Target Services is LOCAL_FEEDBACK-getWebService
- choose and Institute
- Flag Name (e.g. $$YOUR_EMAIL_ADDRESS
- Flag Value (e.g. frobnitz@foo.bar.edu)