Time Nick Message 17:28 chris thats my saturday taken care of 17:28 chris yay the island bay festival starts today 16:46 chris only if you want to be :-) 16:46 owen I thought the point of Perl was to be as obscure as possible? :) 16:45 chris much more maintanable code 16:45 chris i like the long way anyway 16:45 owen well, doing it the long way works at least. thanks chris 16:44 chris yeah i dont think so owen 16:42 owen (in the shorthand, at least?) 16:42 owen It looks to me like there's no option for an id attribute 16:40 chris sorry value = 1 and no label 16:39 chris value = '' and no label 16:39 chris if $data->{'repeatable'} is set, checked will be 1 16:38 chris so the name is repeatable 16:38 chris yep 16:38 owen It's that shorthand that's got me thrown off 16:37 chris print $query->checkbox('checkbox_name','checked','ON','CLICK ME'); 16:37 chris -or- 16:37 chris -label=>'CLICK ME'); 16:37 chris -value=>'ON', 16:37 kados I suspect that the way that you add an id for a checkbox will be the same as with any element 16:37 chris -checked=>1, 16:37 chris print $query->checkbox(-name=>'checkbox_name', 16:37 chris CREATING A STANDALONE CHECKBOX 16:36 kados :-) 16:36 chris man CGI :) 16:35 owen I'm not even sure how to find out how CGI::checkbox works 16:34 owen CGI::checkbox('repeatable',$data->{'repeatable'}?'checked':'',1,'') 16:34 owen Okay,a Perl question to toss out: I'm looking at marctagstructure.pl. I want to get an id attribute into the checkbox that's generated by this section of the script: 15:10 kados hi nausicaa ;-) 15:10 nausicaa 3 boys in your CV !!! 15:10 nausicaa hi paul ! 15:10 nausicaa ... 15:10 kados owen-away: when you get back check out the spellcheck feature ;-) 15:03 kados I will ;-) 15:03 paul say nausicaa when he/she is back that 7PM is really a bad time for a man with 3 young boys ;-) 15:02 paul please 15:02 kados thanks paul! 15:02 kados it's working! 15:02 kados yay! 15:01 paul give it a try ! 15:01 paul i don't see either 15:01 kados maybe I can just move it up higher 15:01 kados hmmm, I can't see why 15:01 paul don't you "loose" the array between the loop & the tmeplate->param ? 15:01 kados $template->param( SPELL_SUGGEST => \@spsuggest ); 15:00 paul you should have a problem somwhere linking the array & the template 15:00 paul so, the array is filled 15:00 kados yes 15:00 kados ? 15:00 paul (so 2 values ?) 15:00 kados ==>1 15:00 paul if it's >-1, then the array is filled, but does not refer to the template 14:59 paul after the while loop 14:59 paul try to warn "==>".$#spsuggest; 14:58 kados :-) 14:58 paul (baby is drinking ;-) ) 14:58 kados so the array is not filled ... 14:58 kados (thanks to your wife too ;-) 14:57 kados (thanks) 14:57 kados so if XXX is inside the loop it doesn't show up 14:57 paul (but i've some minuts) 14:57 paul (wife waiting for me for dinner) 14:57 kados I did before the loop 14:57 kados wait 14:57 kados I will 14:57 paul so, the array is filled. 14:56 kados ahh ... 14:56 kados I tried that ;-) 14:56 paul if you see some XXX, then the array is filled. 14:56 kados it shows up 14:56 paul in the template. 14:56 paul <!-- TMPL_VAR NAME="spsuggestion" --> 14:56 paul add a XXX just before 14:55 kados still not working ... 14:55 paul less perlish, but more classic 14:54 paul ? 14:54 paul push @spsuggest,\%line 14:54 paul $line{spsuggestion} = $spsuggestion 14:54 paul my %line; 14:54 paul by : 14:54 paul push @spsuggest, +{ spsuggestion => $spsuggestion }; 14:54 paul what happends if you replace: 14:54 kados yes 14:52 paul did a warn "==>$spsuggestion" in the while print the values ? 14:51 kados <!-- /TMPL_LOOP --> 14:51 kados <!-- TMPL_VAR NAME="spsuggestion" --> 14:51 kados <!-- TMPL_LOOP NAME="SPELL_SUGGEST" --> 14:51 paul kados, what is in the template ? 14:51 kados :-) 14:51 kados paul: me too no? 14:50 paul bonsoir quand même !!! 14:50 paul nausicaa, tu as le don d'arriver quand je dois partir :-( 14:50 kados the mysql works in mysql 14:50 kados this code isn't passing the suggestions on to the template and I can't see why 14:49 kados ahh :-) 14:49 kados $template->param( SPELL_SUGGEST => \@spsuggest ); 14:49 paul (in fact i was not in phone : was speaking with gnomemeeting with henri damien ;-) ) 14:49 kados $sthgetsugg->finish; 14:49 kados } 14:49 kados push @spsuggest, +{ spsuggestion => $spsuggestion }; 14:49 kados while (my ($spsuggestion)=$sthgetsugg->fetchrow_array) { 14:49 kados $sthgetsugg->execute($phrases); 14:49 kados my $sthgetsugg=$dbhpop->prepare($getsugg); 14:48 paul yes, will be away in a few minuts 14:48 kados paul off the phone yet? 14:38 kados ok ... I'll keep plugging away at the script then ... thanks 14:37 owen Just from looking at the template, I don't see why not. 14:36 kados I can't figure out why the suggestions aren't getting through 14:35 kados will a loop not work there? 14:35 kados lines 31-4 14:35 kados can you check my template additions to opac-searchresults.tmpl on 69 14:35 owen Yes 14:35 kados owen around? 14:18 kados is opac-searchresults.pl used at all? 14:12 kados (when you get a chance) 14:11 kados $template->param( SPELL_SUGGEST => \@spsuggest ); 14:11 kados later on I have: 14:11 paul (on phone) 14:11 kados for some reason the spsuggestion var isn't getting populated 14:11 kados } 14:11 kados push @spsuggest, +{ spsuggestion => $spsuggestion }; 14:11 kados while (my ($spsuggestion)=$sthgetsugg->fetchrow_array) { 14:11 kados paul can you spot an error here: 14:07 hdl Mis. 14:07 paul met ton casque 14:07 paul faut qu'on cause 14:07 hdl Salut. 14:07 paul coucou 13:42 paul yes, pleas 13:42 paul <a ref="<!-- TMPL_VAR name -->"> works fine 13:42 owen I'll remember that. Would you like me to correct it? 13:42 paul for example 13:42 paul (except inside a "") 13:42 paul yes 13:41 owen Okay. It doesn't like those template tags nested inside the HTML, hunh? 13:41 paul longer, but better for the translation tool 13:41 paul <!-- /TMPL_IF --> 13:41 paul <tr valign="top"> 13:41 paul <!-- TMPL_ELSE --> 13:41 paul <tr valign="top" class="hilighted"> 13:41 paul <!-- TMPL_IF name="toggle" --> 13:41 paul you must write : 13:40 paul the translation tool has problem with this syntax. 13:40 paul <tr valign="top"<!-- TMPL_IF NAME="toggle" --> class="hilighted"<!-- /TMPL_IF -->> 13:40 paul about your commits : 13:40 paul owen... 13:09 owen So it should always return results, even if the latest of that item type was acquired a long time ago? 13:09 paul ok, so I write a private mail to kados, owen, ask later ;-) 13:08 paul no owen 13:08 paul (that's for a private message) 13:08 owen paul: does the recent acquisitions search only search back a certain length of time? 13:08 kados nope 13:08 kados hehe 13:08 kados ahh ... cool, I missed that 13:08 paul owen, can you see kados physically now ? 13:08 owen <!-- TMPL_ELSE -->No results found. 13:08 paul owen is right 13:08 paul in 2.2, recent acquisition are standard Search. 13:08 owen <!-- TMPL_IF name=total --> 13:07 kados so that I can insert my 'spelling suggestion' code 13:07 paul was used in 2.0.0 to show "recent acq search" 13:07 kados I'm trying to figure out the best way to find out if results = 0 13:07 paul mmm... it's an "oldies" 13:07 kados sorry 13:06 kados ahh it's a TMPL_IF 13:06 kados line 10 13:06 kados paul: in opac-searchresults.tmpl 13:06 paul kados : i don't understand what you're speaking about 13:05 paul owen : selectbranchprinter.pl is r-x for me. 13:05 owen Could this be the problem with /circ/selectbranchprinter.pl? We always have to reset the permissions of that file too, after an update. 13:04 kados paul I can't find where the 'searchnew' variable is set in opac-searchresults.tmpl 13:03 paul owen, kados is probably right : i could not execute the script you've added. I just chmoded it, should work fine now (& is integrated into default template) 12:58 kados this is just a guess but the user you used to commit it may not have had executable privileges on that script 12:38 paul (on phone) 12:36 owen I notice that after our latest CVS update the script that I added didn't have the right permissions. Did I do something wrong when I committed it? 12:28 paul ok kados, i'm here is you need me, just write my nick ;-) 12:20 paul (on phione) 12:20 paul yes kados 12:14 kados paul around? 12:01 kados morning all