From: erickson Date: Fri, 25 Mar 2005 15:51:46 +0000 (+0000) Subject: script to build fieldmapper.js file for using fieldmapper objects in javascript X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=0fe0cec6f59e1c70cd80bc841fe9e1c990042bfe;p=opensrf%2Fbjwebb.git script to build fieldmapper.js file for using fieldmapper objects in javascript git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@249 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/extras/fieldmapper.pl b/src/extras/fieldmapper.pl new file mode 100644 index 0000000..0c0aa1f --- /dev/null +++ b/src/extras/fieldmapper.pl @@ -0,0 +1,53 @@ +#!/usr/bin/perl +use strict; use warnings; + +use Data::Dumper; +use OpenILS::Utils::Fieldmapper; + +my $map = $Fieldmapper::fieldmap; + +print <{$object}->{hint}; + +print <{$object}->{fields}}) { + +my $position = $map->{$object}->{fields}->{$field}->{position}; + +print <