From 3af5453c1107bddf0a285b32dacf62ea1f47716c Mon Sep 17 00:00:00 2001 From: miker Date: Sat, 28 Nov 2009 23:43:37 +0000 Subject: [PATCH] in insertOrderedFields(), append if no tags are greater than the tag of the field being inserted git-svn-id: svn://svn.open-ils.org/ILS/trunk@15038 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/dojo/MARC/Record.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Open-ILS/web/js/dojo/MARC/Record.js b/Open-ILS/web/js/dojo/MARC/Record.js index 58f9060b3c..9a55b887c6 100644 --- a/Open-ILS/web/js/dojo/MARC/Record.js +++ b/Open-ILS/web/js/dojo/MARC/Record.js @@ -70,12 +70,15 @@ if(!dojo._hasResource["MARC.Record"]) { var me = this; for ( var i in arguments ) { var f = arguments[i]; + var done = false; for (var j in this.fields) { if (f.tag > this.fields[j].tag) { this.insertFieldsBefore(this.fields[j], f); + done = true; break; } } + if (!done) this.appendFields(f); } }, -- 2.11.0