/[webpac2]/trunk/conf/normalize/mapping.pl
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/conf/normalize/mapping.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 562 by dpavlin, Sun Jul 2 16:14:41 2006 UTC revision 575 by dpavlin, Mon Jul 3 22:00:39 2006 UTC
# Line 1  Line 1 
1    # Leader
2    
3    if ( rec('999') && first(rec('999')) =~ m/pregledan/i) {
4            marc_leader('05','c');
5    } else {
6            marc_leader('05','n');
7    }
8    
9    marc_leader('06','a');
10    
11    marc_leader('07','m');
12    
13    marc_leader('18','i');
14    
15    if ( rec('230') ) {
16            marc_leader('19','r');
17    }
18    
19    
20    
21    # greška! - 000 se ne zapisuje u marc:
22    
23  marc('001',  marc('001',
24          rec('000')          rec('000')
25  );  );
# Line 39  marc('250','a', Line 61  marc('250','a',
61          rec('205','a')          rec('205','a')
62  );  );
63    
 _debug( 2 );  
 warn "210a: ",dump( first(rec('210','a' )) );  
   
64  marc_compose('260',  marc_compose('260',
65          'a', split_rec_on('210','a', qr/\s*;\s*/, 1),          'a', split_rec_on('210','a', qr/\s*;\s*/, 1),
66          'b', first(rec('210','c')),          'b', first(rec('210','c')),
# Line 49  marc_compose('260', Line 68  marc_compose('260',
68          'c', first(rec('210','d')),          'c', first(rec('210','d')),
69  );  );
70    
   
 _debug( 0 );  
   
71  marc('300','a',  marc('300','a',
72          rec('215','a')          rec('215','a')
73  );  );
# Line 84  marc('490','a', Line 100  marc('490','a',
100  );  );
101    
102  marc('490','v',  marc('490','v',
103          rec('225','v')          join_with(', ',
104                    rec('225','v'),
105                    rec('225','w')
106            )
107  );  );
108    
109  marc('500','a',  marc('500','a',
# Line 174  marc('111','a', Line 193  marc('111','a',
193          rec('710','a')          rec('710','a')
194  );  );
195    
196    marc('111','c',
197            rec('710','e')
198    );
199    
200    marc('111','d',
201            rec('710','f')
202    );
203    
204  marc('111','e',  marc('111','e',
205          rec('710','b')          rec('710','b')
206  );  );
# Line 182  marc('111','n', Line 209  marc('111','n',
209          rec('710','d')          rec('710','d')
210  );  );
211    
 marc('111','c',  
         rec('710','e')  
 );  
   
 marc('111','d',  
         rec('710','f')  
 );  
212    
213  } else {  } else {
214                    
# Line 207  marc('110','c', Line 227  marc('110','c',
227    
228  if ( rec('230') ) {  if ( rec('230') ) {
229    
230    marc_duplicate();
231    
232  marc('245','a',  marc('245','a',
233          rec('230','a')          rec('230','a')
234  );  );
# Line 224  marc('245','n', Line 246  marc('245','n',
246  );  );
247    
248  }  }
   
   
   
   
   
   
   
   

Legend:
Removed from v.562  
changed lines
  Added in v.575

  ViewVC Help
Powered by ViewVC 1.1.26