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 <julian.maurice@biblibre.com>
Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit a7dd94769f)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
This commit is contained in:
Frédéric Demians 2011-04-08 19:49:33 +02:00 committed by Chris Nighswonger
parent 02d879bd7f
commit 086b459656
1 changed files with 4 additions and 2 deletions

View File

@ -8,6 +8,8 @@
<form name="f_pop" onsubmit="report()" action="">
<h2 class="authority">Collection</h2>
<p><label>Select a collection</label>[% collection %]</p>
OR new collection: <input type="text" value="" name="f2"/>
<br/>
<input type="submit" value="OK" class="button authority" />
</form>
</div>
@ -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;
}
//]]>
</script>
[% INCLUDE 'popup-bottom.inc' %]
[% INCLUDE 'popup-bottom.inc' %]