Changeset 1366 for fmts/trunk/p


Ignore:
Timestamp:
Feb 22, 2012, 2:44:17 PM (13 years ago)
Author:
George Lilly
Message:

eliminate ZWR

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fmts/trunk/p/C0XF2N.m

    r1365 r1366  
    4141 S @ZFARY@("BLKLOAD")=1 ; this file supports block load
    4242 S @ZFARY@("FMTSSTYLE")="F2N" ; fileman style
    43  S @ZFARY@("REPLYFMT")=""
     43 S @ZFARY@("REPLYFMT")="JSON"
    4444 D USEFARY(ZFARY)
    4545 Q
     
    166166 K ZERR
    167167 D WP^DIE(C0XSFN,ZIEN_",",1,,ZTXT,"ZERR")
    168  I $D(ZERR) D  ;
    169  . ZWR ZERR
     168 I $D(ZERR) D  Q  ;
     169 . W !,"ERROR CREATING WORD PROCESSING FIELD"
     170 . S C0XERR="ERROR CREATING WORD PROCESSING FIELD"
     171 . D ^%ZTER ; error trap
    170172 Q
    171173 ;
     
    267269 . S ZVOC=$P(ZI,"xmlns:",2)
    268270 . I ZVOC'="" S C0XVOC(ZVOC)=$G(@ZDOM@(1,"A",ZI))
    269  W !,"VOCABS:" ZWR C0XVOC
     271 W !,"VOCABS:"
     272 N ZZ S ZZ=""
     273 F  S ZZ=$O(C0XVOC(ZZ)) Q:ZZ=""  W !,ZZ,":",C0CVOC(ZZ)
    270274 ;
    271275 ; -- look for children called rdf:Description. quit if none. not an rdf file
     
    279283 I '$G(C0XTYPE(@ZDOM@(1,"C",ZI))) D  Q  ; not an rdf file
    280284 . W !,"Error. Not an RDF file. Cannot process."
    281  . ;zwr ^TMP("MXMLDOM",$J,*)
     285 . D SHOW(1)
    282286 ;
    283287 ; -- now process the rdf description children
     
    357361SHOW(ZN) ;
    358362 I '$D(C0XJOB) S C0XJOB=$J
    359  ZWR ^TMP("MXMLDOM",C0XJOB,1,ZN,*)
    360  ;ZWR ^TMP("MXMLDOM",16850,1,ZN,*)
     363 N ZD
     364 S ZD=$NA(^TMP("MXMLDOM",C0XJOB,1,ZN))
     365 W ZD,"=",@ZD
     366 F  S ZD=$Q(@ZD) Q:$QS(ZD,4)'=ZN  W !,ZD,"=",@ZD
     367 ;ZWR ^TMP("MXMLDOM",C0XJOB,1,ZN,*)
    361368 Q
    362369 ;
     
    574581 ;
    575582BLKERR ;
    576  W !,"ERROR IN BULK LOAD",! ZWR ZBFDA(ZI)
     583 W !,"ERROR IN BULK LOAD"
     584 S C0XERR="ERROR IN BULK LOAD"
     585 S C0XLOC=ZBFDA(ZI)
     586 D ^%ZTER ; report the error
    577587 B
    578588 Q
Note: See TracChangeset for help on using the changeset viewer.