← Previous day | Today | Next day → | Search | Index
All times shown according to UTC.
Time | Nick | Message |
---|---|---|
11:00 | paul | ;-) |
11:00 | Genji | at least i have an idea whats in it now. |
11:01 | taking an eternity to reach the end. | |
11:01 | paul | mysql restart is a good solution ;-) |
11:01 | Genji | nope. ends almost here. |
11:05 | 3124 | 245a | 6 | 1 | love | L100 | |
11:05 | that 245a should be 650a somewhere, right? | |
11:09 | paul | yep |
11:09 | Genji | select * from marc_word where tagsubfield="650a" |
11:09 | | bibid | tagsubfield | tagorder | subfieldorder | word | sndx_word | | |
11:09 | +-------+-------------+----------+---------------+--------+-----------+ | |
11:09 | | L100 | | 7 | 3 | Love | |
11:09 | | M200 | | 7 | 2 | Magic | |
11:09 | | S400 | | 7 | 1 | Soul | |
11:09 | +-------+-------------+----------+---------------+--------+-----------+ | |
11:09 | paul | no bibid ??? |
11:09 | then, your MARCmodbiblio call is buggy | |
11:09 | Genji | wierdness going on here. doesn't seem to be. |
11:10 | and the tagsubfield is invisible too. | |
11:10 | but the query still works. | |
11:10 | okay, i get a bibid from this: | |
11:10 | select bibid from marc_word where tagsubfield="650a" | |
11:11 | select tagsubfield from marc_word where tagsubfield="650a" gives me 650a in the tagsubfield. | |
11:12 | | bibid | word | | |
11:12 | +-------+--------+ | |
11:12 | |3124 | Love | |
11:12 | | 3124 | Magic | |
11:12 | |3124 | Soul | |
11:12 | +-------+--------+ | |
11:12 | comes from select bibid, word from marc_word where tagsubfield="650a" | |
11:12 | wierd formatting. | |
11:14 | paul | mm... really strane |
11:20 | Genji | interesting.. same kind of formatting is found in bibliosubject. Think subjects entered into savebiblio.pl need trimming.. you know. chopping and taking out of other os's newline characters. |
11:21 | paul | :-( |
11:23 | Genji | Yay! |
11:23 | fixed it totally! | |
11:23 | got a search going even. | |
11:23 | paul | great ! |
11:23 | Genji | im putting in some explainatory notes as to what my code does. |
11:27 | okay, doing some diffing now. | |
11:27 | any graphical based proper diff programs? | |
11:28 | paul | not that I know |
11:28 | Genji | right. my code in my last email to koha-devel wasn't a proper diff? |
11:30 | 72c72 | |
11:30 | < &branches | |
11:30 | --- | |
11:30 | is a valid diff? | |
11:31 | paul | yep |
11:32 | Genji | your email addy, paul? |
11:41 | how are those diffs? | |
11:42 | paul | seems OK |
11:45 | Genji | cool. im going to bed now. im going to do a small update script later, to convert all bibliosubjects to MARCbibliosubjects. |
11:46 | paul | no other patch ? |
11:46 | everything is fixed with those 5 lines ??? | |
11:46 | wow... | |
11:46 | Genji | nope. thats it. |
11:46 | and of course, the savebiblio.pl | |
11:46 | paul | really great ! |
11:46 | which i already have ? | |
11:46 | Genji | sent it to you. |
11:47 | paul | what is missing is the name of the .pl where the diff comes from |
11:47 | but ok, 2nd mail recieved | |
11:47 | and i know that it concern savebiblio.pl | |
11:51 | have a good night anyway | |
11:52 | Genji | so, all good? |
11:52 | paul | seems yes. |
11:52 | 2.2.0RC4 release in a few hours ;-) | |
11:52 | Genji | good. eh.... hold off, so i can put in my update script? |
11:52 | paul | which one ? |
11:53 | Genji | one that does a foreach on the entire subject list, and puts them into marc. |
11:57 | paul | usefull when ? |
11:58 | note : the biblio.pm patch was wrong. | |
11:58 | cuold you confirm this portion of code : | |
11:58 | sub newbiblioitem { | |
11:58 | my ($biblioitem) = @_; | |
11:58 | my $dbh = C4::Context->dbh; | |
11:58 | my $bibitemnum = &OLDnewbiblioitem( $dbh, $biblioitem ); | |
11:58 | my $MARCbiblio = | |
11:58 | MARCkoha2marcBiblio( $dbh, 0, $bibitemnum ) | |
11:58 | ; # the 0 means "do NOT retrieve biblio, only biblioitem, in the MARC record | |
11:58 | my $bibid = | |
11:58 | &MARCfind_MARCbibid_from_oldbiblionumber( $dbh, | |
11:58 | $biblioitem->{biblionumber} ); | |
11:58 | &MARCaddbiblio( $dbh, $MARCbiblio, $biblioitem->{biblionumber}, '',$bibid ); | |
11:58 | return ($bibitemnum); | |
11:58 | } | |
11:58 | ?? | |
11:59 | Genji | whats wrong with it? |
11:59 | paul | patch: **** `>' expected at line 4 of patch |
11:59 | no idea what it means. | |
12:00 | Genji | right. probably means i have to use gnu diff since my windows diff is not standard enough. |
12:03 | okay, gnu diff shows exactly the same as windows diff. | |
12:04 | paul | i think it's because my original Biblio.pm is different from yours |
12:04 | (&branches already removed, for example) | |
12:04 | just check the newbiblioitems that i copy here | |
12:04 | Genji | ah, that would be why. |
12:04 | paul | all the rest is OK i think |
12:05 | Genji | yup. how about sending me your biblio.pm, and i can diff off that? |
12:06 | paul | sent |
12:09 | Genji | just my luck, yahoo's down. send the file to genjimotoezysurf.co.nz please. |
12:09 | paul | sent again |
12:10 | Genji | what addresss did you send it to? |
12:11 | got it i thnk | |
12:20 | sent. take a look. | |
12:26 | kados | hi all |
12:26 | paulBed when you wake up :-) ... I noticed that the latest release of Koha didn't include the z3950 server ... also, I noticed that instead of having seperate index.htmls in koha/koha-html/opac-html and koha/koha-html/intranet-html dirs there is just one in koha-html dir ... was that by design? | |
12:27 | did you see that message paul? :-) | |
12:27 | paul | genji => still no mail |
12:27 | g'morning kados | |
12:27 | yes, & i answered | |
12:27 | kados, i wake up (had a good night) | |
12:27 | [09:44:46] <paul> to answer your question : i delete outdated translations and themes just before releasing (spanish, german, unido,...) | |
12:27 | [09:44:58] <paul> i may have deleted a little bit too generously ;-) | |
12:27 | kados | ahh ... my history doesn't go back that far ... /me checks the logs |
12:27 | ahh :-) | |
12:32 | Genji | got it yet, paul? |
12:32 | paul | still not |
12:33 | Genji | okay... can i msg you the diff? |
12:35 | paul | if you want, but 6-8 lines at a time |
12:35 | otherwise, you'll be kicked | |
12:49 | Genji | night channel. |
19:22 | tim | I'm trying to install Koha 2.0.2 on a different server (Debian) and am getting a syntax error on line 30 of /etc/koha-httpd.conf |
19:23 | it's the first SetEnv line. | |
19:24 | chris | ahh probably dont have the loadmodule for Env uncommented |
19:24 | tim | SetEnv PERL5LIB "/usr/local/koha/intranet/modules" |
19:24 | I added LoadModule env_module /usr/lib/apache/1.3/mod_env.so to httpd.conf | |
19:25 | chris | ahh maybe not then |
19:25 | LoadModule setenvif_module /usr/lib/apache/1.3/mod_setenvif.so | |
19:25 | could try that one | |
19:26 | tim | This is the one I tried with the error in line 19 of one of the 2.0 pre versions. I'll give that a try. |
19:33 | [warn] module setenvif_module is already loaded, skipping | |
19:33 | Then the syntax error. | |
19:34 | chris | right, whats the text of the syntax error? |
19:34 | tim | Syntax error on line 30 of /etc/koha-httpd.conf: |
19:34 | Invalid command 'SetEnv', perhaps mis-spelled or defined by a module not included in the server configuration | |
19:35 | I'll check the spelling in the original line I added... | |
19:35 | chris | LoadModule env_module /usr/lib/apache/1.3/mod_env.so |
19:35 | is what i have | |
19:36 | which looks the same as yours | |
19:39 | tim | I typed that into IRC. I'll copy it from the terminal... |
19:39 | LoadModule env_module /usr/lib/apache/1.3/mod_env.so | |
19:40 | Sill looks right. | |
19:40 | Apache 1.3.33 if that makes a difference. | |
19:49 | chris | weird |
19:51 | ls -l /usr/lib/apache/1.3/mod_env.so | |
19:51 | works eh? the file is all there? | |
19:53 | and its definitely not commented out in the apache conf? | |
19:55 | tim | it's not commented out in httpd.conf |
19:56 | The file's there. | |
19:57 | Do I need to put the LodModule line in a certain place in httpd.conf? | |
19:57 | I just put it at the top. | |
19:57 | chris | is it by all the other loadmodule calls? |
19:57 | ahhh | |
19:58 | take a look | |
19:58 | is there a file /etc/apache/modules.conf ? | |
20:00 | tim | Yup. There is. |
20:01 | That did it! Thanks! | |
20:02 | chris | cool |
20:02 | tim | Ok. Now I get the splash screen and a 500 server error. |
20:03 | Thanks again for the help. | |
20:53 | kados | chris around? |
20:54 | I just wrote a small script that will dynamically generate any data from amazon based on an isbn | |
20:55 | and I need some help with the opac-detail.pl script/tmpl | |
20:55 | I can't figure out how to get my script to make a variable available to the template | |
20:55 | here's the script: | |
20:56 | http://kados.org/amazon_http.pl | |
20:59 | so I can get say the item description into a scalar pretty easily | |
21:03 | what I can't figure out is how to generate the ISBN from within opac-detail.pl | |
21:03 | and I also can't figure out how to add a new variable (like Description) and pass it to the template as an array | |
21:05 | I'm thinking that I'd like to have a subroutine within a perl module Amazon.pm named "get_description" that takes as an argument $isbn and outputs an array -- and I'm pretty sure I can handle that part of it ... it's just knowing how to get $isbn and what to do with the array when I'm done | |
21:05 | and I'm fully willing to write some docs on how opac-detail.pl works if you explain it to me :-) | |
21:14 | OK ... I've built the module ... | |
21:14 | http://kados.org/Amazon.pm | |
22:05 | hey chris I figured it out myself ! | |
22:05 | hehe | |
22:06 | 66.213.78.101/cgi-bin/koha/opac-detail.pl?bib=16595 | |
22:24 | Genji | whats volume desc for, as opposed to volume and number? |
22:28 | Kados, what information did your amazon.pm script supply to koha? | |
22:34 | ah.. read it properly. | |
22:34 | you might as well get ratings at the same time. | |
22:42 | you there Kados? | |
23:01 | kados | yea I'm here Genji |
23:01 | I'm re-writing the module to get all the info: | |
23:02 | Genji | whats the purpose of volumeddesc in contrast to volume? |
23:02 | kados | um ... not really sure |
23:03 | that's not an amazon deal | |
23:03 | the amazon script is no-more ... it's now handled in a module | |
23:03 | Genji | okay. cause my xls2koha script put volume column in the volume field... prehaps it should of gone into volumeddesc.... im talking the biblioitems table here. |
23:10 | hey rach, know the difference of usage of biblioitems.volume and biblioitems.volumeddesc? | |
23:12 | rach | hmm yes |
23:12 | Genji | what are they for, then? |
23:12 | rach | volume is like the actual volume number |
23:12 | - say Vol 1234 | |
23:13 | volume description is a "plain text" description for the volume - say "January issue" | |
23:13 | so for use mostly with periodicals, most specifically magazines | |
23:13 | so you'd get Vol 3 issue4 of the listener | |
23:14 | with a volume description of 1-14 March 2004 | |
23:14 | say | |
23:15 | Genji | so, for a book, not a serial, its best if i store "Vol 2. Anthropogenesis" inside volumeddesc? |
23:16 | chris | yep thats right genji |
23:16 | Genji | yup. done. for serials, im going to add a field in the template, to make vol and number show, right? |
23:16 | chris | cool |
23:17 | yep, that should be whats needed | |
23:17 | Genji | what does the 'serial' module do? |
23:18 | chris | dont know anymore for the 2.2 or 2.0 series paul has reworked a lot of the serial stuff |
23:18 | if you are lucky there will be pod in it so | |
23:18 | Genji | right. |
23:18 | chris | perldoc Serial.pm should tell ya |
23:19 | Genji | I and paul, btw, have had great latenight/early morning (nz time) bugfixing sessions. |
23:19 | chris | excellent ill read the logs |
23:27 | kados | hey chris ... |
23:27 | I made an Amazon.pm module that gets amazon data and it works! :-) | |
23:27 | I"m working on refining it right now ... | |
23:28 | for some reason ... this code doesn't work: | |
23:28 | my $isbn=$dat->{'isbn'}; | |
23:28 | my $amazon_details = &get_amazon_details($isbn); | |
23:28 | $template->param(item_description => $amazon_details->{ProductDescription}); | |
23:29 | in &get_amazon_details it returns a reference called $result | |
23:29 | like this: | |
23:29 | foreach my $result (@{$response->{Details}}){ | |
23:29 | Genji | your using asin search, instead of isbn search. |
23:29 | kados | return $result; |
23:30 | asin is the same as isbn Genji | |
23:30 | Genji | Wrong. |
23:30 | kados | hmmm ... according to Amazon it is :-) |
23:31 | well ... there is one difference ... an isbn has dashes and an asin doesn't | |
23:32 | but the dashes are only there when the number is printed ... they aren't in the UPC | |
23:33 | Genji | ah? Okay. |
23:33 | kados | chris is there some reason that the $result reference won't carry it's values over to the opac-detail.pl that you can see? (must be a syntax error or something) |
23:35 | chris | so you have a loop that runs and returns things? afaik it will only return the last thing then, or it may be the first |
23:35 | you are better off to return $response | |
23:35 | and let the opac-detail.pl foreach over it | |
23:36 | or, build a nice hash and return a reference to that for opac-detail.pl to use | |
23:36 | kados | ahh good idea |
23:36 | Genji | hmm.. interesting, this whole asin/isbn thing. |
23:36 | kados | thanks |
23:39 | Genji | now that i have to copy volume to volumeddesc, and update volume to ''.. i have to also run Marckoha2marc and do MARCmodbiblioitem yes? |
23:40 | chris | pass |
23:40 | probably :) | |
23:41 | kados | I'm not sure either ... |
23:41 | so chris ... now I have: | |
23:41 | my $isbn=$dat->{'isbn'}; | |
23:41 | my $amazon_details = &get_amazon_details($isbn); | |
23:41 | foreach my $result (@{$amazon_details->{Details}}){ | |
23:41 | $template->param(item_description => "$result->{ProductDescription}"); | |
23:41 | } | |
23:41 | in opac-detail.pl | |
23:41 | and ... | |
23:41 | my $response = $xmlsimple->XMLin($content, | |
23:41 | forcearray => [ qw(Details) ], | |
23:41 | ); | |
23:42 | in my module ... and it's not returning the description ... | |
23:43 | wait ... I think it's working ... I was looking at a record that didn't have a description :-) | |
23:43 | chris | heh |
23:43 | kados | http://66.213.78.101/cgi-bin/k[…]tail.pl?bib=16595 |
23:44 | this is by far the best programming I"ve done | |
23:44 | chris | so that queries amazon in realtime? |
23:44 | kados | yep |
23:44 | chris | right ... can you set a timeout? |
23:44 | kados | I'm going to add the rest of the vars ... |
23:44 | yea ... I've thought about the load issues | |
23:44 | chris | just thinking for libraries who have a slow connection to the world, it would slow down ur internal opacs a lot |
23:45 | kados | definitely... |
23:45 | chris | but it could be a system preference |
23:45 | kados | that's what I'm thinking ... |
23:45 | Genji | kados, probably should make it a batch script, something to run on offpeak traffic. |
23:45 | kados | cause they will have to enter their amazon associate and developer ids |
23:46 | Genji that's a possibility ... but it might conflict with the terms of use: | |
23:46 | chris | bbiab visitors |
23:46 | kados | http://www.amazon.com/gp/brows[…]me=A36L942TSJ2AJA |
23:47 | they allow cacheing of some info for only 24 hours ... other info for 3 months | |
23:47 | I'm going to finish this part of the module and then expand it to do cacheing afterwards | |
23:48 | chris how would you recommend doing a timeout? | |
23:53 | chris do you know how I would do this: | |
23:53 | <!-- TMPL_IF NAME="image" --> | |
23:53 | <tr><th>Image:</th><td><img src="<!-- TMPL_VAR NAME="copyrightdate" -->"/></td></tr> | |
23:53 | <!-- /TMPL_IF --> | |
00:39 | chris you back yet? | |
00:39 | foreach my $result (@{$amazon_details->{Details}}){ | |
00:39 | $template->param(REVIEWS => $result->{Reviews}); | |
00:39 | } | |
00:39 | problem is that Reviews should be an array ... | |
00:40 | I get : | |
00:40 | HTML::Template::param() : attempt to set parameter 'reviews' with a scalar - parameter is not a TMPL_VAR! at /usr/local/koha/opac/cgi-bin/opac-detail.pl line 82 | |
00:40 | my template looks like this: | |
00:40 | <!-- TMPL_IF NAME="reviews" --> | |
00:40 | <tr><th>Amazon Reviews:</th><td><ul><!-- TMPL_LOOP NAME="REVIEWS" --><li><!-- TMPL_VAR NAME="reviews" --></li><!-- /TMPL_LOOP --></ul></td></tr> | |
00:40 | <!-- /TMPL_IF --> | |
00:55 | this ... | |
00:55 | <!-- TMPL_IF NAME="image" --> | |
00:55 | <tr><th>Image:</th><td><img src="<!-- TMPL_VAR NAME="image" ESCAPE="URL"-->"/></td></tr> | |
00:56 | <!-- /TMPL_IF --> | |
00:56 | is turning into ... | |
00:56 | this | |
00:56 | <tr><th>Image:</th><td><img src="http%3A%2F%2Fimages.amazon.com%2Fimages%2FP%2F0380973464.01.MZZZZZZZ.jpg"/></td></tr> | |
01:33 | chris if you're around ... things are really coming together: | |
01:33 | http://66.213.78.101/cgi-bin/k[…]tail.pl?bib=16595 | |
01:33 | I still haven't figured out how to pass arrays tho | |
02:06 | chris around yet :-) | |
02:06 | I've still got probs with these damn arrays | |
02:06 | I'm doing: | |
02:06 | foreach my $review (@{$amazon_details->{Details}->{Reviews}}){ | |
02:06 | $template->param(amazon_ratings => $review->{AvgCustomerRating}); | |
02:07 | when I use this TMPL_LOOP: | |
02:07 | <!--TMPL_LOOP NAME="RATINGS" --> <!-- TMPL_IF NAME="amazon_ratings" --> <tr><th>Amazon Ratings:</th><td><!-- TMPL_VAR NAME="amazon_ratings" --></td></tr> | |
02:07 | <!-- /TMPL_IF --> | |
02:07 | <!-- /TMPL_LOOP --> | |
02:07 | it gets stuck in the loop and the server load skyrockets | |
02:08 | is my foreach wrong? What is the right way to loop through those data structures? | |
02:13 | chris | ok |
02:13 | a TMPL_LOOP | |
02:13 | wants a reference to an array, of references to hashes | |
02:15 | so if you want to use a LOOP you will need to build a structure like that to pass it | |
02:16 | eg | |
02:16 | $hash{'rating'}=1; | |
02:16 | $array[0]=\%hash; | |
02:17 | $thingtopasstotemplate=\@array; | |
02:17 | then at each iteration of the loop in the template you have access to the hash | |
02:17 | does that make sense? | |
02:24 | kados | ok I think I've got it |
02:24 | lemme try | |
02:25 | chris | cool, i think the man page probably explains it nicer, with examples |
02:26 | kados | \%hash means "dereference" this object? |
02:27 | I guess my problem is getting the object out of the xml | |
02:27 | I'm unsure of the structure of the objects when there are more than one of them | |
02:28 | say I've got | |
02:28 | <Details> | |
02:28 | <Reviews> | |
02:28 | <AvgCustomerRatings>4.8</AvgCustomerRating> | |
02:29 | </Reviews> | |
02:29 | </Details> | |
02:29 | chris | $reference=\%hash; |
02:29 | \ = reference | |
02:29 | kados | ahh |
02:30 | my problem is pulling the array out of XML::Simple | |
02:30 | chris | right |
02:31 | kados | foreach my $review (@{$amazon_details->{Details}->{Reviews}}){ |
02:31 | $template->param(amazon_ratings => $review->{AvgCustomerRating}); | |
02:31 | } | |
02:31 | doesn't cut it | |
02:31 | chris | nope |
02:31 | kados | cause it's treating it like a scalar? |
02:31 | chris | you cant use a templatel loop with that |
02:31 | all you are doing there | |
02:31 | is settinh | |
02:31 | and resetting | |
02:31 | amazon_ratings | |
02:31 | kados | hehe that would explain the mad server load and looping :-) |
02:32 | http://www.perlmonks.org/index.pl?node_id=218480 | |
02:32 | chris | so amazon_ratings will end up being the last $review->{AvgCustomerRating} |
02:34 | kados | that link shows a sturcture similar to mine with the <author> field |
02:34 | and it prints the values with | |
02:34 | print " $_\n" foreach(@{$book->{author}}); | |
02:34 | chris | yep |
02:35 | kados | so I guess I need to do (@{$amazon_details->{Reviews}}) ? |
02:35 | foreach my $review (@{$amazon_details->{Reviews}}) { | |
02:35 | chris | not really what you need to do is build an array to pass thru to the template |
02:35 | kados | ahh |
02:35 | chris | instead of constantly overwriting amazon_ratings |
02:35 | kados | right |
02:36 | now I understand | |
02:37 | so should I use a push? | |
02:38 | chris | yeah |
02:38 | make an array of refs to hashs | |
02:39 | kados | foreach (@{$amazon_details->{Reviews}}) { |
02:39 | push my @newarray $_; | |
02:39 | } | |
02:39 | will something like that work? | |
02:40 | foreach my $review (@{$amazon_details->{Details}->{Reviews}}){ | |
02:40 | push my @newarray $review->{AvgCustomerRating}); | |
02:41 | $template->param(amazon_ratings => @newarray; | |
02:41 | oops I forgot } before that last line... | |
02:43 | hehe that doesn't work ... | |
02:43 | hmmm | |
02:43 | chris | no u have to make up an array of hash refs |
02:43 | and pass a ref to that array | |
02:43 | eg | |
02:43 | foreach my $review (etc){ | |
02:44 | push @newarray,$review; | |
02:44 | } | |
02:44 | $template->param(reviews => \@newarray); | |
02:45 | then in ur template | |
02:45 | <TMPL_LOOP NAME=reviews> | |
02:45 | <TMPL_VAR NAME="AvgCustomerRating"> | |
02:45 | kados | ahh |
02:45 | chris | etc |
02:45 | i think that oughta work | |
02:47 | kados | hmmm |
02:49 | foreach my $review (@{$amazon_details->{Reviews}}){ | |
02:49 | push @newarray,$review; | |
02:49 | } | |
02:49 | $template->param(reviews => \@newarray); | |
02:49 | and | |
02:49 | <!--TMPL_LOOP NAME="reviews" --> | |
02:49 | <!-- TMPL_IF NAME="AvgCustRatings" --> | |
02:49 | <tr><th>Amazon Ratings:</th><td><!-- TMPL_VAR NAME="AvgCustRatings" --></td></tr> | |
02:49 | <!-- /TMPL_IF --> | |
02:49 | <!-- /TMPL_LOOP --> | |
02:49 | isn't working ... and I'm about to get kicked out of this coffee shop :-) | |
02:52 | chris | if you put ur code somewhere ill try to take a look later on |
02:52 | kados | thats ok ... I've gotta run ... I'll crack at it tomorrow...thanks for all the help! |
02:53 | chris | no problem |
02:53 | kados | one day I'll get these structures down |
02:53 | maybe tomorrow :-) | |
03:07 | JYL57 | hello koha world ! |
03:07 | should someone explain me something about the 'more fields' in the catalogue search ?! | |
03:08 | How is it that the field list I'm getting is not the full list of Marc fields ?! | |
03:08 | Can I change, limit or extend this list ?! | |
06:51 | Genji | hiya paul |
06:51 | got my diffs? | |
06:51 | paul | yep |
06:51 | working with them | |
06:52 | Genji | cool. all good so far? |
06:52 | paul | yes, except you speak of detail-opac.tmpl, and you should not |
06:52 | because detail-opac.tmpl is useless (or at least should be) | |
06:52 | Genji | hmm? well, its still there. |
06:53 | paul | yes, some cleaning to do... |
06:53 | Genji | and detail.pl is in opac-cgi, where it shouldn't be? |
06:53 | paul | templates for opac are all in opac |
06:53 | detail.pl in opac-cgi ??? | |
06:53 | Genji | lemme check. |
06:53 | paul | i don't have this |
06:54 | Genji | yup. detail.pl in opac-cgi. lemme check the release directory. |
06:54 | yup | |
06:54 | paul | ???? really strange ???? |
06:54 | has nothing to do here | |
06:54 | Genji | detail.pl in rc3 opac-cgi. |
06:55 | and moredetail.pl too. | |
06:55 | paul | opac-detail.pl is in opac. and detail.pl is for intranet |
06:55 | maybe it's copied by buildrelease/installer. | |
06:55 | but it should not be used by any script | |
06:55 | (unreachable) | |
06:56 | look at bureau.paulpoulain.com:9007 | |
06:56 | login test/test | |
06:56 | Genji | dunno. i untar what i download straight into my working koha dir, without changing the location of files. |
06:56 | paul | search petrochimie |
06:56 | Genji | or directories or anything. |
06:56 | don't have a opac or intranet directory. | |
06:57 | just have intranet-cgi, intranet-html, opac-cgi, opac-html, modules, scripts and config. | |
06:57 | so its not my doing, nor that of a install.pl | |
06:57 | cause i never use it. | |
06:57 | paul | ok, it's a buildrelease problem |
06:58 | Genji | what you think of my updatemarc script? |
06:58 | paul | ok, got it in buildrelease : |
06:58 | # Copy files from intranet-cgi to opac-cgi | |
06:58 | system("cp $rootdir/intranet-cgi/detail.pl $rootdir/opac-cgi"); | |
06:58 | system("cp $rootdir/intranet-cgi/moredetail.pl $rootdir/opac-cgi"); | |
06:58 | system("cp $rootdir/intranet-cgi/search.pl $rootdir/opac-cgi"); | |
06:58 | system("cp $rootdir/intranet-cgi/subjectsearch.pl $rootdir/opac-cgi"); | |
06:58 | system("cp $rootdir/intranet-cgi/logout.pl $rootdir/opac-cgi"); | |
06:58 | system("mv $rootdir/intranet-cgi/opac/* $rootdir/opac-cgi"); | |
06:59 | They are useless (except maybe for logout) | |
06:59 | oups... and the last line, of course | |
06:59 | in CVS opac scripts are in a subdirectory of main directory | |
06:59 | it's moved during buildrelease process to have both interfaces isolated | |
07:01 | Genji | tried it twice today. once on my home pc, and once at the library. it works quite well. |
07:01 | paul | sound good to me. |
07:01 | will commit it, then complete release notes | |
07:02 | then release 2.2.0RC4 | |
07:03 | Genji | yup. you have to work out where the script goes though. maybe script/misc will do for it. only needs running if the library finds that their subject searches don't work. |
07:04 | paul | yes, that's what i'm doing now. + some POD doc |
07:05 | Genji | hmms? adding pod doc to what? |
07:05 | paul | to your script. to explain what it does. |
07:05 | Genji | Cool. thanks. |
07:05 | paul | try perldoc C4/Biblio.pm |
07:05 | a little question : | |
07:06 | why is misc/koha2marc.pl not enough ? | |
07:06 | Genji | hmm? |
07:06 | paul | it does almost the same thing, but for all biblios. |
07:06 | (not just biblios with a subject) | |
07:07 | and it must be launched when moving from 1.2 to 2.x | |
07:08 | Genji | mine does a specific problem, therefore it is much faster than koha2marc.pl. |
07:08 | paul | right |
07:09 | Genji | much faster. at least 50 percent faster. |
07:09 | as it doesn't deal with items. doesn't need to. | |
07:09 | paul | right. OK, i commit it with some POD docs |
07:10 | Genji | include me in credits? |
07:10 | paul | sure |
07:11 | now, you are co-owner of Koha and we can't change the licence without your permission. | |
07:11 | kudos ;-) | |
07:11 | Genji | whoa! maybe i should become a fully bonafide devel and get cvs rights and everything. |
07:12 | paul | just tell me your sourceforge login, and i do it immediatly |
07:12 | Genji | one sec.. |
07:13 | never trust cvs's automagically diffing though, so would ask for tutoring on cvs'ing. | |
07:14 | paul | look for graphic cvs tool |
07:14 | better : install linux. | |
07:14 | with KDE, there is a great tool called Cervesia | |
07:14 | Genji | username: genjimoto |
07:16 | ah.. your koha.sourceforge.net addy.. has an infinite loop of meta refresh, and a jpg. | |
07:16 | paul | ??? |
07:16 | Genji | http://koha.sourceforge.net |
07:17 | whoa, im now a full devel. awesome. | |
07:17 | paul | http://sourceforge.net/project[…]hp?group_id=16466 |
07:18 | welcome ;-) | |
07:18 | (not yet : a full devel don't use a computer with a stupid OS ;-) ) | |
07:18 | Genji | okay, okay, ill get Linux inside windows. |
07:18 | CoLinux. | |
07:18 | paul | (was in <polemic ON> mode ;-) ) |
07:19 | great : then you will have bug of windows with linux :-D | |
07:19 | Genji | but why do i need linux? windows seems to work great with koha. |
07:20 | whats good about Cervesia? | |
07:20 | paul | graphic environment for CVS |
07:20 | but it's good to have a devel under Windows | |
07:20 | Genji | eh... that url isn't accessable by me. |
07:20 | paul | so, stay on it. |
07:21 | oups, right, you're not project admin... | |
07:22 | Genji | okay. so I download something like WinCVS? |
07:23 | https://sourceforge.net/projects/tortoisecvs/? | |
07:24 | paul | seems good in screenshots |
07:24 | Genji | nice indeed. |
07:25 | has so many feature requests its not funny though. | |
07:32 | ill just use WinCVS. more mature and complex.. I like complex. | |
07:33 | paul | note that we could move to arch soon, so it will be something new to learn ;-) |
07:33 | Genji | when you committing my fixes? |
07:33 | whats arch? | |
07:33 | paul | search gnu arch |
07:37 | Genji | aww man. looks like i have to get linux installed.. all this posix shell stuff |
07:37 | paul | ??? Know that the opac rubbish isn't needed, but what else isn't needed? |
07:38 | Genji | okay. what ive given you, is the opac detail.pl changes, detail-opac changes, template changes, biblio.pm changes, savebiblio.pl changes and my script... right? |
07:39 | paul | yes |
07:39 | Genji | what of that do you consider not needeD? |
07:39 | paul | nothing. |
07:40 | i mean there is more than your code to commit ;-) | |
07:40 | Genji | ahhh. |
07:41 | doesn't seem to be a arch client for windows. | |
07:41 | paul | no. |
07:41 | arch is mostly command line managed | |
07:42 | (even on linux) | |
07:42 | Genji | ah crap. not good. |
07:43 | WinCVS in particular has a really cool graphical branch viewer that makes it easy to see what happened in the past. | |
07:43 | used it once, and it was nice. | |
07:43 | so, im really going to be hating arch. | |
07:44 | Why is it going to arch? | |
08:03 | paul | arch has many interesting features. |
08:03 | and is completly distributed. | |
08:03 | has 2 defaults imho : | |
08:03 | * mostly command-line | |
08:03 | * the centralised architecture of CVS also has some advantages | |
08:04 | but for thes 2nd, it seems there are hints to "simulate" a centralised architecture | |
08:33 | 2.2.0RC4 is available. | |
08:33 | http://sourceforge.net/project[…]release_id=288415 | |
08:33 | Genji | Congrats paul. |
← Previous day | Today | Next day → | Search | Index