Re: [CODE4LIB] Pander Bear goes to Seattle (humor)

2011-12-05 Thread Michael B. Klein
ROFL.

Thanks, Michael. I needed that.

On Mon, Dec 5, 2011 at 2:55 PM, David Uspal wrote:

> MichaelDoran++
>
> -Original Message-
> From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf Of
> Doran, Michael D
> Sent: Monday, December 05, 2011 5:00 PM
> To: CODE4LIB@LISTSERV.ND.EDU
> Subject: [CODE4LIB] Pander Bear goes to Seattle (humor)
>
> [cid:image001.png@01CCB365.D6B867E0]
>
>
>
> For the *real* Pander Bear comix (written by Ken Eppstein and drawn by Bob
> Ray Starker), go to http://www.nixcomics.com/blog/?pageId=131.
>
>
>
> And just to be clear -- I'm tweaking the *controversy* not the original
> blog post ( which appeared to fairly innocuous).
>
>
>
> -- Michael
>
>
>
> # Michael Doran, Systems Librarian
>
> # University of Texas at Arlington
>
> # 817-272-5326 office
>
> # 817-688-1926 mobile
>
> # do...@uta.edu
>
> # http://rocky.uta.edu/doran/
>


Re: [CODE4LIB] jQuery Ajax request to update a PHP variable

2011-12-05 Thread Nate Hill
I'd be really curious to see the different ways you all speak of
accomplishing this, and would stand to learn a lot along the way. As a
beginner with much of this, I have patched together this app using methods
and means that I know, rather than the 'right' way.  So, that said, I'm
sure I'm doing a lot of somewhat basic operations in a rather roundabout
manner.  Do correct me.

I intentionally left this project at work today so I wouldn't play with it
at home tonight, but in the morning I'll share the various files so anyone
who feels like it can pick them apart and demonstrate their alternative
(and likely far more efficient) ways of doing things.

Thanks to all of you who have chimed in.  Much appreciated.

N

On Mon, Dec 5, 2011 at 6:04 PM, Godmar Back  wrote:

> On Mon, Dec 5, 2011 at 6:45 PM, Jonathan Rochkind 
> wrote:
>
> > I still like sending HTML back from my server. I guess I never got the
> > message that that was out of style, heh.
> >
> >
> I suppose there are always some stalwart defenders of the status quo ;-)
>
> More seriously, I think I'd like to defend my statement.
>
> The purpose of graceful degradation is well-acknowledged - I don't think
> no-JS browsers are much of a concern, but web spiders are and so are
> probably ADA accessibility requirements, as well as low-bandwidth
> environments.
>
> I do not believe, however, that such situation warrant any sharing of HTML
> templates. If they do, it means your app is, well, perhaps outdated in that
> it doesn't make full use of today's JS features. Certainly Gmail's "basic
> html version for low bandwidth environments" shares no HTML templates with
> the JS main app. In Nate's case, which is a heavily JS-dependent app (he
> uses various jQuery plug-ins to drive his layout, as well as qtip for
> tooltips), I find it difficult to see how any degraded environment would
> share any HTML with his app.
>
> That said, I'm genuinely interested in what others are thinking/have
> experienced.
>
> Also, for expository purposes, I'd love to prototype the client-side for
> Nate's app. Then we could compare the mixed PhP server/client-side AJAX
> version with the pure JS app I'm suggesting.
>
>  - Godmar
>
>
> On Mon, Dec 5, 2011 at 6:45 PM, Jonathan Rochkind 
> wrote:
>
> > I still like sending HTML back from my server. I guess I never got the
> > message that that was out of style, heh.
> >
> > My server application already has logic for creating HTML from templates,
> > and quite possibly already creates this exact same piece of HTML in some
> > other place, possibly for use with non-AJAX fallbacks, or some other
> > context where that snippet of HTML needs to be rendered. I prefer to
> re-use
> > this logic that's already on the server, rather than have a duplicate
> HTML
> > generating/templating system in the javascript too.  It's working fine
> for
> > me, in my use patterns.
> >
> > Now, certainly, if you could eliminate any PHP generation of HTML at all,
> > as I think Godmar is suggesting, and basically have a pure Javascript app
> > -- that would be another approach that avoids duplication of HTML
> > generating logic in both JS and PHP. That sounds fine too. But I'm still
> > writing apps that degrade if you have no JS (including for web spiders
> that
> > have no JS, for instance), and have nice REST-ish URLs, etc.   If that's
> > not a requirement and you can go all JS, then sure.  But I wouldn't say
> > that making apps that use progressive enhancement with regard to JS and
> > degrade fine if you don't have is "out of style", or if it is, it ought
> not
> > to be!
> >
> > Jonathan
> >
> >
> >
>



-- 
Nate Hill
nathanielh...@gmail.com
http://www.natehill.net


[CODE4LIB] Withdrawing "Data-Mining Repository Contents to Auto-populate Scholarly Research Repository Submission Metadata" proposal

2011-12-05 Thread Peter Murray
Mark Diggory asked the Code4LibCon program committee to withdraw his 
"Data-Mining Repository Contents to Auto-populate Scholarly Research Repository 
Submission Metadata" proposal due to a scheduling conflict will prevent him 
from presenting at the meeting in February.  That selection has been removed 
from the voting options.  Mark intends to present on that or a similar topic in 
the near future.

On behalf of the program committee,


Peter
-- 
Peter Murray
Assistant Director, Technology Services Development
LYRASIS
peter.mur...@lyrasis.org
+1 678-235-2955
 
1438 West Peachtree Street NW
Suite 200
Atlanta, GA 30309
Toll Free: 800.999.8558
Fax: 404.892.7879 
www.lyrasis.org
 
LYRASIS: Great Libraries. Strong Communities. Innovative Answers.


Re: [CODE4LIB] jQuery Ajax request to update a PHP variable

2011-12-05 Thread Godmar Back
On Mon, Dec 5, 2011 at 6:45 PM, Jonathan Rochkind  wrote:

> I still like sending HTML back from my server. I guess I never got the
> message that that was out of style, heh.
>
>
I suppose there are always some stalwart defenders of the status quo ;-)

More seriously, I think I'd like to defend my statement.

The purpose of graceful degradation is well-acknowledged - I don't think
no-JS browsers are much of a concern, but web spiders are and so are
probably ADA accessibility requirements, as well as low-bandwidth
environments.

I do not believe, however, that such situation warrant any sharing of HTML
templates. If they do, it means your app is, well, perhaps outdated in that
it doesn't make full use of today's JS features. Certainly Gmail's "basic
html version for low bandwidth environments" shares no HTML templates with
the JS main app. In Nate's case, which is a heavily JS-dependent app (he
uses various jQuery plug-ins to drive his layout, as well as qtip for
tooltips), I find it difficult to see how any degraded environment would
share any HTML with his app.

That said, I'm genuinely interested in what others are thinking/have
experienced.

Also, for expository purposes, I'd love to prototype the client-side for
Nate's app. Then we could compare the mixed PhP server/client-side AJAX
version with the pure JS app I'm suggesting.

 - Godmar


On Mon, Dec 5, 2011 at 6:45 PM, Jonathan Rochkind  wrote:

> I still like sending HTML back from my server. I guess I never got the
> message that that was out of style, heh.
>
> My server application already has logic for creating HTML from templates,
> and quite possibly already creates this exact same piece of HTML in some
> other place, possibly for use with non-AJAX fallbacks, or some other
> context where that snippet of HTML needs to be rendered. I prefer to re-use
> this logic that's already on the server, rather than have a duplicate HTML
> generating/templating system in the javascript too.  It's working fine for
> me, in my use patterns.
>
> Now, certainly, if you could eliminate any PHP generation of HTML at all,
> as I think Godmar is suggesting, and basically have a pure Javascript app
> -- that would be another approach that avoids duplication of HTML
> generating logic in both JS and PHP. That sounds fine too. But I'm still
> writing apps that degrade if you have no JS (including for web spiders that
> have no JS, for instance), and have nice REST-ish URLs, etc.   If that's
> not a requirement and you can go all JS, then sure.  But I wouldn't say
> that making apps that use progressive enhancement with regard to JS and
> degrade fine if you don't have is "out of style", or if it is, it ought not
> to be!
>
> Jonathan
>
>
>


Re: [CODE4LIB] Unwritten Rules, formerly Pandering for votes for code4lib sessions

2011-12-05 Thread Fleming, Declan
Hi - the fact that some people felt left out was part of my motivation for 
writing this a while back:

http://wiki.code4lib.org/index.php/How_to_hack_code4lib

It's not really rules, but an approach that I found helpful to getting into the 
community.

Declan

-Original Message-
From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf Of Ross 
Singer
Sent: Thursday, December 01, 2011 7:22 PM
To: CODE4LIB@LISTSERV.ND.EDU
Subject: Re: [CODE4LIB] Unwritten Rules, formerly Pandering for votes for 
code4lib sessions

I think the point of the hubbub today is trying to articulate the rule that 
should be written.

Nobody is being excluded: we make things up as they go along and anybody is 
welcome to throw in their opinion.

