[Koha] placing text into 520 tag. Help plz.!

Kyle Hall kyle.m.hall at gmail.com
Wed Mar 24 02:17:00 NZDT 2010


This could be done as a plugin for the marc editor, if you can write
perl. I think that would be by far the best solution. Check out the
existing plugins for some guidance. I shouldn't be much harder to do
in perl that it is in php.

Kyle

http://www.kylehall.info
Information Technology
Crawford County Federated Library System ( http://www.ccfls.org )




On Tue, Mar 23, 2010 at 9:05 AM, Owen Leonard <oleonard at myacpl.org> wrote:
>> i want to embed this code in 520 tag so that it places text file into 520
>> (abstract) tag before saving the record ....
>
> I assume you mean that you want to do this in the Koha Cataloging interface?
>
>> echo '<textarea name="stuff" cols="60" rows="10">';
>> echo stripslashes($theData);
>> echo '</textarea><br>';
>
> This might work if you were working with Perl (which is what Koha is
> written in) and you were modifying the addbiblio.pl script. As it is
> you have a couple of options:
>
> 1. Deploy your PHP script as a separate page. Copy the resulting text
> from your PHP page and copy it manually into the relevant textarea in
> Koha's MARC editor.
>
> 2. Configure your PHP script to return plain text and write a some
> custom javascript to use AJAX to grab the text from the PHP script and
> automatically populate the 520 tag textarea. It sounds possible, but
> I'm not sure how you would connect the two pieces: how would the MARC
> editor pass an identifying token to the PHP script to tell it which
> record to pull? That's something you'd have to figure out.
>
>  -- Owen
>
> --
> Web Developer
> Athens County Public Libraries
> http://www.myacpl.org
> _______________________________________________
> Koha mailing list
> Koha at lists.katipo.co.nz
> http://lists.katipo.co.nz/mailman/listinfo/koha
>


More information about the Koha mailing list