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

Owen Leonard oleonard at myacpl.org
Wed Mar 24 02:05:05 NZDT 2010


> 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


More information about the Koha mailing list