That said, there's over 5 years of this process already in place.  Very little 
is written, but there is a lot of momentum.  Much of it is arbitrary.  Some may 
actually be capricious.  Most is probably not even considered, though; it's a 
really informal group.

What I'm trying to say is that there are things that should be documented.
 We don't necessarily know what they are or how they should read.  If you find 
something that really should be written down, throw it out there (and be 
willing to solicit opinions, synthesize them and write them down).

-Ross.

On Thursday, December 1, 2011, Wilfred Drew  wrote:
> It is unwritten rules that lead people to feel excluded from a group.
 How can the C4L group make other feel part of the group if the "important"
rules are unwritten?  That is what makes the group appear elitist to outsiders 
or newbies.
>
> Bill Drew
> Sort of a newbie but maybe not
>
> -Original Message-
> From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf 
> Of
Bohyun Kim
> Sent: Thursday, December 01, 2011 4:24 PM
> To: CODE4LIB@LISTSERV.ND.EDU
> Subject: Re: [CODE4LIB] Unwritten Rules, formerly Pandering for votes 
> for
code4lib sessions
>
> So this was what "pandering a vote" meant all along? And I guess you 
> are
supposed to know this to count as a c4l community member? Unwritten rules 
indeed...
>
> ~Bohyun
>
>
> -Original Message-
> From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf 
> Of
Jonathan Rochkind
> Sent: Thursday, December 01, 2011 3:48 PM
> To: CODE4LIB@LISTSERV.ND.EDU
> Subject: Re: [CODE4LIB] Unwritten Rules, formerly Pandering for votes 
> for
code4lib sessions
>
> I'm still not even sure why people think the blog post violated any
unwritten rules or expectations. I agree that people kind of unreasonably raked 
the author over the coals here.
>
> I think _maybe_ under some interpretations it's borderline (some of 
> those
interpretations are those of the READERS of the blog and how they respond, 
which the author has limited control over), and DO think a splash page on 
voting with a few sentences on expectations for who votes, why, and how, would 
be a very good thing for us to have _in general_, so this is useful for 
bringing up that idea (nice idea rsinger).
>
> But as a thought experiment, let's say I jrochkind had a proposal, and
posted to my blog "Hey, if you're thinking about going to the conf, consider 
voting to help make the conf! If you're voting, please consider my proposal, 
here's why I think it's important."
>
> Would you consider that inappropriate too? If not, please elucidate 
> the
differences, and we'll be that much closer to understanding/developing 
consensual community expectations here.
>
> Right now, I think some things some of you all think are obvious are 
> far
from obvious to others, even others you assume it would be obvious to.
>
> On 12/1/2011 3:33 PM, Munson, Doris wrote:
>> As a relative newcomer to this list, I second the idea that any
offenders be contacted off list with an explanation of any unwritten rules they 
unknowingly violate.  I suggest this becomes one of c4l's unwritten rules.
>>
>>
>> Regards,
>> Doris
>>
>> Doris Munson
>> Systems/Reference Librarian
>> Eastern Washington University
>> dmun...@ewu.edu
>> 509-359-6395
>>
>> -Original Message-
>> From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf 
>> Of Karen Coyle
>> Sent: Thursday, December 01, 2011 11:56 AM
>> To: CODE4LIB@LISTSERV.ND.EDU
>> Subject: Re: [CODE4LIB] Pandering for votes for code4lib sessions
>>
>> Responding to the thread and not this specific email...
>>
>> This conversation has an unfortunate subtext of "us v. them." It is 
>> the case that c4l is a small-ish group that has a particular 
>> personality, and folks really care about that. And the c4l conference 
>> (which I only attended once) has a great feel about it of folks 
>> sharing ideas (and beer).
>>
>> The problem with that kind of chummy-ness is that it makes it hard 
>> for newcomers or folks who aren't native c4l-ers to participate, 
>> either in the conference or in the various ways that c4l-ers 
>> communicate. To then take someone to task for "violating" an 
>> unwritten rule of

Re: [CODE4LIB] jQuery Ajax request to update a PHP variable

2011-12-05 Thread Cary Gordon
AHAH!

On Mon, Dec 5, 2011 at 3:45 PM, Jonathan Rochkind  wrote:
> I still like sending HTML back from my server. I guess I never got the
> message that that was out of style, heh.
>
> My server application already has logic for creating HTML from templates,
> and quite possibly already creates this exact same piece of HTML in some
> other place, possibly for use with non-AJAX fallbacks, or some other context
> where that snippet of HTML needs to be rendered. I prefer to re-use this
> logic that's already on the server, rather than have a duplicate HTML
> generating/templating system in the javascript too.  It's working fine for
> me, in my use patterns.
>
> Now, certainly, if you could eliminate any PHP generation of HTML at all, as
> I think Godmar is suggesting, and basically have a pure Javascript app --
> that would be another approach that avoids duplication of HTML generating
> logic in both JS and PHP. That sounds fine too. But I'm still writing apps
> that degrade if you have no JS (including for web spiders that have no JS,
> for instance), and have nice REST-ish URLs, etc.   If that's not a
> requirement and you can go all JS, then sure.  But I wouldn't say that
> making apps that use progressive enhancement with regard to JS and degrade
> fine if you don't have is "out of style", or if it is, it ought not to be!
>
> Jonathan
>
>
> On 12/5/2011 6:31 PM, Godmar Back wrote:
>>
>> FWIW, I would not send HTML back to the client in an AJAX request - that
>> style of AJAX fell out of favor years ago.
>>
>> Send back JSON instead and keep the view logic client-side. Consider using
>> a library such as knockout.js. Instead of your current (difficult to
>> maintain) mix of PhP and client-side JavaScript, you'll end up with a
>> static HTML page, a couple of clean JSON services (for checked-out per
>> subject, and one for the syndetics ids of the first 4 covers), and clean
>> HTML templates.
>>
>> You had earlier asked the question whether to do things client or server
>> side - well in this example, the correct answer is to do it client-side.
>> (Yours is a read-only application, where none of the advantages of
>> server-side processing applies.)
>>
>>  - Godmar
>>
>> On Mon, Dec 5, 2011 at 6:18 PM, Nate Hill  wrote:
>>
>>> Something quite like that, my friend!
>>> Cheers
>>> N
>>>
>>> On Mon, Dec 5, 2011 at 3:10 PM, Walker, David
>>> wrote:
>>>
 I gotcha.  More information is, indeed, better. ;-)

 So, on the PHP side, you just need to grab the term from the  query
 string, like this:

  $searchterm = $_GET['query'];

 And then in your JavaScript code, you'll send an AJAX request, like:

  http://www.natehill.net/vizstuff/catscrape.php?query=Cooking

 Is that what you're looking for?

 --Dave

 -
 David Walker
 Library Web Services Manager
 California State University


 -Original Message-
 From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf Of
 Nate Hill
 Sent: Monday, December 05, 2011 3:00 PM
 To: CODE4LIB@LISTSERV.ND.EDU
 Subject: Re: [CODE4LIB] jQuery Ajax request to update a PHP variable

 As always, I provided too little information.  Dave, it's much more
 involved than that

 I'm trying to make a kind of visual browser of popular materials from
 one
 of our branches from a .csv file.

 In order to display book covers for a series of searches by keyword, I
 query the catalog, scrape out only the syndetics images, and then
>>>
>>> display 4

 of them.  The problem is that I've hardcoded in a search for 'Drawing',
 rather than dynamically pulling the correct term and putting it into the
 catalog query.

 Here's the work in process, and I believe it will only work in Chrome
 right now.
 http://www.natehill.net/vizstuff/donerightclasses.php

 I may have a solution, Jason's idea got me part way there.  I looked all
 over the place for that little snippet he sent over!

 Thanks!



 On Mon, Dec 5, 2011 at 2:44 PM, Walker, David
 wrote:

>> And I want to update 'Drawing' to be 'Cooking'  w/ a jQuery hover
>> effect on the client side then I need to make an Ajax request,
>>>
>>> correct?
>
> What you probably want to do here, Nate, is simply output the PHP
> variable in your HTML response, like this:
>
>  
>
> And then in your JavaScript code, you can manipulate the text through
> the DOM like this:
>
>  $('#foo').html('Cooking');
>
> --Dave
>
> -
> David Walker
> Library Web Services Manager
> California State University
>
>
> -Original Message-
> From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf
> Of Nate Hill
> Sent: Monday, December 05, 2011 2:09 PM
> To: CODE4LIB@LISTSERV.ND.EDU
> Subjec

Re: [CODE4LIB] Models of MARC in RDF

2011-12-05 Thread Fleming, Declan
Hi - I'll note that the mapping decisions were made by our metadata services 
(then Cataloging) group, not by the tech folks making it all work, though we 
were all involved in the discussions.  One idea that came up was to do a, 
perhaps, lossy translation, but also stuff one triple with a text dump of the 
whole MARC record just in case we needed to grab some other element out we 
might need.  We didn't do that, but I still like the idea.  Ok, it was my idea. 
 ;)

D

-Original Message-
From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf Of Esme 
Cowles
Sent: Monday, December 05, 2011 11:22 AM
To: CODE4LIB@LISTSERV.ND.EDU
Subject: Re: [CODE4LIB] Models of MARC in RDF

