Added hyperlink to LOC for LCCN
authorSebastian Hammer <quinn@indexdata.com>
Thu, 18 Jan 2007 19:32:06 +0000 (19:32 +0000)
committerSebastian Hammer <quinn@indexdata.com>
Thu, 18 Jan 2007 19:32:06 +0000 (19:32 +0000)
etc/edu.pz
etc/marc21.xsl
www/demo/search.js

index 3ecb9b1..08f14e6 100644 (file)
@@ -1,43 +1,43 @@
-target acorn.library.vanderbilt.edu:2200/ACORN
-target advance.biblio.polymtl.ca:210/ADVANCE
-target albert.rit.edu:210/INNOPAC
-target aleph.mcgill.ca:210/MUSE
-target atrium.bib.umontreal.ca:210/ADVANCE
-target biblio.hec.ca:210/hec
-target bobcat.nyu.edu:210/ADVANCE
-target books.luther.edu:210/innopac
-target cat.cisti.nrc.ca:210/INNOPAC
-target cat.lib.grin.edu:210/innopac
-target catalog.crl.edu:210/INNOPAC
-target catalog.lib.jhu.edu:210/horizon
-target clavis.ucalgary.ca:2200/UNICORN
-target cornelia.whoi.edu:7090/VOYAGER
-target csulib.ctstateu.edu:210/INNOPAC
-target info.library.mun.ca:2200/UNICORN
-target jasper.acadiau.ca:2200/UNICORN
-target ksclib.keene.edu:210/INNOPAC
-target l1.uwaterloo.ca:7090/VOYAGER
-target lance.missouri.edu:210/INNOPAC
-target library.daemen.edu:210/innopac
-target library.lbc.edu:7090/voyager
-target library.uh.edu:210/INNOPAC
-target lion.swem.wm.edu:2200/unicorn
-target lrpapp.cc.umanitoba.ca:2200/unicorn
-target malad2.mala.bc.ca:2200/UNICORN
-target mercury.concordia.ca:210/Innopac
-target merlinweb.ville.montreal.qc.ca:2100/Z3950S
-target ncsulib.lib.ncsu.edu:210/MARION
-target opac.utmem.edu:210/INNOPAC
-target prodorbis.library.yale.edu:7090/voyager
-target quest.unb.ca:2200/unicorn
-target rs6000.nshpl.library.ns.ca:210/AVR
-target sabio.library.arizona.edu:210/innopac
-target scotty.mhsl.uab.edu:7090/VOYAGER
-target sirsi.library.utoronto.ca:2200/UNICORN
-target sundog.usask.ca:210/INNOPAC
-target titus.folger.edu:7090/VOYAGER
-target troy.lib.sfu.ca:210/INNOPAC
-target voyager.tcs.tulane.edu:7090/VOYAGER
-target yulib001.mc.yu.edu:1111/DEFAULT
-target z3950.fcla.edu:210/CF
-target z3950.library.wisc.edu:210/madison
+target acorn.library.vanderbilt.edu:2200/ACORN;Vanderbilt U
+target advance.biblio.polymtl.ca:210/ADVANCE;Ecole Polytechnique Montreal
+target albert.rit.edu:210/INNOPAC;Rochester U of Tech
+target aleph.mcgill.ca:210/MUSE;McGill U
+target atrium.bib.umontreal.ca:210/ADVANCE;U of Montreal
+target biblio.hec.ca:210/hec;HEC Montreal
+target bobcat.nyu.edu:210/ADVANCE;New York University
+target books.luther.edu:210/innopac;Luther College
+target cat.cisti.nrc.ca:210/INNOPAC;NRC Canada
+target cat.lib.grin.edu:210/innopac;Grinell College
+target catalog.crl.edu:210/INNOPAC;Center for Research Lib
+target catalog.lib.jhu.edu:210/horizon;Johns Hopkins U
+target clavis.ucalgary.ca:2200/UNICORN;U of Calgary
+target cornelia.whoi.edu:7090/VOYAGER;Woods Hole OI
+target csulib.ctstateu.edu:210/INNOPAC;CT State U
+target info.library.mun.ca:2200/UNICORN;Memorial U
+target jasper.acadiau.ca:2200/UNICORN;Acadia U
+target ksclib.keene.edu:210/INNOPAC;NH Keene State
+target l1.uwaterloo.ca:7090/VOYAGER;U of Waterloo
+target lance.missouri.edu:210/INNOPAC;U of Missouri
+target library.daemen.edu:210/innopac;Daemen C
+target library.lbc.edu:7090/voyager;Lancaster Bible C
+target library.uh.edu:210/INNOPAC;U of Houston
+target lion.swem.wm.edu:2200/unicorn;C of William and Mary
+target lrpapp.cc.umanitoba.ca:2200/unicorn;U of Manitoba
+target malad2.mala.bc.ca:2200/UNICORN;Malaspina U
+target mercury.concordia.ca:210/Innopac;Concordia U
+target merlinweb.ville.montreal.qc.ca:2100/Z3950S;U of Montreal
+target ncsulib.lib.ncsu.edu:210/MARION;North Carolina SU
+target opac.utmem.edu:210/INNOPAC;U of Tennessee
+target prodorbis.library.yale.edu:7090/voyager;Yale U
+target quest.unb.ca:2200/unicorn;U of New Brunswick
+target rs6000.nshpl.library.ns.ca:210/AVR;National Library Canada
+target sabio.library.arizona.edu:210/innopac;U of Arizona
+target scotty.mhsl.uab.edu:7090/VOYAGER;U of Alabama
+target sirsi.library.utoronto.ca:2200/UNICORN;U of Toronto
+target sundog.usask.ca:210/INNOPAC;U of Saskatchewan
+target titus.folger.edu:7090/VOYAGER;Folger Shakespeare
+target troy.lib.sfu.ca:210/INNOPAC;Simon Fraser U
+target voyager.tcs.tulane.edu:7090/VOYAGER;Tulane U
+target yulib001.mc.yu.edu:1111/DEFAULT;Yeshiva U
+target z3950.fcla.edu:210/CF;Florida CLA
+target z3950.library.wisc.edu:210/madison;U of Wisconsin
index 047200b..6ab86d8 100644 (file)
         <xsl:value-of select="marc:controlfield[@tag='001']"/>
       </pz:metadata>
 
