¸¶Å©MARC´Â ±â°è°¡ ÀÐÀ» ¼öÀÖ´Â Ä«Å»·Î±× ±â·ÏÀ» Á¶ÀÛÇÏ´Â PERL È®ÀåÀÔ´Ï´Ù. | |
Áö±Ý ´Ù¿î·Îµå |
¸¶Å© ¼øÀ§ ¹× ¿ä¾à
±¤°í
- ƯÇã:
- Perl Artistic License
- °¡°Ý:
- FREE
- °Ô½ÃÀÚ À̸§:
- MARC Development team
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~bbirth/MARC-1.07/MARC.pm
¸¶Å© ű×
¸¶Å© ¼³¸í
MARC´Â ±â°è°¡ ÀÐÀ» ¼öÀÖ´Â ±â·ÏÀ» Á¶ÀÛÇÏ´Â PERL È®ÀåÀÔ´Ï´Ù. MARC´Â ±â°è°¡ ÀÐÀ» ¼öÀÖ´Â Ä«Å»·Î±× ¸µ ·¹Äڵ带 Á¶ÀÛÇÏ´Â Perl È®ÀåÀÚÀÔ´Ï´Ù. Synopsis »ç¿ë Marc; # constructors $ x = marc-> new (); $ x = marc-> new ( "filename", "fileformat"); $ x -> openmarc ({file => "makrbrkr.mrc", 'Çü½Ä'=> "marcmaker", Áõ°¡ => "5", lineterm => "n", charset => % char_hash}); $ record_num = $ x -> createRecord ({lister => "00000nmm 2200000 A 4500"}); # ÀÔ·Â / Ãâ·Â ÀÛ¾÷ $ y = $ x -> nextmarc (10); # Áõ°¡ $ x> closemarc (); $ x> marc_count () Àμâ; $ x -> deleteMARC ({record => '2', field => '110'}); $ y = $ x -> selectmarc (; # ¹®ÀÚ ¹ø¿ª My % Inc = % {$ x -> usmarc_default ()}; # MARCMAKER ÀÔ·Â CHARSET MY % OUTC = % {$ X-> USTEXT_DEFAULT ()}; # MarcBreaker Ãâ·Â Charset # µ¥ÀÌÅÍ Äõ¸® @Records = $ x -> searchmarc ({field => "245"}); @records = $ x -> searchmarc ({field => "260", subfield => "c", regex => "/ 19 ../"}); @records = $ x -> searchmarc ({field => "245", notregex => "/ huckleberry / i"}); @Results = $ x -> getValue ({record => 12 ', field =>'856 ', subfield =>'u '}); # Çì´õ ¹× Á¦¾î Çʵå ÀÛ¾÷ $ rldr = $ x> unpack_ldr ($ ·¹ÄÚµå); Àμâ "DESC´Â $ RLDR -> {DESC}"; ´ÙÀ½ ($ x -> bib_format ($ ·¹ÄÚµå) EQ 'SERIALS'); $ rff = $ x -> unpack_008 ($ ·¹ÄÚµå); ¸¶Áö¸· ($ rff -> { 'date1'} = ~ / 00 / ¶Ç´Â $ rff -> { 'date2'} = ~ / 00 /); # µ¥ÀÌÅÍ ¼öÁ¤ $ x-> addField ({record => "2", field => ""245 ", i1 =>" "1", i2 => "4", ÁÖ¹® => 'y', value => ]}); MY $ Update245 = {field => '245', record => 2, ordered => 'y'}; my @ u245 = $ x -> getUpdate ($ update245); $ x -> deleteMARC ($ update245); $ x -> AddField ($ update245, @ u245_modified); # $ y = $ x -> Ãâ·Â ({ 'Çü½Ä'=> "marcmaker", charset => % OUTC}); $ X-> Ãâ·Â ({file => ">> my_text.txt", 'format'=> "ascii", record => 2}); $ x -> Ãâ·Â ({file => "> my_marcmaker.mkr", 'Çü½Ä'=> "marcmaker", nolinebreak => 'y', lineterm => 'n'}); $ x -> Ãâ·Â ({file => "> titles.html", 'Çü½Ä'=> "html", 245 => "title :"}); # °³º° ¸¶Å© ·¹ÄÚµåÀÇ Á¶ÀÛ. @recs = $ x ; grep {$ _> unpack_ldr () 0} @Recs; @lcs = grep {$ _-> UNP_LDR {desc} EQ 'a'$ _-> getValue ({field => '040'}) = ~ / dlcc_.dlc /} @Recs; foreach my $ rec (@lcs) {$ rec-> Ãâ·Â ({format => 'usmarc'}); } # ¹®ÀÚ¿·Î Á¶ÀÛ. foreach my $ rec (@lcs) {my $ stringvar = $ rec-> as_string (); $ stringvar = ~ s xm; # x´Â '¹«½Ã °ø¹éÀ» ¹«½ÃÇÏ°í # ÀÓº£µðµå ÁÖ¼®À» Çã¿ëÇÕ´Ï´Ù. $ rec-> from_string ($ stringvar); My ($ i2, $ Article) = $ stringvar = ~ / 245. (.) c _. (. {0,9}) /; $ Article = substr ($ 8, 0, $ i2) $ i2 = ~ / d /; $ common_arts {$ article}; } MARC.PMÀº USMARC Çü½ÄÀÇ ¼Áö ·¹Äڵ带 Àаí Á¶ÀÛÇÏ°í Ãâ·ÂÇÏ´Â PERL 5 ¸ðµâÀÔ´Ï´Ù. marc.pmÀÌ Á¦´ë·Î ÀÛµ¿ÇÏ·Á¸é Perl 5.004 ÀÌ»óÀÌ ÇÊ¿äÇÕ´Ï´Ù. Perl ¸ðµâÀ̹ǷΠÀÚ½ÅÀÇ Perl ½ºÅ©¸³Æ® Áß Çϳª¿¡¼ marc.pmÀ» »ç¿ëÇÕ´Ï´Ù. ¾î¶² Á¾·ùÀÇ º¯È¯ÀÌ °¡´ÉÇÑÁö È®ÀÎÇÏ·Á¸é marc.pm¿¡ ´ëÇÑ À¥ ÀÎÅÍÆäÀ̽º¸¦ ½Ãµµ ÇÒ ¼ö ÀÖÀ¸¹Ç·Î Marc ÆÄÀÏÀ» ¾÷·ÎµåÇÏ°í °á°ú¸¦ °Ë»ö ÇÒ ¼ö ÀÖ½À´Ï´Ù (ÀÚ¼¼ÇÑ ³»¿ëÀº "À¥ ÀÎÅÍÆäÀ̽º"¾Æ·¡ÀÇ ¼½¼Ç ÂüÁ¶). ±×·¯³ª, Àüü ±â´É ¼¹ö ¶Ç´Â PC¿¡ marc.pmÀ» ¼³Ä¡ÇÏ·Á´Â °æ¿ì°¡ ÀÖ½À´Ï´Ù. MARC.PMÀº MARC ·¹ÄÚµåÀÇ ´ÜÀÏ ¹× ¹èÄ¡¸¦ ¸ðµÎ ó¸® ÇÒ ¼ö ÀÖ½À´Ï´Ù. ¹èÄ¡ÀÇ ·¹ÄÚµå ¼öÀÇ ÇÑ°è´Â ½ÇÇàÁßÀÎ ±â±âÀÇ ¸Þ¸ð¸® ¿ë·®¿¡ ÀÇÇØ °áÁ¤µË´Ï´Ù. MEMOR.PM¿¡ ´ëÇÑ ¸Þ¸ð¸®°¡ ¹®Á¦ ÀÎ °æ¿ì ¹èÄ¡¿¡¼ Á¡Â÷ÀûÀ¸·Î ·¹Äڵ带 ÀÐÀ» ¼ö ÀÖ½À´Ï´Ù. MARC.PM¿¡´Â ½ºÅ©·¡Ä¡·ÎºÎÅÍ ·¹Äڵ带 °Ë»ö, Á¦°Å ¹× Á¶¼ºÇϱâÀ§ÇÑ ´Ù¾çÇÑ µµ±¸°¡ Æ÷ÇԵǾî ÀÖ½À´Ï´Ù. ¿ä±¸ »çÇ× : ¡¤ Perl.
¸¶Å© °ü·Ã ¼ÒÇÁÆ®¿þ¾î
¿Ü°èÀÎ Perl ¸ðµâ
¿Ü°èÀÎ Perl ¸ðµâ ÆÐÅ°Áö¿¡´Â º¼ ¼öÀÖ´Â Äè¶ôÀ» À§ÇØ °¨½Î ÀÎ ¿ÜºÎ ¶óÀ̺귯¸®°¡ Æ÷ÇԵǾî ÀÖ½À´Ï´Ù! ...
148