From: Lebbeous Fogle-Weekley Date: Tue, 12 Nov 2013 22:51:57 +0000 (-0500) Subject: Physical Characteristics Wizard for the MARC Editor X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7bf7fee920312c06eca9fd099c40002b66bd0e25;p=working%2FEvergreen.git Physical Characteristics Wizard for the MARC Editor Right-click in an 007 field to find a new entry in the context menu that launches this wizard. The prompts and suggested values come from data already found in the database. Signed-off-by: Lebbeous Fogle-Weekley --- diff --git a/Open-ILS/web/js/dojo/openils/widget/PhysCharWizard.js b/Open-ILS/web/js/dojo/openils/widget/PhysCharWizard.js new file mode 100644 index 0000000000..3de2015ceb --- /dev/null +++ b/Open-ILS/web/js/dojo/openils/widget/PhysCharWizard.js @@ -0,0 +1,538 @@ +if (!dojo._hasResource["openils.widget.PhysCharWizard"]) { + dojo._hasResource["openils.widget.PhysCharWizard"] = true; + + dojo.provide("openils.widget.PhysCharWizard"); + dojo.require("dojo.string"); + dojo.require("openils.User"); + dojo.require("openils.Util"); + dojo.require("openils.PermaCrud"); + dojo.requireLocalization("openils.widget", "PhysCharWizard"); + + (function() { /* Namespace protection so we can still make little helpers + within our own bubble */ + + var _xhtml_ns = "http://www.w3.org/1999/xhtml"; + var _dump = dump ? + function(s) { dump(s + "\n"); } : ( + console && console.log ? + function(s) { console.log(s) } : alert + ); + + function _show_button(n, yes) { /* yet another hide/reveal thing */ + /* This is a re-invented wheel, but I was having trouble + * getting my