I have made some fixes to the Z3950 download code so that it can now
work with the XML returned from Library of Congress. I don't know that
the XML that's returned represents a MARC record though, maybe we need
to parse its contents and construct a MARC file out of it still.
If you merely wanted to try out the Z3950 downloading process however,
you can do so as follows:
1. Move your Greenstone installation's
perllib/downloaders/Z3950Download.pm file out of the way. Or you can
rename the extension to anything that isn't *.pm
2. Download the updated version of the file at
and save it into the same location as Step 1.
3. Now if were to try out the z3950 download from GLI's download pane
again and point it to the LoC URL as before, I think it will get data back.
Barbara King wrote:
> Yes, I already contacted Larry and got the correct information to
> input in GS3, but no go. I believe I need to be on the GLI web server,
> which I am not connected to.
> Thanks again.
> On 08/09/11, *Greenstone Team * <firstname.lastname@example.org> wrote:
>> Hi Barbara,
>> I think the max records field in the Z3950 Download panel of your
>> snapshot looks correct, but I believe the other fields you filled in
>> are not. There are specific values for host, port and database that
>> one needs to fill in for each Z3950 server. Since I didn't know what
>> these are for your question either, in the case of the Library of
>> Congress, I resorted to searching for Google on the words: library of
>> congress z39.50 port
>> Which led to this helpful link: http://www.loc.gov/z3950/lcserver.html
>> Since it seems you want to download MARC records, I used the
>> information in the above link to fill in the Z3950 Download fields as
>> Host: http://lx2.loc.gov
>> Port: 210
>> Database: LCDB_MARC8
>> Find: digital library technologies
>> Max Records: 2
>> Unfortunately, while the above information is correct, the Library of
>> Congress is now returning information in XML format, which the
>> Greenstone code that retrieves data using the Z3950 protocol did not
>> anticipate. It is therefore broken at present and will not work,
>> despite correctly filling in the fields as above. I am in the process
>> of (hopefully) fixing it.
>> Thanks for bringing this bug to our attention.
>> > I clicked before attaching 'snapshot'. Could you send me a snapshot
>> of your suggestion please?
>> Your snapshot shows that the maxdocs field has the right value (2)
>> for testing. Are the other settings perhaps what's causing the
>> trouble downloading? Have you confirmed that the Z3950 port of the
>> LoC is indeed called "marc"? Have you tried other Z3950 clients and
>> were they able to download from LoC using the details you filled in
>> into Greenstone's Download pane?
>> Barbara King wrote:
>> >I clicked before attaching 'snapshot'. Could you send me a snapshot
>> of your suggestion please?
>> >That would really help.
>> >On 08/03/11, *Greenstone Team * <email@example.com>
>> >>Hi Barbara,
>> >>While I don't have any experience in this, I would try the
>> following out, to see if it accomplishes what you want:
>> >>In GLI's Download pane, use Z39.50 as the Download Setting and
>> point its download location to Library of Congress by filling in the
>> fields for Host, Port and Database. Then tick the Max Records field,
>> setting it to something low such as 2. If that worked well enough and
>> you feel ready to take the leap to 100, try it again with a max
>> records size of 100.
>> >>Barbara King wrote:
>> >>>Hi once again Anupama,
>> >>>Your response below gave me courage not to abandon GS3 and to
>> continue building a DL for my project.
>> >>>Question: Is it possible to download 100 bibliographic records
>> from the Library of Congress (LOC) catalogue/Z39.50? If so, I would
>> appreciate it if you could inform me what steps I need to do in order
>> to accomplish this task please.
>> >>>Thanks in advance for any support you can provide.