I looked into this a little more closely, and it turns out it's a little more 
complicated than I remembered.  We built support for transforming to MODS using 
the MODS21slim2MODS.xsl stylesheet, but don't use that.  Instead, we use custom 
Java code to do the mapping.

I don't have a lot of public examples, but there's at least one public object 
which you can view the MARC from our OPAC:

http://roger.ucsd.edu/search/.b4827884/.b4827884/1,1,1,B/detlmarc~1234567&FF=&1,0,

The public display in our digital collections site:

http://libraries.ucsd.edu/ark:/20775/bb0648473d

The RDF for the MODS looks like:


local
FVLP 222-1


ARK

http://libraries.ucsd.edu/ark:/20775/bb0648473d


Brown, Victor W
personal


Amateur Film Club of San Diego
corporate


[196-]


2005
Film and Video Library, University of California, 
San Diego, La Jolla, CA 92093-0175 
http://orpheus.ucsd.edu/fvl/FVLPAGE.HTM


reformatted digital
16mm; 1 film reel (25 min.) :; sd., col. ;


lcsh
Ranching


etc.


There is definitely some loss in the conversion process -- I don't know enough 
about the MARC leader and control fields to know if they are captured in the 
MODS and/or RDF in some way.  But there are quite a few local and note fields 
that aren't present in the RDF.  Other fields (e.g. 300 and 505) are mapped to 
MODS, but not displayed in our access system (though they are indexed for 
searching).

I agree it's hard to quantify lossy-ness.  Counting fields or characters would 
be the most objective, but has obvious problems with control characters 
sometimes containing a lot of information, and then the relative importance of 
different fields to the overall description.  There are other issues too -- 
some fields in this record weren't migrated because they duplicated 
collection-wide values, which are formulated slightly differently from the MARC 
record.  Some fields weren't migrated because they concern the physical object, 
and therefore don't really apply to the digital object.  So that really seems 
like a morass to me.

-Esme
--
Esme Cowles 

"Necessity is the plea for every infringement of human freedom. It is the  
argument of tyrants; it is the creed of slaves." -- William Pitt, 1783

On 12/3/2011, at 10:35 AM, Karen Coyle wrote:

