IRC log for #koha, 2007-06-12

← Previous day | Today | Next day → | Search | Index

All times shown according to UTC.

Time Nick Message
16:42 kados toins: are you around?
17:15 toins: I have the error Premature end of data in tag subfield line 63
17:15 toins: I think it's related to the long record problem, is there a solution to that coming?
19:21 foxnorth kados: are you around?
19:21 slef last active at 18:13
19:23 kados hi foxnorth
19:23 foxnorth: just trying to commit something now
19:24 foxnorth: fix another console error I was having
19:24 foxnorth: nice to see you on chat :-)
19:24 foxnorth no prob-- glad to be hear
19:26 kados foxnorth: still no luck on the keystroke
19:27 foxnorth wierd-- it sounded from the xul tutorial that the accel attribute would fix it. :(
19:27 I'm not sure what else to try on that one.  It shouldn't be so hard!
19:27 kados yea!
19:27 isn't that what XUL is all about? :-)
19:28 foxnorth yeah....I remember when i set that hotkey up, i had little trouble getting it to work at first.  I'm just trying to remember what in the end fixed it for me....
19:30 kados foxnorth: do you get an error with blank pages 'struct is not defined'?
19:30 foxnorth kados: do you have a good source for test marc records of various formats? I'm trying some z3950 servers from http://targettest.indexdata.com/ but i'm getting errors using yaz-client...
19:31 kados I dunno about various formats
19:31 LOC is good for marc21
19:31 foxnorth by blank pages do you mean empty records?
19:31 kados foxnorth: yea
19:31 foxnorth sorry, i meant books, sound recordings, visuals etc.- for testing the fixed field editor
19:31 kados just wondering if there should be a default value for struct
19:31 ahh, right
19:31 probably OCLC would be best ;-)
19:32 foxnorth it would, but doesn't one have to pay to get z3950 access to oclc??  otherwise that would be perfect!
19:32 kados 66.213.78.76:9999/NPLKoha
19:32 that's the Nelsonville Public Library
19:33 fairly good records there, though the leaders aren't very good
19:33 foxnorth thanks i'll give that a try
19:33 kados hmmm, probably LOC is the best bet
19:33 foxnorth yeah, loc is great too, trouble is for some reason i can search loc w/ yaz-client but not with opencataloger, and i haven't gone back to troubleshoot it.  strange cos the default in opencataloger.xml (z3950.bnf.fr:2211/TOUT) works ok.
19:34 kados should we have a default value for 'struct' or wrap all those objects in an if {} ?
19:34 weird
19:35 IIRC LOC requires a specific identifier
19:35 recordtype= 'f' or sth
19:35 lemme dig that up
19:35 foxnorth great thanks
19:36 kados    $o->option(elementSetName => "F"); # F for 'full' as opposed to B for 'brief'
19:36 already there :(
19:36 hmmm
19:36 you getting a specific error?
19:36 maybe LOC doesn't grok ccl
19:36 foxnorth hang on lemme check- i think it just hangs on "searching"
19:36 kados I bet that's it
19:36 hmmm, nm, zoom will convert it to pqf
19:36 hmmm
19:37 foxnorth yeah i thought so--
19:40 kados foxnorth: so does opencataloger save files to your local desktop correctly?
19:40 jaron foxnorth: does that target z3950.bnf.fr:2211/TOUT require authentication? LOC doesn't, maybe the problem's somewhere there?
19:40 foxnorth i tried it once using zebrasrv on localhost, but i don't think it actually worked.  Lemme see if i can give that a go.
19:41 yes, i believe z3950.bnf.fr does.  in my opencataloger.xml config file I set the user and pw to "" (and didn't set anything in yaz-client).  
19:42 kados foxnorth: no, I mean saving with save.pl, as a file
19:43 foxnorth i think save.pl is actually saving to a generic z3950
19:43 kados huh
19:43 foxnorth but i don't know what state that code is in
19:43 kados looks like login/pass is being stored in a cgi object ... yuk
19:43 foxnorth ultimately taken from xml request to GET opencataloger.xml
19:44 kados yea
19:44 that's really poor security-wise
19:44 foxnorth lemme see if at least it's willing to do an update
19:48 ok using save.pl and trying to save to localhost:9999 (zebra) i'm getting a js errror: Warning: reference to undefined property window.marcEncode
19:48 Source File: http://localhost:8888/htdocs/scripts/save.js
19:48 Line: 76
19:49 kados what we really need
19:49 is a 'save to local PC' option
19:49 well ...
19:49 I can't really get it to save anywhere really
19:49 jaron kados: is opencataloger using zoom extended services?
19:49 kados jaron: yea
19:50 jaron: it's still in early development stages
19:50 jaron: pre-alpha :-)
19:50 jaron kados: I see. but that'll be cool.
19:50 kados yea, it's getting there
19:51 jaron I poked it some. I'll have to take a look at the code sometime.
19:51 foxnorth me either.  I was thinking we should have a save option to download recs in marc or marcxml
19:51 kados foxnorth++ definitely
19:51 or dublin core, or MODS
19:51 jaron I'll second that one.
19:51 kados I've got code to do XSLT transformations on that stuff already
19:52 but first I think getting it working is key :-)
19:52 slef boo - make it complicated, then make it work... erm :-S
19:52 kados hehe
19:53 slef http://dmoz.org/profiles/slef.html but I've not announced it much yet.
19:54 kados slef: http://dmoz.org/profiles/kados.html ;-)
19:55 yours has a fancy pic
19:57 *shrug*
19:57 foxnorth: so you don't get 'struct has no properties' error when clicking on a blank record?
19:58 slef kados: cool.
19:58 foxnorth kados: no, i don't. Sounds like opencat is having initialization probs. Does it report "Structure Downloaded" in the notify area when you first open main.xul?
19:58 kados foxnorth: yes
19:59 foxnorth hhm...
20:00 kados maybe more FF on OSX probs
20:00 foxnorth kados: and this is when clicking on the blank record that comes up in the "Edit" tab?
20:00 kados foxnorth: yep
20:01 Error: struct has no properties
20:01 Source File: http://opencat.liblime.com/htdocs/scripts/help.js
20:01 foxnorth kados: how about running dir(struct) in firebug (after initialization)
20:01 kados Line: 233
20:01 no extensions
20:01 slef kados: have you edited recently? You're not listed as an editor on its page.
20:01 kados slef: I haven't
20:01 foxnorth ah right!  whoops
20:01 kados slef: been a while
20:01 slef: one of those things you have to have time for
20:02 <-- no time whatsoever :/
20:02 slef it's a good way of tracking news in a field
20:02 kados yea, for sure
20:02 Error: struct has no properties
20:02 Source File: http://opencat.liblime.com/htd[…]cripts/records.js
20:02 Line: 270
20:02 I can wrap those lines in if (struct)
20:03 but ... seems like a better solution would be to find out why struct isn't defined
20:03 where is struct defined btw?
20:03 foxnorth definately
20:04 kados CheckRequest I guess
20:04 foxnorth struct is defined in init.js i believe
20:04 yeah
20:04 kados ok, on page load it's null
20:04 foxnorth and yet opencat reports structure downloaded???
20:04 kados yea
20:05 so that means req.responseXML isn't populated
20:05 for some reason
20:05 foxnorth seems like it shouldn't! :)
20:05 ah the notification value gets set before the struct gets defined as req.responseXML
20:05 kados yea
20:05 probably should go the other way around, eh?
20:06 foxnorth what does your opencataloger.xml file look like?  must not be grabbing the unimarc.xml file
20:06 kados no unimarc
20:06 foxnorth yeah, should be the other way around, with some sort of msg on ajax error
20:06 kados yea, we need better errors ...
20:06 foxnorth for sure
20:06 kados anyway, xml file ...
20:07    <structure value="/cgi-bin/getStructureFromKoha.pl"
20:07 maybe that doesn't work?
20:07 what do you have?
20:07 foxnorth probly not
20:07 kados format="marc21"
20:08 koha="true"
20:08 foxnorth i set mine up like this: <structure value="/cgi-bin/opencatalog​er/getStructureMarc21.pl", but i've got the marc21.xml file in my local copy.  try getStructureUnimarc.pl and unimarc as format?
20:08 kados where's the marc21.xml file?
20:09 foxnorth or i can upload the marc21.xml file-- it's what i was just putting together to add help for marc21 but mainly to define prescribed values in the fixed field editor.  
20:09 i'll upload to my site and you can fetch from there to try
20:09 kados cool, thx
20:09 foxnorth unimarc.xml should be in cgi-bin
20:10 kados I think there's already a marc21.xml somewhere out in the world
20:10 maybe LOC?
20:10 dewey i guess maybe LOC is super slow?
20:11 foxnorth yeah i was wondering if there was a marc21.xml-- googeld a bit and didn't turn one up :(
20:11 kados http://www.loc.gov/standards/marcxml/
20:11 I swear we used to have one
20:11 hmmm
20:11 foxnorth yeah, there's the schema, but opencataloger expects something like this: <fields>
20:11    <field tag="000" repeatable="false" mandatory="true">
20:11        <description>Leader</description>
20:11    </field>
20:12 kados there was one that unimarc.xml was based on, I'm sure of it
20:12 just need to find it
20:12 foxnorth that would be awesome
20:13 here's what i did so far, for the fixed fields: http://takeyourchoice.net/demos/marc21.xml
20:13 kados thx
20:14 404 not found
20:14 hi Irma
20:14 foxnorth oops you need the perl script too, that sends that marc21.xml back to webapp: http://takeyourchoice.net/demo[…]tructureMarc21.pl
20:14 Irma hi Joshua.
20:15 foxnorth 404 for the marc21.xml??  doh
20:15 kados foxnorth: now got both, structure loads, but get the same struct has no properties
20:15 weird
20:15 gonna throw some alerts in
20:16 foxnorth kados: wierd.
20:16 kados: maybe try setting koha="false" in ?
20:16 kados req.responseXML is false
20:16 will do
20:17 same deal
20:17 hmmm
20:17 foxnorth wierd.....what else to try...?
20:18 kados well I guess just backing up
20:18 who calls CheckRequest
20:18 case 4 : CheckRequest(req); break;
20:18 foxnorth getStructure()
20:20 kados alert(req.responseXML);
20:20 still null
20:20 weird
20:20 so how can it be null?
20:20 foxnorth i so wish firebug would work on initialization! :)
20:21 kados is there a Data::Dumper equiv for javascript?
20:21 where I can see the whole object?
20:21 foxnorth brb
20:26 i don't know of anything quite like data::dumper for javascript.  i know there are some javascript loggers out there, but i haven't played with them.  venkman debugger is alright but clunky compare to firebug.  live-http-headers are ok but still, not as much detail as firebug.... :(  
20:27 kados: can you paste in again the area of your opencataloger.xml?
20:27 sorry the structure area
20:30 kados Error: struct has no properties
20:30 Source File: http://opencat.liblime.com/htdocs/scripts/help.js
20:30 Line: 233
20:30 Error: struct has no properties
20:30 Source File: http://opencat.liblime.com/htd[…]cripts/records.js
20:30 Line: 270
20:30 that one?
20:30 ahh, .xml
20:30   <structure value="/cgi-bin/getStructureMarc21.pl"
20:30               format="marc21"
20:30               koha="false"
20:30               encoding="UTF-8"
20:30               charsubfield="&#8225;"
20:30    />
20:31 foxnorth thanks
20:32 you've probly checked this, but getStructureMarc21.pl isn't dying on you for some reason, is it?  like maybe a permissions problem?
20:33 kados foxnorth: http://opencat.liblime.com/cgi[…]tructureMarc21.pl
20:34 looks valid at first glance
20:34 foxnorth ah that link is asking my browser to download instead of executing...
20:34 kados yea, but it downloads a xml file
20:34 foxnorth whereas this one: http://takeyourchoice.net/demo[…]tructureMarc21.pl is correctly printing out the xml
20:34 kados which is expected, right?
20:35 hmmm
20:35 foxnorth see what i mean?
20:35 kados yea
20:35 wait
20:35 hehe
20:35 foxnorth ok
20:35 kados getStructureMarc21.pl for me is just an XML file :-)
20:35 maybe send me the .pl file via email?
20:36 foxnorth what??  
20:36 will do.
20:36 kados that's the prob I bet
20:36 wonder if that's why it won't save too
20:36 foxnorth bet you're right
20:36 well, i tried saving a few minutes back w/o luck.
20:38 kados: email sent
20:38 rch is the mimetype set?
20:39 kados hmmm
20:39 now it's downloading the script :/
20:39 wtf
20:39 foxnorth kados: still no dice?
20:40 you ran it from a shell to test?
20:40 kados instead of executing
20:40 foxnorth as well?
20:40 kados works from from the shell
20:41 foxnorth does getStructureUnimarc.pl work from browser?
20:41 kados nope
20:41 must be muy apache conf
20:41 foxnorth must be a server setup prob, no?
20:41 kados ScriptAlias /cgi-bin/opencataloger "/opencat/opencataloger/cgi-bin/"
20:42 should that just be /cgi-bin?
20:42 foxnorth hhm lemme see
20:43 kados hmmm
20:43 np
20:43 nm even
20:43 http://opencat.liblime.com/cgi[…]tructureMarc21.pl
20:43 wrong path
20:43 ok, so it prints
20:43 (probably bad to have the cgi-bin avaialble from htdocs though!
20:43 foxnorth ah good.  reload?
20:43 kados no
20:44 foxnorth yeah
20:44 kados before I was just using /cgi-bin/ without opencataloger
20:44 foxnorth yeah, bad to have it under htdocs i mean
20:44 kados so it was just downloading
20:44 foxnorth aha.  so on reload does struct finally get defined?
20:44 kados same damn error :(
20:44 foxnorth aaah.   you reloaded right?
20:44 kados yea
20:45 shift-reload
20:45 foxnorth hhm.  restarted apache i presume??
20:45 kados well, turned out that doesn't apply
20:46 cuz we were using the wrong path
20:46 to begin with
20:46 (just /cgi-bin)
20:46 foxnorth hhmm
20:47 kados alert(req.responseXML); still null :/
20:47 foxnorth wierd.
20:47 kados alert(adress) gives /cgi-bin/getStructureMarc21.pl
20:48 so that's right
20:48 foxnorth uh huh.  looks right...
20:48 kados wait
20:48 no it's not
20:48 needs to be /cgi-bin/opencataloger/*
20:48 right?
20:48 foxnorth yeah, now that you mention it!
20:49 kados ok, that did it
20:49 foxnorth i wonder what the default is in opencataloger.xml for the cgi dir...
20:49 kados damn
20:49 user_error--
20:49 ok, now I'll try saving
20:49 foxnorth i remember having a little trouble getting opencat set the first (few) times.  
20:50 ok i'll try as well.
20:51 kados just get processing...
20:51 then an error:
20:51 Error: results has no properties
20:51 Source File: http://opencat.liblime.com/htdocs/scripts/save.js
20:51 Line: 96
20:51 foxnorth i'm getting premature end of script headers from save.pl
20:51 kados (also note, I switched back to getStructureFromKoha.pl and have an error there
20:51 brb
20:52 http://opencat.liblime.com/cgi[…]uctureFromKoha.pl
20:52 hmmm
20:52 XML Parsing Error: undefined entity
20:52 Location: http://opencat.liblime.com/cgi[…]uctureFromKoha.pl
20:52 Line Number 11540, Column 42:
20:53 why is it trying unimarc defs?
20:53 hmmm
20:56 foxnorth kados: i don't know if this is affecting you yet, but i think there's an error in save.js.
20:57 at req.send(), save.js is trying to: marcflavour="+window.marcEncode.  I don't think thsi marcEncode var exists.  I just changed it to marcflavour="+MarcFormat+ ...
20:57 kados I'm still troubleshooting getStructureFromKoha.pl
20:58 ahh, nice one
20:59 trying to figure out why it's pulling out french frameworks
20:59 since I don't have any french frameworks
20:59 :-)
21:00 foxnorth actually, i seem to recall being perplexed by this.  but then i unset the koha params and forgot about it ! :(
21:00 guess i need to get koha set back up here
21:01 kados huh, seems tow ork properly from the command line, no french :-)
21:02 weird
21:02 this makes no sense at all
21:03 foxnorth oh wait.  are you looking at the help pane and seeing french help strings?
21:03 kados no
21:03 http://opencat.liblime.com/cgi[…]uctureFromKoha.pl
21:03 ^^
21:03 but almost
21:04 if it wasn't throwing a xml parsing error, probably I would be
21:04 foxnorth if i'm not mistaken, i think it's pulling that from unimarc.xml.  
21:04 kados but why?
21:05 if I run from the command line it works fine
21:05 foxnorth but i haven't looked at getStructureFromKoha.pl itself yet.
21:06 kados weird
21:06 the source actually looks fine
21:06 ahh
21:06 field 995
21:07 has some french in it
21:07 hmmm
21:07 foxnorth hhhm.  
21:07 kados need to escape the & I guess?
21:07 foxnorth seems like it.
21:07 kados prolly just delete that 995 tag for now
21:10 http://opencat.liblime.com/cgi[…]uctureFromKoha.pl
21:10 yay
21:11 arrrg!
21:11 still get struct is not defined!
21:12 foxnorth strange.  
21:13 kados alert(req.responseText); gives me back what looks like valid XML
21:13 hmmm
21:13 foxnorth interesting
21:14 kados so now req isn't null
21:14 why would struct = req.responseXML not work?
21:14 arrg
21:16 well
21:16 I've gotta eat
21:16 be back later
21:18 foxnorth me too.  i'll probably be back here tomorrow morning.  if not, definately wed....
21:27 rach joshua  - did you reply to jackson ray from the solomons? Wanted help with cataloguing
22:48 kados rach: no, which one was that?
22:49 rach: (hi, by the way)
23:52 thd kados: have you found the French I put in the Koha MARC 21 bibliographic frameworks for field 995? :-)
23:52 kados thd: hehe, yes :-)
23:54 thd kados: field 995 may be more complete in the MARC 21 frameworks than it is in the UNIMARC frameworks. :)
23:57 HTML character entities also work equally well whether the web server is using ISO 8859-1 or UTF-8.
00:06 kados: on the subject of bibliographic frameworks, MARBI update number 7 for MARC 21 has finally made it into the LC documentation with last year's date.
00:07 kados: Therefore, the MARC 21 frameworks are now officially out of date.
00:10 kados: However, the latest changes are the most modest ever http://www.loc.gov/marc/change[…]e_up7.html#biblio .
00:11 kados thd: many changes?
00:11 thd no, very few look at the URL I just posted
00:16 We all really need a place for the machine readable coded form for the name of extraterrestrial body, 034 $z
00:17 MARC has a place for everything, isn't it wonderful?
00:20 The record editor needs a plugin for filling the new 034 $z :)
00:48 kados thd: did you see the pmesg i sent you?
02:31 chris hi rach
02:32 rach hi - Joshua some guy sent you and I a message asking for help with what particular fields - I was just going to direct him to the list
02:32 hi chris
02:33 chris to the list sounds like a good idea to me
03:57 thanks for the forward rach
03:59 rach np

← Previous day | Today | Next day → | Search | Index

koha1