[Koha-bugs] [Bug 14049] New: Personalized OPAC purchase suggestion fields

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Apr 22 18:17:37 CEST 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14049

            Bug ID: 14049
           Summary: Personalized OPAC purchase suggestion fields
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: OPAC
          Assignee: oleonard at myacpl.org
          Reporter: pablo.bianchi at gmail.com
        QA Contact: testopia at bugs.koha-community.org

Before using Koha we were using a local develop for purchase suggestion
requests («desiderata»). Now I'm trying to extend/add suggestion fields to add
some data we were asking in the form and Koha doesn't include, something like
what ExtendedPatronAttributes syspref does with patron fields.
First I naively tried to add to opac-suggestions.tt
  <li><label for="newField">Extrafield:</label><input type="text" id="newfield"
name="newfield" maxlength="40" /></li>

and  on submit:
  onsubmit="this.note.value=this.note.value+' - '+this.newfield.value; return
true;"

to concatenate extended fields (yeah, dirty) but it seems Suggestions.pm do a
foreach walk over form ids: 
Software error: DBIx::Class::ResultSet::create(): No such column alum on
Koha::Schema::Result::Suggestion at /usr/share/koha/lib/C4/Suggestions.pm line
450

Koha should let staff user to extend suggestions fields, maybe with a
ExtendedSuggestionFields sysfref.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list