> Esme, let me second Owen's enthusiasm for more detail if you can 
> supply it. I think we also need to start putting these efforts along a 
> "loss" continuum - MODS is already lossy vis-a-vis MARC, and my guess 
> is that some of the other MARC->RDF transforms don't include all of 
> the warts and wrinkles of MARC. LC's new bibliographic framework 
> document sets as a goal to bring along ALL of MARC (a decision that I 
> think isn't obvious, as we have already discussed here). If we say we 
> are going from MARC to RDF, how much is actually captured in the 
> transformed data set? (Yes, that's going to be hard to quantify.)
> 
> kc
> 
> Quoting Esme Cowles :
> 
>> Owen-
>> 
>> Another strategy for capturing MARC data in RDF is to convert it to MODS (we 
>> do this using the LoC MARC to MODS stylesheet: 
>> http://www.loc.gov/standards/marcxml/xslt/MARC21slim2MODS.xsl).  From there, 
>> it's pretty easy to incorporate into RDF.  There are some issues to be aware 
>> of, such as how to map the MODS XML names to predicates and how to handle 
>> elements that can appear in multiple places in the hierarchy.
>> 
>> -Esme
>> --
>> Esme Cowles 
>> 
>> "Necessity is the plea for every infringement of human freedom. It is 
>> the argument of tyrants; it is the creed of slaves." -- William Pitt, 
>> 1783
>> 
>> On 11/28/2011, at 8:25 AM, Owen Stephens wrote:
>> 
>>> It would be great to start collecting transforms together - just a 
>>> quick brain dump of some I'm aware of
>>> 
>>> MARC21 transformations
>>> Cambridge University Library - http://data.lib.cam.ac.uk - 
>>> transformation made available (in code) from same site Open 
>>> University - http://data.open.ac.uk - specific transform for 
>>> materials

Re: [CODE4LIB] jQuery Ajax request to update a PHP variable

2011-12-05 Thread Jonathan Rochkind
I still like sending HTML back from my server. I guess I never got the 
message that that was out of style, heh.


My server application already has logic for creating HTML from 
templates, and quite possibly already creates this exact same piece of 
HTML in some other place, possibly for use with non-AJAX fallbacks, or 
some other context where that snippet of HTML needs to be rendered. I 
prefer to re-use this logic that's already on the server, rather than 
have a duplicate HTML generating/templating system in the javascript 
too.  It's working fine for me, in my use patterns.


Now, certainly, if you could eliminate any PHP generation of HTML at 
all, as I think Godmar is suggesting, and basically have a pure 
Javascript app -- that would be another approach that avoids duplication 
of HTML generating logic in both JS and PHP. That sounds fine too. But 
I'm still writing apps that degrade if you have no JS (including for web 
spiders that have no JS, for instance), and have nice REST-ish URLs, 
etc.   If that's not a requirement and you can go all JS, then sure.  
But I wouldn't say that making apps that use progressive enhancement 
with regard to JS and degrade fine if you don't have is "out of style", 
or if it is, it ought not to be!


Jonathan

On 12/5/2011 6:31 PM, Godmar Back wrote:

FWIW, I would not send HTML back to the client in an AJAX request - that
style of AJAX fell out of favor years ago.

Send back JSON instead and keep the view logic client-side. Consider using
a library such as knockout.js. Instead of your current (difficult to
maintain) mix of PhP and client-side JavaScript, you'll end up with a
static HTML page, a couple of clean JSON services (for checked-out per
subject, and one for the syndetics ids of the first 4 covers), and clean
HTML templates.

You had earlier asked the question whether to do things client or server
side - well in this example, the correct answer is to do it client-side.
(Yours is a read-only application, where none of the advantages of
server-side processing applies.)

  - Godmar

On Mon, Dec 5, 2011 at 6:18 PM, Nate Hill  wrote:


Something quite like that, my friend!
Cheers
N

On Mon, Dec 5, 2011 at 3:10 PM, Walker, David
wrote:


I gotcha.  More information is, indeed, better. ;-)

So, on the PHP side, you just need to grab the term from the  query
string, like this:

  $searchterm = $_GET['query'];

And then in your JavaScript code, you'll send an AJAX request, like:

  http://www.natehill.net/vizstuff/catscrape.php?query=Cooking

Is that what you're looking for?

--Dave

-
David Walker
Library Web Services Manager
California State University


-Original Message-
From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf Of
Nate Hill
Sent: Monday, December 05, 2011 3:00 PM
To: CODE4LIB@LISTSERV.ND.EDU
Subject: Re: [CODE4LIB] jQuery Ajax request to update a PHP variable

As always, I provided too little information.  Dave, it's much more
involved than that

I'm trying to make a kind of visual browser of popular materials from one
of our branches from a .csv file.

In order to display book covers for a series of searches by keyword, I
query the catalog, scrape out only the syndetics images, and then

display 4

of them.  The problem is that I've hardcoded in a search for 'Drawing',
rather than dynamically pulling the correct term and putting it into the
catalog query.

Here's the work in process, and I believe it will only work in Chrome
right now.
http://www.natehill.net/vizstuff/donerightclasses.php

I may have a solution, Jason's idea got me part way there.  I looked all
over the place for that little snippet he sent over!

Thanks!



On Mon, Dec 5, 2011 at 2:44 PM, Walker, David
wrote:


And I want to update 'Drawing' to be 'Cooking'  w/ a jQuery hover
effect on the client side then I need to make an Ajax request,

correct?

What you probably want to do here, Nate, is simply output the PHP
variable in your HTML response, like this:

  

And then in your JavaScript code, you can manipulate the text through
the DOM like this:

  $('#foo').html('Cooking');

--Dave

-
David Walker
Library Web Services Manager
California State University


-Original Message-
From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf
Of Nate Hill
Sent: Monday, December 05, 2011 2:09 PM
To: CODE4LIB@LISTSERV.ND.EDU
Subject: [CODE4LIB] jQuery Ajax request to update a PHP variable

If I have in my PHP script a variable...

$searchterm = 'Drawing';

And I want to update 'Drawing' to be 'Cooking'  w/ a jQuery hover
effect on the client side then I need to make an Ajax request, correct?
What I can't figure out is what that is supposed to look like...
something like...

$.ajax({
  type: "POST",
  url: "myfile.php",
  data: "...not sure how to write what goes here to make it

'Cooking'..."

});

Any ideas?


--
Nate Hill
nathanielh...@gmail.com
http://www.natehill.net




--
Nate Hill
nathanielh...@gmail.com
ht

Re: [CODE4LIB] Models of MARC in RDF

2011-12-05 Thread Peter Noerr
See historical comment in text below. But, to look forward -

It seems to me that we should be able to design a model with graceful 
degradation from full MARC data element set (vocabulary if you insist) to a 
core set which allows systems to fill in what they have and, on the receiving 
end, extract what they can find. Each system can work with its own schema, if 
it must, as long as the mapping for its level of detail against whatever 
designated level of detail it wishes to accept in the exchange format is 
created first. Obviously greater levels of detail cannot be inferred from 
lesser, and so many systems would be working with less than the data they would 
like, or create locally, but that is the nature of bibliographic data - it is 
never complete, or it must be processed assuming that is the case.

Using RDF and entity modeling it should be possible to devise a (small) number 
of levels from a basic core set (akin to DC, if not semantically identical) 
through to a "2,500 attribute*" person authority record (plus the other bib 
entities), and produce pre-parsers which will massage these to what the ILS (or 
other repository/system) is comfortable with. Since the "receiving system" is 
fixed for any one installation it does not need the complexity we build into 
our fed search platforms, and converters would be largely re-usable.

So, what about a Russian doll bibliographic schema? (Who gets to decide on what 
goes in which level is for years of committee work - unemployment solved!)


* number obtained from a line count from 
http://www.loc.gov/marc/authority/ecadlist.html - so rather approximate.

> -Original Message-
> From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf Of 
> Jonathan Rochkind
> Sent: Monday, December 05, 2011 10:57 AM
> To: CODE4LIB@LISTSERV.ND.EDU
> Subject: Re: [CODE4LIB] Models of MARC in RDF
> 
> On 12/5/2011 1:40 PM, Karen Coyle wrote:
> >
> > This brings up another point that I haven't fully grokked yet: the use
> > of MARC kept library data "consistent" across the many thousands of
> > libraries that had MARC-based systems.
> 
> Well, only somewhat consistent, but, yeah.
> 
> > What happens if we move to RDF without a standard? Can we rely on
> > linking to provide interoperability without that rigid consistency of
> > data models?
> 
> Definitely not. I think this is a real issue.  There is no magic to "linking" 
> or RDF that provides
> interoperability for free; it's all about
> the vocabularies/schemata -- whether in MARC or in anything else.
> (Note different national/regional  library communities used different 
> schemata in MARC, which made
> interoperability infeasible there. Some still do, although gradually people 
> have moved to Marc21
> precisely for this reason, even when Marc21 was less powerful than the MARC 
> variant they started with).

Just a comment about the "good old days" when we had to work with USMARC, 
UKMARC, DANMARC, MAB1, AUSMARC, and so on. "interoperability infeasible" was 
not the situation. It was perfectly possible to convert records from one format 
to another - with some loss of data into the less specific format of course. 
Which meant that a "round trip" was not possible. But "major elements" were 
present in all and that meant it was practically useful to do it. We did this 
at the British Library when I was there, and we did it commercially as a 
service for OCLC (remember them?) as a commercial ILS vendor. It did involve 
specific coding, and an internal database system built to accommodate the 
variability. 

> 
> That is to say, if we just used MARC's own implicit vocabularies, but output 
> them as RDF, sure, we'd
> still have consistency, although we
> wouldn't really _gain_ much.On the other hand, if we switch to a new
> better vocabulary -- we've got to actually switch to a new better vocabulary. 
>  If it's just "whatever
> anyone wants to use", we've made it VERY difficult to share data, which is 
> something pretty darn
> important to us.
> 
> Of course, the goal of the RDA process (or one of em) was to create a new 
> schema for us to
> consistently use. That's the library community effort to maintain a common 
> schema that is more
> powerful and flexible than MARC.  If people are using other things instead, 
> apparently that failed, or
> at least has not yet succeeded.


Re: [CODE4LIB] jQuery Ajax request to update a PHP variable

2011-12-05 Thread Godmar Back
FWIW, I would not send HTML back to the client in an AJAX request - that
style of AJAX fell out of favor years ago.

Send back JSON instead and keep the view logic client-side. Consider using
a library such as knockout.js. Instead of your current (difficult to
maintain) mix of PhP and client-side JavaScript, you'll end up with a
static HTML page, a couple of clean JSON services (for checked-out per
subject, and one for the syndetics ids of the first 4 covers), and clean
HTML templates.

You had earlier asked the question whether to do things client or server
side - well in this example, the correct answer is to do it client-side.
(Yours is a read-only application, where none of the advantages of
server-side processing applies.)

 - Godmar

On Mon, Dec 5, 2011 at 6:18 PM, Nate Hill  wrote:

> Something quite like that, my friend!
> Cheers
> N
>
> On Mon, Dec 5, 2011 at 3:10 PM, Walker, David 
> wrote:
>
> > I gotcha.  More information is, indeed, better. ;-)
> >
> > So, on the PHP side, you just need to grab the term from the  query
> > string, like this:
> >
> >  $searchterm = $_GET['query'];
> >
> > And then in your JavaScript code, you'll send an AJAX request, like:
> >
> >  http://www.natehill.net/vizstuff/catscrape.php?query=Cooking
> >
> > Is that what you're looking for?
> >
> > --Dave
> >
> > -
> > David Walker
> > Library Web Services Manager
> > California State University
> >
> >
> > -Original Message-
> > From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf Of
> > Nate Hill
> > Sent: Monday, December 05, 2011 3:00 PM
> > To: CODE4LIB@LISTSERV.ND.EDU
> > Subject: Re: [CODE4LIB] jQuery Ajax request to update a PHP variable
> >
> > As always, I provided too little information.  Dave, it's much more
> > involved than that
> >
> > I'm trying to make a kind of visual browser of popular materials from one
> > of our branches from a .csv file.
> >
> > In order to display book covers for a series of searches by keyword, I
> > query the catalog, scrape out only the syndetics images, and then
> display 4
> > of them.  The problem is that I've hardcoded in a search for 'Drawing',
> > rather than dynamically pulling the correct term and putting it into the
> > catalog query.
> >
> > Here's the work in process, and I believe it will only work in Chrome
> > right now.
> > http://www.natehill.net/vizstuff/donerightclasses.php
> >
> > I may have a solution, Jason's idea got me part way there.  I looked all
> > over the place for that little snippet he sent over!
> >
> > Thanks!
> >
> >
> >
> > On Mon, Dec 5, 2011 at 2:44 PM, Walker, David 
> > wrote:
> >
> > > > And I want to update 'Drawing' to be 'Cooking'  w/ a jQuery hover
> > > > effect on the client side then I need to make an Ajax request,
> correct?
> > >
> > > What you probably want to do here, Nate, is simply output the PHP
> > > variable in your HTML response, like this:
> > >
> > >  
> > >
> > > And then in your JavaScript code, you can manipulate the text through
> > > the DOM like this:
> > >
> > >  $('#foo').html('Cooking');
> > >
> > > --Dave
> > >
> > > -
> > > David Walker
> > > Library Web Services Manager
> > > California State University
> > >
> > >
> > > -Original Message-
> > > From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf
> > > Of Nate Hill
> > > Sent: Monday, December 05, 2011 2:09 PM
> > > To: CODE4LIB@LISTSERV.ND.EDU
> > > Subject: [CODE4LIB] jQuery Ajax request to update a PHP variable
> > >
> > > If I have in my PHP script a variable...
> > >
> > > $searchterm = 'Drawing';
> > >
> > > And I want to update 'Drawing' to be 'Cooking'  w/ a jQuery hover
> > > effect on the client side then I need to make an Ajax request, correct?
> > > What I can't figure out is what that is supposed to look like...
> > > something like...
> > >
> > > $.ajax({
> > >  type: "POST",
> > >  url: "myfile.php",
> > >  data: "...not sure how to write what goes here to make it
> 'Cooking'..."
> > > });
> > >
> > > Any ideas?
> > >
> > >
> > > --
> > > Nate Hill
> > > nathanielh...@gmail.com
> > > http://www.natehill.net
> > >
> >
> >
> >
> > --
> > Nate Hill
> > nathanielh...@gmail.com
> > http://www.natehill.net
> >
>
>
>
> --
> Nate Hill
> nathanielh...@gmail.com
> http://www.natehill.net
>


Re: [CODE4LIB] jQuery Ajax request to update a PHP variable

2011-12-05 Thread Nate Hill
Something quite like that, my friend!
Cheers
N

On Mon, Dec 5, 2011 at 3:10 PM, Walker, David  wrote:

