File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
indigo_app/static/javascript/indigo Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 62
62
if ( options && options . fromContent ) return ;
63
63
64
64
// rewrite all eIds before setting the content
65
- new indigoAkn . EidRewriter ( ) . rewriteAllEids ( this . xmlDocument . documentElement ) ;
65
+ // in provision mode, retain the eId of the parent element as the prefix
66
+ let eidPrefix ;
67
+ if ( Indigo . Preloads . provisionEid && Indigo . Preloads . provisionEid . lastIndexOf ( '__' ) > - 1 ) {
68
+ eidPrefix = Indigo . Preloads . provisionEid . substring ( 0 , Indigo . Preloads . provisionEid . lastIndexOf ( '__' ) ) ;
69
+ }
70
+ new indigoAkn . EidRewriter ( ) . rewriteAllEids ( this . xmlDocument . documentElement , eidPrefix ) ;
66
71
// rewrite all attachment FRBR URI work components too
67
72
new indigoAkn . WorkComponentRewriter ( ) . rewriteAllAttachmentWorkComponents ( this . xmlDocument . documentElement ) ;
68
73
this . set ( 'content' , this . toXml ( ) , { fromXmlDocument : true } ) ;
You can’t perform that action at this time.
0 commit comments