From: Frédéric Demians Date: Fri, 8 Apr 2011 17:49:33 +0000 (+0200) Subject: Bug 6150 UNIMARC field 225 plugin: allow $a value data entry X-Git-Tag: v3.06.00~339 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=a7dd94769f0af0e9cfcfd3b78549fa532e326756;p=koha_gimpoz Bug 6150 UNIMARC field 225 plugin: allow $a value data entry The current UNIMARC 225 plugin behavior forces cataloguer to select a collection name in a combo box. The content of this combo box comes from special EDITORS authorities list which is constructed by a script. So there is no way to add a new collection directly in biblio data entry form. A input box can be added to the plugin form in order to enter by hand a new collection. Signed-off-by: Julian Maurice Signed-off-by: Ian Walls Signed-off-by: Chris Cormack --- diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_225a.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_225a.tt index 7f9e144d3f..e85312c6a9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_225a.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_225a.tt @@ -8,6 +8,8 @@

Collection

[% collection %]

+ OR new collection: +
@@ -17,11 +19,11 @@ function report() { var doc = opener.document; var field = doc.getElementById("[% index %]"); - field.value = document.f_pop.f1.value; + field.value = document.f_pop.f2.value || document.f_pop.f1.value; window.close(); return false; } //]]> -[% INCLUDE 'popup-bottom.inc' %] \ No newline at end of file +[% INCLUDE 'popup-bottom.inc' %]