+      <xsl:for-each select="marc:datafield[@tag='010']">
+        <pz:metadata type="lccn">
+         <xsl:value-of select="marc:subfield[@code='a']"/>
+       </pz:metadata>
+      </xsl:for-each>
+
       <pz:metadata type="title">
        <xsl:value-of select="marc:datafield[@tag='245']/marc:subfield[@code='a']"/>
        <xsl:text> </xsl:text>
index b7b280b..4eb2d46 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: search.js,v 1.42 2007-01-18 18:11:19 quinn Exp $
+/* $Id: search.js,v 1.43 2007-01-18 19:32:06 quinn Exp $
  * ---------------------------------------------------
  * Javascript container
  */
@@ -228,6 +228,8 @@ function displayname(name)
        return '@';
     else if (name == 'md-id')
        return 'Local ID';
+    else if (name == 'md-lccn')
+       return 'LCCN';
     else if (name == 'recid')
        return '@';
     else if (name == 'location')
@@ -314,6 +316,16 @@ function paint_data_elements(target, node)
                nv.onclick = function() { hyperlink_search(this); return false; };
            }
        }
+       else if (name == 'md-lccn')
+       {
+           nv = document.createElement('span');
+           nv.appendChild(document.createTextNode(value + ' '));
+           var link = create_element('a', 'Show title in LoC');
+               link.setAttribute('target', '_blank');
+               link.setAttribute('href', 'http://catalog.loc.gov/cgi-bin/Pwebrecon.cgi?DB=local&CNT=10&CMD=10+records+per+page&CMD=lccn+' + value);
+           nv.appendChild(link);
+
+       }
        else
            nv = document.createTextNode(value);
        dn.appendChild(nv);