Time |
S |
Nick |
Message |
00:06 |
|
|
wizzyrea left #koha |
00:15 |
|
|
hdl joined #koha |
00:18 |
|
|
trea left #koha |
00:20 |
|
|
hdl1 left #koha |
00:28 |
|
|
hdl left #koha |
00:31 |
|
|
bigbrovar joined #koha |
00:38 |
|
|
hdl joined #koha |
03:18 |
|
|
LBA left #koha |
04:06 |
|
|
Oak joined #koha |
04:06 |
|
Oak |
kia ora #koha |
04:41 |
|
bag |
hi Oak |
04:41 |
|
Oak |
hello bag :o) |
04:52 |
|
|
tcohen joined #koha |
05:22 |
|
tcohen |
albatrosssss |
05:23 |
|
|
tcohen left #koha |
05:28 |
|
bag |
NateC? |
05:28 |
|
wahanui |
I LIKE SPACE AND MY WIFE |
05:28 |
|
bag |
love it :D |
05:38 |
|
|
kmkale joined #koha |
06:46 |
|
|
cait joined #koha |
07:01 |
|
|
kmkale left #koha |
08:05 |
|
rangi |
@wunder nzwn |
08:05 |
|
huginn |
rangi: Error: timed out |
08:06 |
|
|
cait left #koha |
08:06 |
|
|
cait joined #koha |
08:06 |
|
cait |
@wunder Reutlingen |
08:06 |
|
huginn |
cait: Error: timed out |
08:06 |
|
Oak |
Guten Morgen cait :o) |
08:07 |
|
cait |
Salaam Oak :) |
08:07 |
|
Oak |
31st December huh |
08:08 |
|
cait |
correct |
08:08 |
|
Oak |
weird |
08:08 |
|
cait |
why? |
08:08 |
|
Oak |
not sure |
08:09 |
|
cait |
feeling not ready for the new year? |
08:10 |
|
Oak |
does not matter. 2012 won't wait. |
08:10 |
|
cait |
true :) |
08:33 |
|
|
bigbrovar left #koha |
09:21 |
|
Oak |
me go now. |
09:21 |
|
|
Oak left #koha |
09:32 |
|
|
bigbrovar joined #koha |
10:30 |
|
|
kmkale joined #koha |
10:49 |
|
|
kmkale left #koha |
10:54 |
|
|
magnus_away is now known as magnuse |
11:19 |
|
cait |
happy new year all :) |
11:19 |
|
|
cait left #koha |
11:25 |
|
magnuse |
happy 2012 to new zealand! |
11:54 |
|
magnuse |
have fun, #koha! |
11:54 |
|
|
magnuse is now known as magnus_away |
12:25 |
|
|
jcamins_away is now known as jcamins |
14:48 |
|
|
bigbrovar left #koha |
14:50 |
|
|
cait joined #koha |
14:50 |
|
jcamins |
Good morning, cait. |
14:50 |
|
cait |
hi jcamins |
15:32 |
|
|
cait left #koha |
15:46 |
|
|
druthb joined #koha |
15:46 |
|
druthb |
o/ |
15:49 |
|
jcamins |
\o |
16:16 |
|
|
druthb left #koha |
16:31 |
|
|
kmkale joined #koha |
16:38 |
|
jcamins |
kmkale: happy new year! |
16:48 |
|
jcamins |
searching faq? |
16:48 |
|
wahanui |
i heard searching faq was at http://koha-community.org/docu[…]on/faq/searching/ |
17:03 |
|
|
trea joined #koha |
17:48 |
|
|
cait joined #koha |
17:49 |
|
cait |
hi #koha |
17:49 |
|
jcamins |
Hi #cait. Made it home to Konstanz? |
17:49 |
|
cait |
yes :) |
17:49 |
|
cait |
feels good to be home again |
18:56 |
|
* jcamins |
wonders if chanting "rangi" over and over will cause him to appear. |
18:56 |
|
jcamins |
Rangi rangi rangi. |
18:56 |
|
* jcamins |
waits. |
18:57 |
|
rangi |
yup |
18:57 |
|
jcamins |
All right! |
18:57 |
|
jcamins |
rangi++ |
18:57 |
|
rangi |
makes the laptop beep |
18:57 |
|
* cait |
will memorize that trick |
18:58 |
|
jcamins |
rangi: I'm trying to figure out how to do plugin-style interfaces in Perl. |
18:58 |
|
jcamins |
Any tips? |
18:58 |
|
jcamins |
Like, where do I start? |
18:58 |
|
rangi |
plugin style? |
18:58 |
|
jcamins |
Specifically for the linker. |
18:59 |
|
jcamins |
I would like the authority linker to have the option for people to implement their own linking algorithms. |
18:59 |
|
rangi |
ah |
18:59 |
|
jcamins |
Without messing up my beautiful code. ;) |
18:59 |
|
rangi |
id do a base class |
19:00 |
|
rangi |
then they can do an ISA module |
19:00 |
|
jcamins |
Okay, but how do they get their module called? |
19:00 |
|
rangi |
they could do it the way the label printer does it, with a syspref |
19:01 |
|
jcamins |
Ah, that's exactly what I was thinking of |
19:01 |
|
jcamins |
I guess I just have to figure out how that works, then. :) |
19:02 |
|
jcamins |
Any idea what syspref that is? |
19:02 |
|
rangi |
nope |
19:03 |
|
rangi |
but its called by one of teh label .pl files |
19:04 |
|
rangi |
the important thing is making a nice base class module so ppl can write ones like you can for the template toolkit ones |
19:04 |
|
rangi |
or Koha::Cache even |
19:04 |
|
rangi |
bug 7248 |
19:04 |
|
huginn |
Bug http://bugs.koha-community.org[…]w_bug.cgi?id=7248 enhancement, PATCH-Sent, ---, gmcharlt, NEW , Caching for services |
19:05 |
|
* jcamins |
will use that as a model, thanks. |
19:06 |
|
jcamins |
Yeah, I was not going to figure out what that meant. |
19:07 |
|
* jcamins |
now sees how it works. |
19:07 |
|
jcamins |
Very cool. |
19:07 |
|
rangi |
:) |
19:09 |
|
jcamins |
rangi: incidentally, all your copyright statements are wrong. |
19:10 |
|
jcamins |
It's 2011, soon to be 2012. :P |
19:10 |
|
cait |
even worse |
19:10 |
|
cait |
it already is 2012 |
19:12 |
|
rangi |
heh |
19:16 |
|
|
LBA joined #koha |
19:23 |
|
jcamins |
http://www.youtube.com/watch?v=wmwM_AKeMCk |
19:41 |
|
* rangi |
confesses to never having read a harry potter book, or seen more then 10 mins of any of the movies |
19:43 |
|
jcamins |
rangi: you might not find that quite so amusing then. |
19:43 |
|
rangi |
yep, i suspect some knowledge is needed |
19:43 |
|
rangi |
still clever though |
19:49 |
|
|
Soupermanito joined #koha |
19:49 |
|
* rangi |
wonders if Soupermanito has or ever will say anything |
19:53 |
|
jcamins |
rangi: and apparently Harry Potter in that is replacing Daniel Radcliffe in How to Succeed. |
19:55 |
|
jcamins |
rangi: so do I have to put a "use C4::Linker::Whatever" for every plugin? |
19:55 |
|
jcamins |
Right now there will only be one, so it's easy, but that seems... wasteful. |
19:56 |
|
rangi |
no not use |
19:57 |
|
jcamins |
rangi: you have a use Koha::Cache::Memcached in your base class. |
19:57 |
|
jcamins |
Am I misunderstanding what it does? |
19:57 |
|
rangi |
yeah, thats a different thing |
19:58 |
|
rangi |
because for that you make a Koha::Cache |
19:58 |
|
rangi |
and pass it a type |
19:58 |
|
jcamins |
Hrm. That's not what I should be looking at? |
19:58 |
|
rangi |
and it creates one of those for you, its not really a plugin system, just a consistent API |
19:59 |
|
rangi |
nope the TT plugin is better |
19:59 |
|
jcamins |
Where would I find one of those? |
20:00 |
|
rangi |
hmm 929 |
20:00 |
|
rangi |
or in the needs signoff queue there is one for enabling caching of TT includes |
20:01 |
|
rangi |
Koha::Cache |
20:01 |
|
rangi |
is how i would like Koha::Search to be |
20:01 |
|
rangi |
so the calling programme doesnt have to actually care what is doign the search |
20:02 |
|
jcamins |
Right. |
20:02 |
|
rangi |
same interface for them all |
20:03 |
|
jcamins |
So, I see how the TT plugins work, but I'm not sure how to do the back-end work to use it. |
20:03 |
|
jcamins |
On the plus side, I now understand how Koha::Cache works. :) |
20:03 |
|
rangi |
hehe |
20:04 |
|
rangi |
the way the pdf stuff does it is |
20:04 |
|
rangi |
my $module = C4::Context->preference('something'); |
20:04 |
|
rangi |
require $module; |
20:04 |
|
jcamins |
Ooh! Found it. |
20:04 |
|
bag |
@wunder 93109 |
20:04 |
|
jcamins |
I was searching for "label." |
20:04 |
|
huginn |
bag: The current temperature in K6LCM - Westside / Mesa, Santa Barbara, California is 17.4�C (12:03 PM PST on December 31, 2011). Conditions: Scattered Clouds. Humidity: 76%. Dew Point: 13.0�C. Pressure: 29.96 in 1014.4 hPa (Steady). |
20:04 |
|
rangi |
but it needs to do some sanity chekcing |
20:06 |
|
jcamins |
Right. |
20:06 |
|
rangi |
so it cant just include anything |
20:06 |
|
jcamins |
Yeah... |
20:07 |
|
jcamins |
"Registering" plugins is harder in Perl than it was in C++, isn't it? |
20:07 |
|
rangi |
yep |
20:07 |
|
jcamins |
Phooey. |
20:08 |
|
jcamins |
Idea: how about using the technique that Koha::Cache does, so that it has to be within the namespace C4::Linker? |
20:08 |
|
rangi |
you could be cool |
20:08 |
|
rangi |
and do |
20:08 |
|
rangi |
Koha::Plugin |
20:09 |
|
jcamins |
Follow-up question: why do I need a "use whatever" at all, if I'm mandating a specific interface for the sub-module? |
20:09 |
|
jcamins |
Imagine you're talking to someone who learned OO on C++. |
20:10 |
|
rangi |
well you never call Koha::Cache::Memcached |
20:10 |
|
jcamins |
Right. |
20:10 |
|
rangi |
you always call my $cache = Koha::Cache->new() |
20:10 |
|
jcamins |
Yeah, that's my understanding. |
20:10 |
|
rangi |
so it needs to have Koha::Cache::Memcached in it |
20:10 |
|
rangi |
via the use |
20:10 |
|
jcamins |
Ah. |
20:11 |
|
rangi |
the way TT plugins do it |
20:11 |
|
rangi |
is nicer for your situation |
20:11 |
|
rangi |
https://metacpan.org/module/Template::Plugin |
20:11 |
|
rangi |
if we made a Koha::Plugin |
20:11 |
|
jcamins |
Indeed, that's exactly the idea I was going for, but I'm limited by the fact that I only know how to write plugins and not plugin hosts for TT. ;) |
20:12 |
|
rangi |
https://metacpan.org/source/AB[…]emplate/Plugin.pm |
20:12 |
|
rangi |
not so bad |
20:13 |
|
rangi |
but yeah probably beyond the scope |
20:13 |
|
jcamins |
Easy for you to say! |
20:13 |
|
jcamins |
:P |
20:13 |
|
rangi |
id make |
20:13 |
|
rangi |
Koha::Linker |
20:13 |
|
rangi |
the |
20:13 |
|
rangi |
Koha::Linker::Fish |
20:13 |
|
cait |
eew |
20:13 |
|
cait |
Koha::Linker::chocolate? |
20:14 |
|
rangi |
use base qw( Koha::Linker ); |
20:14 |
|
rangi |
and the .pl would call Koha::Linker::Fish |
20:14 |
|
jcamins |
Hm. |
20:14 |
|
jcamins |
And when someone wants to add an additional plugin, let them do the marshalling work? |
20:15 |
|
rangi |
well if you make the .pl use the syspref |
20:15 |
|
rangi |
they make a new module |
20:15 |
|
rangi |
and add that as an option to the syspref |
20:15 |
|
jcamins |
Gotcha. |
20:15 |
|
rangi |
so the .pl doesnt need to change |
20:23 |
|
jcamins |
Okay... are you *sure* that the handling of the syspref can't be squished into C4::Linker somehow? |
20:24 |
|
jcamins |
And, unrelated to that, is there a reason why __END__ has a ton of whitespace after it? |
20:24 |
|
rangi |
it probably could but its pretty unclean |
20:25 |
|
jcamins |
Alas. |
20:28 |
|
rangi |
that whitespace can die, no need for it |
20:28 |
|
jcamins |
Woohoo! |
20:40 |
|
jcamins |
Oh wise rangi: is there a correct way to replace a field in MARC? |
20:40 |
|
rangi |
Hehe |
20:41 |
|
rangi |
hmm check man MARC::Field |
20:41 |
|
* jcamins |
has decided to invoke you in this fashion from now on, in the hopes that you won't get irritated by my ceaseless questions and kickban me. ;) |
20:41 |
|
rangi |
I think there is a replace method |
20:41 |
|
jcamins |
Ah, yeah. |
20:41 |
|
jcamins |
I found it. |
20:41 |
|
jcamins |
I was looking in MARC::Record. |
20:41 |
|
rangi |
*nod* |
20:41 |
|
jcamins |
I should've been looking at MARC::Field. |
20:41 |
|
rangi |
I do that |
20:43 |
|
jcamins |
Hm. I'm missing something here. I need to store parameters associated with an object. |
20:44 |
|
rangi |
Class::Accessor :) |
20:45 |
|
rangi |
pass in some params in ur new call, set them in your object (its just a hashref u bless) |
20:45 |
|
rangi |
C4::Template might help show u |
20:46 |
|
jcamins |
Ah, yeah, that's easier to follow than Koha::Cache. |
20:47 |
|
kmkale |
happy new year jcamins rangi and #koha |
20:49 |
|
rangi |
thannks kmkale, u too |
20:52 |
|
* jcamins |
weeps. |
20:53 |
|
jcamins |
I need to use C4::Search. |
20:53 |
|
jcamins |
C4::Search uses C4::Biblio. |
20:53 |
|
jcamins |
The entire point is that C4::Biblio should call my code. |
20:54 |
|
jcamins |
Alternatively, I could use C4::AuthoritiesMarc, instead of C4::Search. |
20:54 |
|
jcamins |
But that also requires C4::Biblio. |
20:55 |
|
jcamins |
(and, no, I am not implementing Koha::Search in a sane fashion today) |
21:00 |
|
rangi |
yeah hated when that happens |
21:01 |
|
rangi |
hate too |
21:01 |
|
* jcamins |
saves the feature that requires that for the end. |
21:03 |
|
* jcamins |
considers heading flipping. |
21:06 |
|
* jcamins |
considers the possibility that his head has flipped. |
21:07 |
|
rangi |
heh |
21:08 |
|
* cait |
can't follow |
21:09 |
|
jcamins |
cait: heading flipping would be changing from an old heading to the new form. |
21:09 |
|
jcamins |
"Flipping" is slang for "going crazy." |
21:09 |
|
jcamins |
*to flip = to go crazy |
21:09 |
|
jcamins |
To lose one's marbles. |
21:09 |
|
jcamins |
To suddenly find oneself one card short of a full deck. |
21:10 |
|
jcamins |
To... |
21:10 |
|
jcamins |
Let this be a lesson to you all: avoid authorities. |
21:10 |
|
jcamins |
There be dragons. |
21:11 |
|
cait |
lol |
21:11 |
|
cait |
thx jcamins :) jcamins++ |
21:15 |
|
jcamins |
rangi: if I do the dynamic import thing, will the thingies remain in the namespace if I call a sub? |
21:15 |
|
* jcamins |
tries again. |
21:15 |
|
jcamins |
The... methods. |
21:16 |
|
rangi |
if u call them via the object yep |
21:16 |
|
jcamins |
Excellent, thanks. |
21:18 |
|
jcamins |
Oh bother. |
21:19 |
|
jcamins |
How do I create the object? |
21:20 |
|
Soupermanito |
rangi, :) i will when i have something useful to say or ask :D |
21:25 |
|
jcamins |
Why doesn't Perl know what import means? |
21:25 |
|
pastebot |
"jcamins" at 98.14.120.176 pasted "Help me, oh wise rangi!" (8 lines) at http://paste.koha-community.org/178 |
21:26 |
|
jcamins |
Oh, because there's no such function. |
21:27 |
|
jcamins |
rangi: ignore that question. It was pointless. |
21:27 |
|
rangi |
:) |
21:28 |
|
jcamins |
Okay... now, why am I getting an undefined subroutine error? |
21:30 |
|
jcamins |
Well. |
21:30 |
|
jcamins |
I'll be. |
21:30 |
|
jcamins |
It seems to have worked. |
21:30 |
|
jcamins |
(the answer, incidentally, is that there was a syntax error in the file that was imported at run-time) |
21:33 |
|
|
LBA left #koha |
21:34 |
|
|
Soupermanito left #koha |
21:42 |
|
|
Soupermanito joined #koha |
21:46 |
|
jcamins |
rangi: do you have any idea how to do this properly: @unlinked_headings{keys %$results->{'unlinked'}} += values $results->{'unlinked'}; |
21:48 |
|
cait |
@wunder Konstanz |
21:48 |
|
huginn |
cait: The current temperature in Taegerwilen, Taegerwilen, Germany is 7.1�C (10:44 PM CET on December 31, 2011). Conditions: Rain Showers. Humidity: 95%. Dew Point: 6.0�C. Windchill: 5.0�C. Pressure: 30.08 in 1018.5 hPa (Rising). |
21:50 |
|
jcamins |
rangi: I got it. |
21:50 |
|
jcamins |
:) |
21:50 |
|
cait |
yay :) |
21:51 |
|
cait |
rangi++ jcamins++ |
21:53 |
|
jcamins |
Dinner time. |
21:53 |
|
|
jcamins is now known as jcamins_away |
21:55 |
|
|
kmkale_ joined #koha |
22:00 |
|
|
kmkale left #koha |
22:00 |
|
|
kmkale_ is now known as kmkale |
22:01 |
|
|
kmkale left #koha |
22:05 |
|
|
Soupermanito left #koha |
22:57 |
|
|
jcamins_away is now known as jcamins |
22:58 |
|
jcamins |
wizzyrea++ # for signing off on things. |
23:16 |
|
|
cait left #koha |