source: WorldVistAEHR/trunk/r/LIBRARY-LBR-LBRS/LBRYSRV1.m@ 1582

Last change on this file since 1582 was 613, checked in by George Lilly, 15 years ago

initial load of WorldVistAEHR

File size: 1.5 KB
Line 
1LBRYSRV1 ;SSI/ALA-LIBRARY SERVER PROGRAM ;[ 04/19/2000 10:46 AM ]
2 ;;2.5;LIBRARY;**8**;Mar 11, 1996
3 ;
4IN ; Put index sources information into transaction file
5 X XMREC I $P(XMRG,U)="$" Q
6 Q:$P(XMRG,U)'="IS"
7 D TRN^LBRYUTL
8 S NL=$P(XMRG,U,2),^LBRY(682.1,LBRYDA,6,NL,0)=$P(XMRG,U,4,6)
9 S TAF=$P(XMRG,U,3),$P(^LBRY(682.1,LBRYDA,1),U,2)=TAF,TIT=$P(XMRG,U,4)
10 G IN
11 ;
12PU ; Put publisher records into transaction file
13 X XMREC I $P(XMRG,U)="$" Q
14 Q:$P(XMRG,U)'="PU"
15 D TRN^LBRYUTL
16 S TAF=$P(XMRG,U,3),TIT=$P(XMRG,U,4),IDA=$P(XMRG,U,5)
17 S $P(^LBRY(682.1,LBRYDA,1),U,2)=TAF,$P(^(1),U,3)=IDA,$P(^LBRY(682.1,LBRYDA,4),U)=TIT
18 G PU
19 ;
20FR ; Put frequencies into transaction file
21 X XMREC I $P(XMRG,U)="$" Q
22 Q:$P(XMRG,U)'="FR"
23 D TRN^LBRYUTL
24 S TAF=$P(XMRG,U,3),IDA=$P(XMRG,U,6)
25 S $P(^LBRY(682.1,LBRYDA,1),U,2)=TAF,$P(^(1),U,3)=IDA
26 S $P(^LBRY(682.1,LBRYDA,2),U)=$P(XMRG,U,4)
27 S $P(^LBRY(682.1,LBRYDA,4),U,4)=$P(XMRG,U,5),TIT=$P(XMRG,U,5)
28 G FR
29 ;
30PR ; Put prediction patterns into transaction file
31 S LEV=""
32PR1 X XMREC I $P(XMRG,U)="$" Q
33 S SEQ=$P(XMRG,U,2)
34 I LEV'=SEQ D TRN^LBRYUTL S LEV=SEQ
35 I $P(XMRG,U)="PP" D
36 . S TAF=$P(XMRG,U,3),$P(^LBRY(682.1,LBRYDA,1),U,2)=TAF
37 . S ^LBRY(682.1,LBRYDA,5)=$P(XMRG,U,5,11)
38 . S TIT=$P(XMRG,U,4),$P(^LBRY(682.1,LBRYDA,4),U,5)=TIT
39 I $P(XMRG,U)="PP2" D
40 . S $P(^LBRY(682.1,LBRYDA,5),U,8)=$P(XMRG,U,3)
41 . S $P(^LBRY(682.1,LBRYDA,4),U,6)=$P(XMRG,U,4)
42 . S TIT=$P(XMRG,U,4)_" "_TIT,$P(^LBRY(682.1,LBRYDA,1),U,3)=$P(XMRG,U,5)
43 I $P(XMRG,U)="PP3" D
44 . S NL=$P(XMRG,U,3),TEX=$P(XMRG,U,4),^LBRY(682.1,LBRYDA,8,NL,0)=TEX
45 G PR1
Note: See TracBrowser for help on using the repository browser.