> I gotcha.  More information is, indeed, better. ;-)
>
> So, on the PHP side, you just need to grab the term from the  query
> string, like this:
>
>  $searchterm = $_GET['query'];
>
> And then in your JavaScript code, you'll send an AJAX request, like:
>
>  http://www.natehill.net/vizstuff/catscrape.php?query=Cooking
>
> Is that what you're looking for?
>
> --Dave
>
> -
> David Walker
> Library Web Services Manager
> California State University
>
>
> -Original Message-
> From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf Of
> Nate Hill
> Sent: Monday, December 05, 2011 3:00 PM
> To: CODE4LIB@LISTSERV.ND.EDU
> Subject: Re: [CODE4LIB] jQuery Ajax request to update a PHP variable
>
> As always, I provided too little information.  Dave, it's much more
> involved than that
>
> I'm trying to make a kind of visual browser of popular materials from one
> of our branches from a .csv file.
>
> In order to display book covers for a series of searches by keyword, I
> query the catalog, scrape out only the syndetics images, and then display 4
> of them.  The problem is that I've hardcoded in a search for 'Drawing',
> rather than dynamically pulling the correct term and putting it into the
> catalog query.
>
> Here's the work in process, and I believe it will only work in Chrome
> right now.
> http://www.natehill.net/vizstuff/donerightclasses.php
>
> I may have a solution, Jason's idea got me part way there.  I looked all
> over the place for that little snippet he sent over!
>
> Thanks!
>
>
>
> On Mon, Dec 5, 2011 at 2:44 PM, Walker, David 
> wrote:
>
> > > And I want to update 'Drawing' to be 'Cooking'  w/ a jQuery hover
> > > effect on the client side then I need to make an Ajax request, correct?
> >
> > What you probably want to do here, Nate, is simply output the PHP
> > variable in your HTML response, like this:
> >
> >  
> >
> > And then in your JavaScript code, you can manipulate the text through
> > the DOM like this:
> >
> >  $('#foo').html('Cooking');
> >
> > --Dave
> >
> > -
> > David Walker
> > Library Web Services Manager
> > California State University
> >
> >
> > -Original Message-
> > From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf
> > Of Nate Hill
> > Sent: Monday, December 05, 2011 2:09 PM
> > To: CODE4LIB@LISTSERV.ND.EDU
> > Subject: [CODE4LIB] jQuery Ajax request to update a PHP variable
> >
> > If I have in my PHP script a variable...
> >
> > $searchterm = 'Drawing';
> >
> > And I want to update 'Drawing' to be 'Cooking'  w/ a jQuery hover
> > effect on the client side then I need to make an Ajax request, correct?
> > What I can't figure out is what that is supposed to look like...
> > something like...
> >
> > $.ajax({
> >  type: "POST",
> >  url: "myfile.php",
> >  data: "...not sure how to write what goes here to make it 'Cooking'..."
> > });
> >
> > Any ideas?
> >
> >
> > --
> > Nate Hill
> > nathanielh...@gmail.com
> > http://www.natehill.net
> >
>
>
>
> --
> Nate Hill
> nathanielh...@gmail.com
> http://www.natehill.net
>



-- 
Nate Hill
nathanielh...@gmail.com
http://www.natehill.net


Re: [CODE4LIB] Patents and open source projects

2011-12-05 Thread Erik Hetzner
At Mon, 5 Dec 2011 23:07:08 +,
MJ Ray wrote:
> 
> Erik Hetzner 
> > 1.
> > http://www.softwarefreedom.org/podcast/2011/aug/16/Episode-0x16-Legal-Basics-for-Developers/
> > Basically, the standard advice for patents is what Mike Taylor
> > gave: ignore them. Pay attention to copyright and trademark issues
> > (as the Koha problem shows), but patents really don’t need to be
> > on your radar.
> 
> Will people please stop suggesting that PTFS's attempts to register
> Koha trademarks in various jurisdictions are somehow because of
> inattention on the part of the Koha users and developers?
>
> […]

Hi MJ,

It was my intention only to suggest that trademark issues were
something that one needs to pay attention to, not that the Koha
community had not paid attention to trademark issues. Thanks for
clarifying the issue: I was unclear.

best, Erik
Sent from my free software system .


pgpMov9whUizs.pgp
Description: PGP signature


Re: [CODE4LIB] jQuery Ajax request to update a PHP variable

2011-12-05 Thread Walker, David
I gotcha.  More information is, indeed, better. ;-)

So, on the PHP side, you just need to grab the term from the  query string, 
like this:

  $searchterm = $_GET['query'];

And then in your JavaScript code, you'll send an AJAX request, like:

  http://www.natehill.net/vizstuff/catscrape.php?query=Cooking

Is that what you're looking for?

--Dave

-
David Walker
Library Web Services Manager
California State University


-Original Message-
From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf Of Nate 
Hill
Sent: Monday, December 05, 2011 3:00 PM
To: CODE4LIB@LISTSERV.ND.EDU
Subject: Re: [CODE4LIB] jQuery Ajax request to update a PHP variable

As always, I provided too little information.  Dave, it's much more involved 
than that

I'm trying to make a kind of visual browser of popular materials from one of 
our branches from a .csv file.

In order to display book covers for a series of searches by keyword, I query 
the catalog, scrape out only the syndetics images, and then display 4 of them.  
The problem is that I've hardcoded in a search for 'Drawing', rather than 
dynamically pulling the correct term and putting it into the catalog query.

Here's the work in process, and I believe it will only work in Chrome right now.
http://www.natehill.net/vizstuff/donerightclasses.php

I may have a solution, Jason's idea got me part way there.  I looked all over 
the place for that little snippet he sent over!

Thanks!



On Mon, Dec 5, 2011 at 2:44 PM, Walker, David  wrote:

> > And I want to update 'Drawing' to be 'Cooking'  w/ a jQuery hover 
> > effect on the client side then I need to make an Ajax request, correct?
>
> What you probably want to do here, Nate, is simply output the PHP 
> variable in your HTML response, like this:
>
>  
>
> And then in your JavaScript code, you can manipulate the text through 
> the DOM like this:
>
>  $('#foo').html('Cooking');
>
> --Dave
>
> -
> David Walker
> Library Web Services Manager
> California State University
>
>
> -Original Message-
> From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf 
> Of Nate Hill
> Sent: Monday, December 05, 2011 2:09 PM
> To: CODE4LIB@LISTSERV.ND.EDU
> Subject: [CODE4LIB] jQuery Ajax request to update a PHP variable
>
> If I have in my PHP script a variable...
>
> $searchterm = 'Drawing';
>
> And I want to update 'Drawing' to be 'Cooking'  w/ a jQuery hover 
> effect on the client side then I need to make an Ajax request, correct?
> What I can't figure out is what that is supposed to look like... 
> something like...
>
> $.ajax({
>  type: "POST",
>  url: "myfile.php",
>  data: "...not sure how to write what goes here to make it 'Cooking'..."
> });
>
> Any ideas?
>
>
> --
> Nate Hill
> nathanielh...@gmail.com
> http://www.natehill.net
>



--
Nate Hill
nathanielh...@gmail.com
http://www.natehill.net


Re: [CODE4LIB] Patents and open source projects

2011-12-05 Thread MJ Ray
Erik Hetzner 
> 1. 
> http://www.softwarefreedom.org/podcast/2011/aug/16/Episode-0x16-Legal-Basics-for-Developers/
> Basically, the standard advice for patents is what Mike Taylor gave:
> ignore them. Pay attention to copyright and trademark issues (as the
> Koha problem shows), but patents really don’t need to be on your
> radar.

Will people please stop suggesting that PTFS's attempts to register
Koha trademarks in various jurisdictions are somehow because of
inattention on the part of the Koha users and developers?

