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

David Cook <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |Needs Signoff
           Assignee|[email protected]          |[email protected]

--- Comment #1 from David Cook <[email protected]> ---
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.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to