|
Lines 812-818
define( [ 'marc-record', 'koha-backend', 'preferences', 'text-marc', 'widget' ],
Link Here
|
| 812 |
createFieldOrdered: function( tag ) { |
812 |
createFieldOrdered: function( tag ) { |
| 813 |
var line, contents; |
813 |
var line, contents; |
| 814 |
|
814 |
|
| 815 |
for ( line = 0; (contents = this.cm.getLine(line)); line++ ) { |
815 |
//for ( line = 0; (contents = this.cm.getLine(line)); line++ ) { |
|
|
816 |
for ( line = 0; line <= this.cm.lastLine(); line++ ) { |
| 817 |
contents = this.cm.getLine(line); |
| 816 |
if ( contents && contents.substr(0, 3) > tag ) break; |
818 |
if ( contents && contents.substr(0, 3) > tag ) break; |
| 817 |
} |
819 |
} |
| 818 |
|
820 |
|
| 819 |
- |
|
|