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