/[webpac2]/trunk/vhost/koha/marc.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

Annotation of /trunk/vhost/koha/marc.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1252 - (hide annotations)
Mon Jul 27 13:40:29 2009 UTC (14 years, 10 months ago) by mglavica
File MIME type: text/plain
File size: 513 byte(s)
example search for Koha database 

1 dpavlin 1239 search( 'author',
2     join_with(' ; ',
3     rec('100','a'),
4     rec('700','a')
5     )
6     );
7     search( 'title',
8     join_with(' ',
9     rec('245','a'),
10     rec('245','b'),
11     rec('245','c'),
12     )
13     );
14     search( 'isbn', rec('020','a') );
15     search( 'impressum',
16     join_with(' ',
17     rec('260','a'),
18     rec('260','b'),
19     rec('260','c'),
20     )
21     );
22 mglavica 1252 if ( my $year = rec('008') ) {
23     search( 'year',
24     substr( $year,7,4 )
25     ) if length($year) > 13;
26     }
27 dpavlin 1239 search( 'keywords',
28     join_with(' ; ',
29     rec('653','a')
30     )
31     );
32     search( 'biblionumber',
33     rec('999','c')
34     );

  ViewVC Help
Powered by ViewVC 1.1.26