Any project can always suffer from some ratbag try to register its
name as a trademark, regardless of it being a historic treasure (in
NZ, so I'm told) or in use in commerce by others before them.  That
doesn't make the ill-gotten registration valid: it should just make it
a nuisance for a short while until the rightful users gain or overturn
the ratbags' registrations.

Hell, someone tried to register "Linux" as a trademark once, didn't
they?

The alternative is to pay the protection rackets (also known as
trademark registrars) before it's a problem, rather than spend that
money creating projects that are worth defending.  Spend today, or
gamble and maybe spend tomorrow?  It's a choice.

Hope that informs,
-- 
MJ Ray (slef), member of www.software.coop, a for-more-than-profit co-op.
http://koha-community.org supporter, web and LMS developer, statistician.
In My Opinion Only: see http://mjr.towers.org.uk/email.html
Available for hire for Koha work http://www.software.coop/products/koha


Re: [CODE4LIB] jQuery Ajax request to update a PHP variable

2011-12-05 Thread Nate Hill
As always, I provided too little information.  Dave, it's much more
involved than that

I'm trying to make a kind of visual browser of popular materials from one
of our branches from a .csv file.

In order to display book covers for a series of searches by keyword, I
query the catalog, scrape out only the syndetics images, and then display 4
of them.  The problem is that I've hardcoded in a search for 'Drawing',
rather than dynamically pulling the correct term and putting it into the
catalog query.

Here's the work in process, and I believe it will only work in Chrome right
now.
http://www.natehill.net/vizstuff/donerightclasses.php

I may have a solution, Jason's idea got me part way there.  I looked all
over the place for that little snippet he sent over!

Thanks!



On Mon, Dec 5, 2011 at 2:44 PM, Walker, David  wrote:

> > And I want to update 'Drawing' to be 'Cooking'  w/ a jQuery hover effect
> > on the client side then I need to make an Ajax request, correct?
>
> What you probably want to do here, Nate, is simply output the PHP variable
> in your HTML response, like this:
>
>  
>
> And then in your JavaScript code, you can manipulate the text through the
> DOM like this:
>
>  $('#foo').html('Cooking');
>
> --Dave
>
> -
> David Walker
> Library Web Services Manager
> California State University
>
>
> -Original Message-
> From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf Of
> Nate Hill
> Sent: Monday, December 05, 2011 2:09 PM
> To: CODE4LIB@LISTSERV.ND.EDU
> Subject: [CODE4LIB] jQuery Ajax request to update a PHP variable
>
> If I have in my PHP script a variable...
>
> $searchterm = 'Drawing';
>
> And I want to update 'Drawing' to be 'Cooking'  w/ a jQuery hover effect
> on the client side then I need to make an Ajax request, correct?
> What I can't figure out is what that is supposed to look like... something
> like...
>
> $.ajax({
>  type: "POST",
>  url: "myfile.php",
>  data: "...not sure how to write what goes here to make it 'Cooking'..."
> });
>
> Any ideas?
>
>
> --
> Nate Hill
> nathanielh...@gmail.com
> http://www.natehill.net
>



-- 
Nate Hill
nathanielh...@gmail.com
http://www.natehill.net


Re: [CODE4LIB] jQuery Ajax request to update a PHP variable

2011-12-05 Thread Cary Gordon
I can't tell what you are requesting via Ajax;
I am not sure what you want to hover over; and
I am not sure what the relationship of "drawing", "cooking" and hovering is.

I am guessing that $searchterm gets submitted to a search, but does it
get submitted via ajax? What happens then?

Thanks,

Cary

On Mon, Dec 5, 2011 at 2:08 PM, Nate Hill  wrote:
> If I have in my PHP script a variable...
>
> $searchterm = 'Drawing';
>
> And I want to update 'Drawing' to be 'Cooking'  w/ a jQuery hover effect on
> the client side then I need to make an Ajax request, correct?
> What I can't figure out is what that is supposed to look like... something
> like...
>
> $.ajax({
>  type: "POST",
>  url: "myfile.php",
>  data: "...not sure how to write what goes here to make it 'Cooking'..."
> });
>
> Any ideas?
>
>
> --
> Nate Hill
> nathanielh...@gmail.com
> http://www.natehill.net



-- 
Cary Gordon
The Cherry Hill Company
http://chillco.com


Re: [CODE4LIB] Pander Bear goes to Seattle (humor)

2011-12-05 Thread David Uspal
MichaelDoran++

-Original Message-
From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf Of Doran, 
Michael D
Sent: Monday, December 05, 2011 5:00 PM
To: CODE4LIB@LISTSERV.ND.EDU
Subject: [CODE4LIB] Pander Bear goes to Seattle (humor)

[cid:image001.png@01CCB365.D6B867E0]



For the *real* Pander Bear comix (written by Ken Eppstein and drawn by Bob Ray 
Starker), go to http://www.nixcomics.com/blog/?pageId=131.



And just to be clear -- I'm tweaking the *controversy* not the original blog 
post ( which appeared to fairly innocuous).



-- Michael



# Michael Doran, Systems Librarian

# University of Texas at Arlington

# 817-272-5326 office

# 817-688-1926 mobile

# do...@uta.edu

# http://rocky.uta.edu/doran/


Re: [CODE4LIB] jQuery Ajax request to update a PHP variable

2011-12-05 Thread Walker, David
> And I want to update 'Drawing' to be 'Cooking'  w/ a jQuery hover effect 
> on the client side then I need to make an Ajax request, correct?

What you probably want to do here, Nate, is simply output the PHP variable in 
your HTML response, like this:

  

And then in your JavaScript code, you can manipulate the text through the DOM 
like this:

  $('#foo').html('Cooking');

--Dave

-
David Walker
Library Web Services Manager
California State University


-Original Message-
From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf Of Nate 
Hill
Sent: Monday, December 05, 2011 2:09 PM
To: CODE4LIB@LISTSERV.ND.EDU
Subject: [CODE4LIB] jQuery Ajax request to update a PHP variable

If I have in my PHP script a variable...

$searchterm = 'Drawing';

And I want to update 'Drawing' to be 'Cooking'  w/ a jQuery hover effect on the 
client side then I need to make an Ajax request, correct?
What I can't figure out is what that is supposed to look like... something 
like...

$.ajax({
  type: "POST",
  url: "myfile.php",
  data: "...not sure how to write what goes here to make it 'Cooking'..."
});

Any ideas?


--
Nate Hill
nathanielh...@gmail.com
http://www.natehill.net


Re: [CODE4LIB] jQuery Ajax request to update a PHP variable

2011-12-05 Thread Jonathan Rochkind

I'm not sure what you're trying to do makes sense.

You'd have to write some PHP code to receive the AJAX request and use it 
to update the variable. There's nothing in PHP that will do this 
automatically.


However, since, I believe, PHP variables are usually only 'in scope' for 
the context of the request, I'm not sure _what_ variable you are trying 
to update.  I suppose you could update a session variable, and that 
might make sense.  But it doens't sound like that's what you're trying 
to do it sounds like what you're trying to do is something 
fundamentally impossible.


But if you have a PHP script with "$searchterm = 'drawing';" in it, then 
that statement gets executed (setting $searchterm to 'drawing') every 
time the PHP script gets executed. Which is every time a request is 
received that executes that PHP script. It doesn't matter what some 
_other_ request did, and an AJAX request is just some other request. You 
can't use AJAX to change your source code. (Or, I suppose, there would 
be SOME crazy way to do that, but you definitely definitely wouldn't 
want to!).


On 12/5/2011 5:08 PM, Nate Hill wrote:

If I have in my PHP script a variable...

$searchterm = 'Drawing';

And I want to update 'Drawing' to be 'Cooking'  w/ a jQuery hover effect on
the client side then I need to make an Ajax request, correct?
What I can't figure out is what that is supposed to look like... something
like...

$.ajax({
   type: "POST",
   url: "myfile.php",
   data: "...not sure how to write what goes here to make it 'Cooking'..."
});

Any ideas?




[CODE4LIB] jQuery Ajax request to update a PHP variable

2011-12-05 Thread Nate Hill
If I have in my PHP script a variable...

$searchterm = 'Drawing';

And I want to update 'Drawing' to be 'Cooking'  w/ a jQuery hover effect on
the client side then I need to make an Ajax request, correct?
What I can't figure out is what that is supposed to look like... something
like...

$.ajax({
  type: "POST",
  url: "myfile.php",
  data: "...not sure how to write what goes here to make it 'Cooking'..."
});

Any ideas?


-- 
Nate Hill
nathanielh...@gmail.com
http://www.natehill.net


Re: [CODE4LIB] Patents and open source projects

2011-12-05 Thread Cary Gordon
At the Drupal project, we actively work to inform folks of license
infringement, and monitor released derivative works -- mostly modules
-- to insure that they are including the GPL v2 license.

We also work with the Software Freedom Law Center to address issues
that are beyond our scope.

Drupal is, to the degree possible, trademarked, but neither the Drupal
Association, nor Dries Buytaert, Drupal's creator hold any patents on
its functionality.

Thanks,

Cary

On Mon, Dec 5, 2011 at 9:53 AM, Erik Hetzner  wrote:
> At Mon, 5 Dec 2011 08:17:26 -0500,
> Emily Lynema wrote:
>>
>> A colleague approached me this morning with an interesting question that I
>> realized I didn't know how to answer. How are open source projects in the
>> library community dancing around technologies that may have been patented
>> by vendors? We were particularly wondering about this in light of open
>> source ILS projects, like Kuali OLE, Koha, and Evergreen. I know OLE is
>> still in the early stages, but did the folks who created Koha and Evergreen
>> ever run into any problems in this area? Have library vendors historically
>> pursued patents for their systems and solutions?
>
> I don’t think libraries have a particularly unique perspective on
> this: most free/open source software projects have the same issues
> with patents.
>
> The Software Freedom Law Center has some basic information about these
> issues. As I recall, the “Legal basics for developers” edition of
> their podcasts is useful [1], but other editions may be helpful as
> well.
>
> Basically, the standard advice for patents is what Mike Taylor gave:
> ignore them. Pay attention to copyright and trademark issues (as the
> Koha problem shows), but patents really don’t need to be on your
> radar.
>
> best, Erik
>
> 1. 
> http://www.softwarefreedom.org/podcast/2011/aug/16/Episode-0x16-Legal-Basics-for-Developers/
>
> Sent from my free software system .
>



-- 
Cary Gordon
The Cherry Hill Company
http://chillco.com


Re: [CODE4LIB] Models of MARC in RDF

2011-12-05 Thread Esme Cowles
I looked into this a little more closely, and it turns out it's a little more 
complicated than I remembered.  We built support for transforming to MODS using 
the MODS21slim2MODS.xsl stylesheet, but don't use that.  Instead, we use custom 
Java code to do the mapping.

I don't have a lot of public examples, but there's at least one public object 
which you can view the MARC from our OPAC:

http://roger.ucsd.edu/search/.b4827884/.b4827884/1,1,1,B/detlmarc~1234567&FF=&1,0,

The public display in our digital collections site:

http://libraries.ucsd.edu/ark:/20775/bb0648473d

The RDF for the MODS looks like:


local
FVLP 222-1


ARK

http://libraries.ucsd.edu/ark:/20775/bb0648473d


Brown, Victor W
personal


Amateur Film Club of San Diego
corporate


[196-]


2005
Film and Video Library, University of California, 
San Diego, La Jolla, CA 92093-0175 
http://orpheus.ucsd.edu/fvl/FVLPAGE.HTM


