[Koha-bugs] [Bug 9703] Add optional parameter "as_string" to GetRecordValue subroutine

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Feb 25 03:10:31 CET 2013


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

David Cook <dcook at prosentient.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |Needs Signoff
           Assignee|gmcharlt at gmail.com          |dcook at prosentient.com.au

--- Comment #1 from David Cook <dcook at prosentient.com.au> ---
Created attachment 15646
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=15646&action=edit
Bug 9703 - Add optional parameter "as_string" to GetRecordValue subroutine

I've included a lot of text and an elaborate test plan below regarding this
enhancement, but it's actually quite trivial in itself, as it doesn't change
any default Koha behaviour. 

Its potential usage might be controversial, but I'm happy to discuss and I
think there's no harm in putting this patch through. 


Test Plan:

    1) Add multiple Keyword to MARC Mappings to your Koha instance using the
"author" field name (e.g. Field name: "author", MARC field: "100", MARC
subfield: "a", Field name: "author", MARC field: "100", MARC subfield: "c")
    2) Make sure that you have a bibliographic record that has a 100$a and
100$c entry (try anything by "Somme theologique: les actes humaines" by Saint
Thomas Aquinas), and that you have this catalogued with the same MARC
Bibliographic Framework where you made those Keyword to MARC Mappings.
    3) View that record in the OPAC (you'll probably just see "by Thomas,"
    3) Add the following code to your opac-detail.pl page after "my $dat" is
called:
    "my $author =  GetRecordValue('author', $record,
GetFrameworkCode($biblionumber), 'as_string');

    if ($author) { $dat->{author} = $author ; }
    4) Refresh your OPAC page
    5) Note that you should now have "by Thomas, Aquinas, Saint," showing

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


More information about the Koha-bugs mailing list