Lines 156-162
define( [ '/cgi-bin/koha/svc/cataloguing/framework?frameworkcode=&callback=defin
Link Here
|
156 |
record.addFieldGrouped( newField ); |
156 |
record.addFieldGrouped( newField ); |
157 |
|
157 |
|
158 |
if ( tagnum < '010' ) { |
158 |
if ( tagnum < '010' ) { |
159 |
newField.addSubfield( [ '@', '' ] ); |
159 |
newField.addSubfield( [ '@', (taginfo.subfields[0] ? taginfo.subfields[0][1].defaultvalue : null ) || '' ] ); |
160 |
return; |
160 |
return; |
161 |
} |
161 |
} |
162 |
} |
162 |
} |
Lines 167-173
define( [ '/cgi-bin/koha/svc/cataloguing/framework?frameworkcode=&callback=defin
Link Here
|
167 |
if ( subfieldinfo.mandatory != "1" && !allTags ) return; |
167 |
if ( subfieldinfo.mandatory != "1" && !allTags ) return; |
168 |
|
168 |
|
169 |
$.each( fields, function( undef, field ) { |
169 |
$.each( fields, function( undef, field ) { |
170 |
if ( !field.hasSubfield(subfieldcode) ) field.addSubfieldGrouped( [ subfieldcode, '' ] ); |
170 |
if ( !field.hasSubfield(subfieldcode) ) field.addSubfieldGrouped( [ subfieldcode, subfieldinfo.defaultvalue || '' ] ); |
171 |
} ); |
171 |
} ); |
172 |
} ); |
172 |
} ); |
173 |
} ); |
173 |
} ); |