Customizing Feedback for askref in SFX - ELUNA 2006

Post on 22-Nov-2014

1.629 views 0 download

Tags:

description

Library has more than one location for askref feedback. A very small number of tweaks can be input so that the feedback can go to the appropriate reference desk.

Transcript of Customizing Feedback for askref in SFX - ELUNA 2006

Customizing Feedback Forms For Multiple Locations

John.Little@Duke.eduELU-NA 2006

Knoxville, TN

The Problem

• We are not Consortia

• SFX Admin is Centralized

• Independent Administration = Different Brands + Different Reference Desks (Email Addresses)

• The Target Configuration Document clarifies that customization is not supported

The Solution

• Use the Built-in Institute Feature

• Customize the Target Parser

• Customize the cgi script

• Customize the Feedback Templates

The Disclaimers

• UNIX level permissions

• Familiarity with HTML

• Familiarity with CGI

• Added complexity for Monthly Updates and Version Upgrades

• Mileage May Vary

5 Easy Steps

1. Edit the institute feature

2. Edit the FEEDBACK.pm target parser

3. Edit the feedback.cgi script

4. Edit the feedback web templates

5. Add user parameters specific to each Institute

Institute Feature

Protecting the Innocent

Target Parser

• Add this line to FEEDBACK.pm:$qry{inst}    = $ctx_obj->get('@req.institutes');

FEEBACK cgi$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 $p->param('Duke_Affiliation');$msg .= "\n\n** Location **\n" . $p->param('Location') if $p->param('Location');$msg .= "\n\n** Department **\n" . $p->param('Dept') if $p->param('Dept');

Feedback Templates

<hr><input type="RADIO" name="Duke_Affiliation" value="Faculty/Staff"

checked><b> Duke faculty or staff </b><br><input type="RADIO" name="Duke_Affiliation" value="Student"> <b> Duke student </b><br><input type="RADIO" name="Duke_Affiliation" value="Alumnus">

<b> Duke alumnus </b><br><input type="RADIO" name="Duke_Affiliation" value="None"> <b> Not affiliated with Duke </b><br>

User Parameters

Target Parser

More Detail

• http://www.duke.edu/~jrl/sfx.htm

John.Little@Duke.edu ELU-NA 2006