reformatted digital
16mm; 1 film reel (25 min.) :; sd., col. ;


lcsh
Ranching


etc.


There is definitely some loss in the conversion process -- I don't know enough 
about the MARC leader and control fields to know if they are captured in the 
MODS and/or RDF in some way.  But there are quite a few local and note fields 
that aren't present in the RDF.  Other fields (e.g. 300 and 505) are mapped to 
MODS, but not displayed in our access system (though they are indexed for 
searching).

I agree it's hard to quantify lossy-ness.  Counting fields or characters would 
be the most objective, but has obvious problems with control characters 
sometimes containing a lot of information, and then the relative importance of 
different fields to the overall description.  There are other issues too -- 
some fields in this record weren't migrated because they duplicated 
collection-wide values, which are formulated slightly differently from the MARC 
record.  Some fields weren't migrated because they concern the physical object, 
and therefore don't really apply to the digital object.  So that really seems 
like a morass to me.

-Esme
--
Esme Cowles 

"Necessity is the plea for every infringement of human freedom. It is the
 argument of tyrants; it is the creed of slaves." -- William Pitt, 1783

On 12/3/2011, at 10:35 AM, Karen Coyle wrote:

> Esme, let me second Owen's enthusiasm for more detail if you can supply it. I 
> think we also need to start putting these efforts along a "loss" continuum - 
> MODS is already lossy vis-a-vis MARC, and my guess is that some of the other 
> MARC->RDF transforms don't include all of the warts and wrinkles of MARC. 
> LC's new bibliographic framework document sets as a goal to bring along ALL 
> of MARC (a decision that I think isn't obvious, as we have already discussed 
> here). If we say we are going from MARC to RDF, how much is actually captured 
> in the transformed data set? (Yes, that's going to be hard to quantify.)
> 
> kc
> 
> Quoting Esme Cowles :
> 
>> Owen-
>> 
>> Another strategy for capturing MARC data in RDF is to convert it to MODS (we 
>> do this using the LoC MARC to MODS stylesheet: 
>> http://www.loc.gov/standards/marcxml/xslt/MARC21slim2MODS.xsl).  From there, 
>> it's pretty easy to incorporate into RDF.  There are some issues to be aware 
>> of, such as how to map the MODS XML names to predicates and how to handle 
>> elements that can appear in multiple places in the hierarchy.
>> 
>> -Esme
>> --
>> Esme Cowles 
>> 
>> "Necessity is the plea for every infringement of human freedom. It is the
>> argument of tyrants; it is the creed of slaves." -- William Pitt, 1783
>> 
>> On 11/28/2011, at 8:25 AM, Owen Stephens wrote:
>> 
>>> It would be great to start collecting transforms together - just a quick 
>>> brain dump of some I'm aware of
>>> 
>>> MARC21 transformations
>>> Cambridge University Library - http://data.lib.cam.ac.uk - transformation 
>>> made available (in code) from same site
>>> Open University - http://data.open.ac.uk - specific transform for materials 
>>> related to teaching, code available at 
>>> http://code.google.com/p/luceroproject/source/browse/trunk%20luceroproject/OULinkedData/src/uk/ac/open/kmi/lucero/rdfextractor/RDFExtractor.java
>>>  (MARC transform is in libraryRDFExtraction method)
>>> COPAC - small set of records from the COPAC Union catalogue - data and 
>>> transform not yet published
>>> Podes Projekt - LinkedAuthors - documentation at 
>>> http://bibpode.no/linkedauthors/doc/Pode-LinkedAuthors-Documentation.pdf - 
>>> 2 stage transformation firstly from MARC to FRBRized version of data, then 
>>> from FRBRized data to RDF. These linked from documentation
>>> Podes Project - LinkedNonFiction - documentation at 
>>> http://bibpode.no/link

Re: [CODE4LIB] Models of MARC in RDF

2011-12-05 Thread Jonathan Rochkind

On 12/5/2011 1:40 PM, Karen Coyle wrote:


This brings up another point that I haven't fully grokked yet: the use 
of MARC kept library data "consistent" across the many thousands of 
libraries that had MARC-based systems. 


Well, only somewhat consistent, but, yeah.

What happens if we move to RDF without a standard? Can we rely on 
linking to provide interoperability without that rigid consistency of 
data models?


Definitely not. I think this is a real issue.  There is no magic to 
"linking" or RDF that provides interoperability for free; it's all about 
the vocabularies/schemata -- whether in MARC or in anything else.   
(Note different national/regional  library communities used different 
schemata in MARC, which made interoperability infeasible there. Some 
still do, although gradually people have moved to Marc21 precisely for 
this reason, even when Marc21 was less powerful than the MARC variant 
they started with).


That is to say, if we just used MARC's own implicit vocabularies, but 
output them as RDF, sure, we'd still have consistency, although we 
wouldn't really _gain_ much.On the other hand, if we switch to a new 
better vocabulary -- we've got to actually switch to a new better 
vocabulary.  If it's just "whatever anyone wants to use", we've made it 
VERY difficult to share data, which is something pretty darn important 
to us.


Of course, the goal of the RDA process (or one of em) was to create a 
new schema for us to consistently use. That's the library community 
effort to maintain a common schema that is more powerful and flexible 
than MARC.  If people are using other things instead, apparently that 
failed, or at least has not yet succeeded.


Re: [CODE4LIB] Models of MARC in RDF

2011-12-05 Thread Karen Coyle
Thanks, Matt. The RDF here uses BIBO and DC, and is therefore  
definitely lossy. I'm not saying that's a bad thing -- loss from MARC  
may well be the only way to save library metadata. What I would be  
interested in learning is how one decides WHAT to lose. I"m also  
curious to know if any folks have started out with a minimum set of  
elements from MARC and then later pulled in other dat elements that  
were needed.


This brings up another point that I haven't fully grokked yet: the use  
of MARC kept library data "consistent" across the many thousands of  
libraries that had MARC-based systems. What happens if we move to RDF  
without a standard? Can we rely on linking to provide interoperability  
without that rigid consistency of data models?


kc

Quoting Matt Machell :


Owen mentioned the Talis (now Capita Libraries) model. If you'd like
more info on that, our tech lead put his slides from the Linked Data
in Libraries event online at:

http://www.slideshare.net/philjohn/linked-library-data-in-the-wild-8593328

They cover some of the work we've done, approaches taken and some of
the challenges (in both released and as yet unreleased versions of the
model).

For some context, the Prism data model is used on some 70 or so
University and local authority catalogues in the UK and Ireland. Any
item in those catalogues can be accessed as linked data by appending
the appropriate file type (.nt, .rdf or .json) to the item uris (or
.rss to search uris), for example:
http://catalogue.library.manchester.ac.uk/items/3013197.rdf

Hope that's helpful.

Matt Machell

Senior Developer, Prism 3 - Capita LIbraries

Me: http://eclecticdreams.com
Work: http://blogs.talis.com/prism





--
Karen Coyle
kco...@kcoyle.net http://kcoyle.net
ph: 1-510-540-7596
m: 1-510-435-8234
skype: kcoylenet


Re: [CODE4LIB] Patents and open source projects

2011-12-05 Thread Erik Hetzner
At Mon, 5 Dec 2011 08:17:26 -0500,
Emily Lynema wrote:
> 
> A colleague approached me this morning with an interesting question that I
> realized I didn't know how to answer. How are open source projects in the
> library community dancing around technologies that may have been patented
> by vendors? We were particularly wondering about this in light of open
> source ILS projects, like Kuali OLE, Koha, and Evergreen. I know OLE is
> still in the early stages, but did the folks who created Koha and Evergreen
> ever run into any problems in this area? Have library vendors historically
> pursued patents for their systems and solutions?

I don’t think libraries have a particularly unique perspective on
this: most free/open source software projects have the same issues
with patents.

The Software Freedom Law Center has some basic information about these
issues. As I recall, the “Legal basics for developers” edition of
their podcasts is useful [1], but other editions may be helpful as
well.

Basically, the standard advice for patents is what Mike Taylor gave:
ignore them. Pay attention to copyright and trademark issues (as the
Koha problem shows), but patents really don’t need to be on your
radar.

best, Erik

1. 
http://www.softwarefreedom.org/podcast/2011/aug/16/Episode-0x16-Legal-Basics-for-Developers/
Sent from my free software system .


pgpzvpOQEi9B4.pgp
Description: PGP signature


Re: [CODE4LIB] Patents and open source projects

2011-12-05 Thread Eric Lease Morgan
On Dec 5, 2011, at 9:47 AM, Mike Taylor wrote:

> …since 90% of what a typical programmer does
> during a day IS independent reinvention
> of techniques.

Yes, I concur, most certainly. I often say to myself, "I've really only written 
about three or four original computer programs. All the hundreds of others are 
simply variations on themes."

-- 
Eric Lease Morgan


Re: [CODE4LIB] Patents and open source projects

2011-12-05 Thread McDonald, Robert H.
Just a quick reply about Kuali OLE and Kuali projects in general. All
Kuali Foundation apps are released under the Educational Community License
v 2.0 - http://www.opensource.org/licenses/ecl2.php.

Kuali OLE and many other Kuali apps use a firm called Black Duck to make
sure we are current with all open source licensing that occurs within our
codebase - they perform professinoal services audits of the code -
http://www.blackducksoftware.com/services/professional-services

One of the reasons that OLE joined in with the Kuali Foundation is because
of the intellectual property support that is available to Kuali projects
in terms of making sure that all of our code remains open under the ECLv2
and that others can not just take the code and try to assert IP rights
over it.

I hope this answers your questions about Kuali OLE.

Thanks

Robert
 
**
Robert H. McDonald
Associate Dean for Library Technologies and Digital Libraries
Associate Director, Data to Insight Center-Pervasive Technology Institute
Executive Director, Kuali OLE
Indiana University
Herman B Wells Library 234
1320 East 10th Street
Bloomington, IN 47405
Phone: 812-856-4834
Email: rob...@indiana.edu
Skype/GTalk: rhmcdonald
AIM/MSN: rhmcdonald1






On 12/5/11 8:17 AM, "Emily Lynema"  wrote:

>A colleague approached me this morning with an interesting question that I
>realized I didn't know how to answer. How are open source projects in the
>library community dancing around technologies that may have been patented
>by vendors? We were particularly wondering about this in light of open
>source ILS projects, like Kuali OLE, Koha, and Evergreen. I know OLE is
>still in the early stages, but did the folks who created Koha and
>Evergreen
>ever run into any problems in this area? Have library vendors historically
>pursued patents for their systems and solutions?


[CODE4LIB] RUSA MARS Hot Topics in Electronic Reference Discussion Group - Last call for participation

2011-12-05 Thread Val Waldron
Last call for participation!  Deadline extended to December 7th.

(Apologies for duplication)



The RUSA MARS Hot Topics in Electronic Reference Discussion Group would
like to know how your library is:



Reaching out to patrons in virtual ways: old school successes and new
initiatives.



Has your academic, public, or “special” library revamped an existing
service or created something new and exciting to enhance and improve
library services in an overwhelmingly electronic environment?  Let’s talk
about: virtual reference and instruction, library presence in social
networks & software programs (i.e. Facebook, Linkedin), and new models of
staffing and communication (i.e. smartphones, VoIP) that are transforming
the traditional reference universe.  If so, we’re seeking panelists for our
upcoming program at ALA Midwinter 2012: “Reaching out to patrons in virtual
ways: old school successes and new initiatives.”



Presentations are in panel format, but are relatively informal and are
intended to jumpstart discussion among the attendees.  The program will be
held Saturday, January 21st from 1:30 – 3:30 at the ALA Midwinter
conference in Dallas, TX (room and exact location TBD).  If you are not
able to attend in person but can participate virtually on the panel, this
can be accommodated.  If you are interested in serving as a panelist,
please contact Christa Fowler (lcfow...@sar.usf.edu) with a short (<400
words) summary or proposal by Wednesday, December 7, 2011. The committee
will notify all potential speakers by December 9th.


We’re flexible on the final number for our panel, but expect 3-4 speakers
with 15-20 minutes each.



 _

Valerie Waldron

Computer & Video Game Archive Manager

Art, Architecture & Engineering Library
University of Michigan

 


Re: [CODE4LIB] Patents and open source projects

2011-12-05 Thread Mike Taylor
On 5 December 2011 14:34, Eric Lease Morgan  wrote:
> IMHO, the idea of intellectual "property" on things that can be duplicated 
> without any sort of degradation -- like software -- is absolutely absurd and 
> bogus. --Eric Morgan

No argument there.

But arguably even worse is that independent reinvention is no defence
when it comes to patent infringement.  Which is crazy, since 90% of
what a typical programmer does during a day IS independent reinvention
of techniques.

-- Mike.


Re: [CODE4LIB] Patents and open source projects

2011-12-05 Thread Eric Lease Morgan
IMHO, the idea of intellectual "property" on things that can be duplicated 
without any sort of degradation -- like software -- is absolutely absurd and 
bogus. --Eric Morgan


Re: [CODE4LIB] Patents and open source projects

2011-12-05 Thread Kaplan, Deborah
Emily Lynema 
> how are open source projects in the
> library community dancing around technologies that may have been patented
> by vendors?

There's a parallel question: how are for-profit companies addressing the 
multiple violations of FLOSS licenses inherent in contemporary code? There's 
probably GPL code in most for-profit software products these days, used in ways 
that violate the licenses. (There's probably other FLOSS licenses used in 
license-violating ways all over the place as well, but GPL is one of the most 
restrictive and is very common.)

Overly broad patents are a problem with the system. Violations of the GPL are 
simply a ubiquitous problem involving a not-so-problematic license.

We really are in a big dance of mutually assured destruction, as Mike said.

-Deborah


Re: [CODE4LIB] Patents and open source projects

2011-12-05 Thread MJ Ray
Emily Lynema 
> A colleague approached me this morning with an interesting question that I
> realized I didn't know how to answer. How are open source projects in the
> library community dancing around technologies that may have been patented
> by vendors? We were particularly wondering about this in light of open
> source ILS projects, like Kuali OLE, Koha, and Evergreen. I know OLE is
> still in the early stages, but did the folks who created Koha and Evergreen
> ever run into any problems in this area? Have library vendors historically
> pursued patents for their systems and solutions?

In short: bad patent laws are a problem, but not unique to FOSS.

I think we're dancing around technologies that may have patents in the
same ways that all developers do: basically, we avoid famously
patented tech and try to use well-known libraries as much as possible
(safety in numbers, at the cost of chilling some innovation), but
hoping that we don't pass too close to any submarine patents.

The worrying one I've seen recently has been 3M and SIP.  It took
quite a few rounds on the SIP 3 message boards before (as I understand
it) we were assured that no patents held by 3M would necessarily be
infringed by implementing SIP 3.

3M accused Envisionware but I don't remember the detail or know the
current situation.

I probably ask more questions about this than many, even though I work
for a software developer and am fortunate to work in a country where
mathematics - which includes software - is explicitly excluded from
patents.

Hope that informs,
-- 
MJ Ray (slef), member of www.software.coop, a for-more-than-profit co-op.
http://koha-community.org supporter, web and LMS developer, statistician.
In My Opinion Only: see http://mjr.towers.org.uk/email.html
Available for hire for Koha work http://www.software.coop/products/koha


Re: [CODE4LIB] Patents and open source projects

2011-12-05 Thread Mike Taylor
On 5 December 2011 13:17, Emily Lynema  wrote:
> A colleague approached me this morning with an interesting question that I
> realized I didn't know how to answer. How are open source projects in the
> library community dancing around technologies that may have been patented
> by vendors? We were particularly wondering about this in light of open
> source ILS projects, like Kuali OLE, Koha, and Evergreen. I know OLE is
> still in the early stages, but did the folks who created Koha and Evergreen
> ever run into any problems in this area? Have library vendors historically
> pursued patents for their systems and solutions?

Of course this is a problem that goes much further than just
open-source library software.  Informed consensus seems to be that
EVERY non-trivial program, whether open or closed, violates multiple
software patents, and that this is pretty much inevitable due to the
absurdly broad nature of many such patents.  There is not much that
anyone can do about this (beyond campaigning for patent reform).  The
whole software world gets by due to a combination of Mutually Assured
Destruction (all the big companies hold massive patent arsenals that
they say they won't use in a first strike) and general Not Being Evil,
but the existence commerical patent trolls damages this balance.

Linus Torvalds is among many who very expressly do not do any research
on what patents their software might infringe on, because damages are
much higher if it can be shown that you *knowingly* violated a patent.

Really, the whole system is not merely broken but completely twisted.

-- Mike.


[CODE4LIB] Patents and open source projects

2011-12-05 Thread Emily Lynema
A colleague approached me this morning with an interesting question that I
realized I didn't know how to answer. How are open source projects in the
library community dancing around technologies that may have been patented
by vendors? We were particularly wondering about this in light of open
source ILS projects, like Kuali OLE, Koha, and Evergreen. I know OLE is
still in the early stages, but did the folks who created Koha and Evergreen
ever run into any problems in this area? Have library vendors historically
pursued patents for their systems and solutions?


Re: [CODE4LIB] Models of MARC in RDF

2011-12-05 Thread Matt Machell
Owen mentioned the Talis (now Capita Libraries) model. If you'd like
more info on that, our tech lead put his slides from the Linked Data
in Libraries event online at:

http://www.slideshare.net/philjohn/linked-library-data-in-the-wild-8593328

They cover some of the work we've done, approaches taken and some of
the challenges (in both released and as yet unreleased versions of the
model).

For some context, the Prism data model is used on some 70 or so
University and local authority catalogues in the UK and Ireland. Any
item in those catalogues can be accessed as linked data by appending
the appropriate file type (.nt, .rdf or .json) to the item uris (or
.rss to search uris), for example:
http://catalogue.library.manchester.ac.uk/items/3013197.rdf

Hope that's helpful.

Matt Machell

Senior Developer, Prism 3 - Capita LIbraries

Me: http://eclecticdreams.com
Work: http://blogs.talis.com/prism