More URL options for venues

TalkNew features

Join LibraryThing to post.

More URL options for venues

This topic is currently marked as "dormant"—the last message is more than 90 days old. You can revive it by posting a reply.

1timspalding
Edited: Sep 21, 2009, 5:29 pm

In advance of the new "Get it now" page, we're going to be moving library- and bookstore-related URLs into the LibraryThing Local venue system. We're also beefing up what sorts of URLs are available.

The result is a rather more daunting, but also more powerful, venue form:



The new options will, when filled in, allow us to link to sites outside of LibraryThing more effectively. You'll also notice a link to a venue's favicon, and another to it's Twitter name. Needless to say, we don't think everyone's going to know what those are.

Note: After I do a little cleaning, I'm going to dump the IndieBound data we have into the new fields.

2suitable1
Sep 21, 2009, 5:30 pm

What is MAGICNUMBER?

3timspalding
Sep 21, 2009, 5:32 pm

Okay, someone help me to explain this. I mean that, for example, the way to get an ISBN page on LibraryThing is to do...

http:// www.librarything.com/isbn/MAGICNUMBER

4justjim
Edited: Sep 21, 2009, 6:51 pm

I think MAGICNUMBER is to replace the literal text that would be fed to the URI. eg If I wanted to find a particular ISBN on library thing you could type into the address bar of your browser

http:// www.librarything.com/isbn/9781400044511

without the space between http:// and the www.

and librarything would find it for you.

If you come across another site that lets you look for that ISBN like this

http:// www.somesite.com.au/etc/lib/Book Numbers/9781400044511

you would enter it in the above system as follows....

http:// www.somesite.com.au/etc/lib/Book Numbers/MAGICNUMBER

Hope I didn't just muddy the waters even more?

5lorax
Sep 21, 2009, 6:58 pm

Does this mean that, if we've entered data for libraries into the old Buy/Borrow/Swap feature, we should re-enter it into the corresponding Local venues? Or will there be some sort of mapping done for venues that currently exist in both places?

Also, while this is great, I'm still concerned about the implied inability to use centralized sources like the Library of Congress or Worldcat to look up bibliographic data, if libraries are now going to be entirely moved into Local. Earlier you seemed to have come around to the "keep bibliographic data available" viewpoint, or at least willing to talk, so I'm just hoping to keep it on the radar screen.

6justjim
Edited: Sep 21, 2009, 8:30 pm

To ensure that my guesses in #4 were right, I put info into Readings. I did the searches (which are the same for ISBN, Title etc) and the favicon.

Is that the way they should be done?

Note to others: I discovered that if you click on the favicon to the left of the address bar in Firefox (3.5.3) then click on More information" and "Media" you will often find the URI of the favicon.

7rsterling
Edited: Sep 21, 2009, 8:50 pm

Question about catalog URLs: In a big library system with multiple branches, often the catalog by default is for the whole library system. So, I'm looking at the case of the Los Angeles Public Library system. It's possible to restrict the search to only one particular branch, though. Should the catalog URL on Local be for the main catalog (i.e. the whole system) or restricted to the branch library, if possible?

PS, I'm not sure it even is possible to get a stable URL for the branch catalog only, in this case, but hypothetically...?

8timspalding
Sep 21, 2009, 10:10 pm

Also, while this is great, I'm still concerned about the implied inability to use centralized sources like the Library of Congress or Worldcat to look up bibliographic data, if libraries are now going to be entirely moved into Local. Earlier you seemed to have come around to the "keep bibliographic data available" viewpoint, or at least willing to talk, so I'm just hoping to keep it on the radar screen.

Yes, we're going to have multiple categories of links. If it's a real library or bookstore, it should have it's data entered there. Right now, we have libraries entered into Buy Borrow Swap, with no link to the local data. That's weird and loses us all sorts of value.

To ensure that my guesses in #4 were right, I put info into Readings. I did the searches (which are the same for ISBN, Title etc) and the favicon.

Right. Without checking the URLs, it looks you did everything right.

Note to others: I discovered that if you click on the favicon to the left of the address bar in Firefox (3.5.3) then click on More information" and "Media" you will often find the URI of the favicon.

Wow. Nice trick. I didn't know that. I had looked int he HTML, which is not, admittedly, something everyone can or will do.

So, does anyone have a better way to explain the MAGICNUMBER thing?

9jjmcgaffey
Sep 21, 2009, 11:25 pm

I think messages 3 and 4 explain MAGICNUMBER quite well.

10lilithcat
Sep 21, 2009, 11:45 pm

> 4

Hope I didn't just muddy the waters even more?

Too muddy even for crawfish.

11justjim
Sep 22, 2009, 2:05 am

#9 Thanks
#10 McKinley Morganfield likes it that way!

12lilithcat
Sep 22, 2009, 8:49 am

> 11

But can he explain Magicnumber in a way that makes it understandable?

13vaneska
Sep 22, 2009, 8:54 am

9: To some, perhaps :( I haven't a clue what it's talking about.

v

14readafew
Sep 22, 2009, 10:21 am

12 > "MAGICNUMBER" is just a placeholder. It gives LT an easy way to programmaticly identify where to place the ISBN, with out having to list ALL the different ISBN possibilities.

15SylviaC
Sep 22, 2009, 12:24 pm

>14 readafew:
Now THAT explanation I can understand. (more or less)

16lampbane
Sep 22, 2009, 1:28 pm

I find it faintly hilarious that PortConMaine is the example given above. O_o

17jjwilson61
Sep 22, 2009, 4:35 pm

14> In that case something like "Use the text MAGICNUMBER in the place of the actual ISBN. You might also consider replacing MAGICNUMBER with something like ISBNGOESHERE.

18readafew
Sep 22, 2009, 4:44 pm

17 > Ahhh! but the ISBN IS a magic number...

;)

19aethercowboy
Sep 22, 2009, 5:13 pm

>17 jjwilson61:.

MAGICNUMBER is also used as a replacement for Title and Keyword, though, which makes it more general purpose than something more ISBN-specific. Thus, LT coders only have to do a single grep, and then replace it with whatever the pertinent data is.

And, as we all know, letters, which will usually comprise Titles and Keywords, are, at the heart of computers, numbers as well (and, to boot, some ISBNs have X's in 'em). Thus, MAGICNUMBER is not a misnomer.

20jjwilson61
Sep 22, 2009, 11:16 pm

Well, it doesn't have to be a misnomer to be confusing and if you're surfacing the word to ordinary users then it ought to be clear.

But you seem to know a lot about the internals of LT, aethercowboy, are you employed by Tim, and if you are why don't you have an L next to your name?

21SchanleyMedia
Sep 22, 2009, 11:41 pm

>19 aethercowboy:

Now you've gone and casually thrown "grep" about. And they thought MAGICNUMBER was hard to explain to noncoders? ;)

Seriously, this sort of thing does need hint text, but having a good HelpThing page linked when it goes live would also help tremendously. Examples work wonders but they don't fit below the boxes in gray.

22justjim
Sep 23, 2009, 1:18 am

I grok grep, maybe that's why some people didn't understand #4?

23aethercowboy
Sep 23, 2009, 9:22 am

>21 SchanleyMedia:/22.

I dream in regular expressions. I don't just drink 'em.

I probably would have been tempted to explain it like (in Perl):

$url =~ s/MAGICNUMBER/$isbn/g;


or something. Now, of course, this would only work for single ISBNs. It'd be more complex for multiple ISBNs and word sets (you'd have to add another s/\s+/+/g; to the mix for those!)

Maybe someone needs to HelpThing this, if not already done. And maybe someone who can speak to hoi polloi, and not just speak Geek.

24klarusu
Sep 23, 2009, 9:34 am

I'm not a coder but the whole MAGICNUMBER thing made sense to me at the outset. It does what it says on the tin, doesn't it? Unless I'm getting it wrong. You just take the, for example, ISBN part out of the URL and replace it with the phrase 'MAGICNUMBER' (obviously without the apostrophes). Or am I being a bit of simpleton and misunderstanding completely? I speak no geek but it seems clear.

25aethercowboy
Sep 23, 2009, 10:12 am

>24 klarusu:.

No, that's an accurate description.

26Edward
Edited: Sep 26, 2009, 3:26 pm

For the "Multiple ISBNs?" field, would it be feasible to replace the drop-down list with a text box that could be used to specify an arbitrary separator? I know at least one library catalogue that can search for multiple ISBNs if they're separated by the word " OR ".

27timspalding
Edited: Sep 26, 2009, 4:24 pm

Give me one. I'll look into it. I suspect this method only works once a session has been inaugurated, but I'm game to hear otherwise.

28Edward
Edited: Sep 26, 2009, 5:46 pm

Here's a search on the Oxford University Library Services catalogue using a collection of ISBNs from different editions of Twilight:

http://solo.ouls.ox.ac.uk/primo_library/libweb/action/search.do?fn=search&ct...

It's not a very pretty URL, but it does seem to work even if I start a new browser session.

29Edward
Sep 26, 2009, 5:51 pm

Sorry, I can't seem to enter a long URL into a Talk post, but I've added the relevant URL (using MAGICNUMBER) to the venue page for the Bodleian Library.

30timspalding
Sep 26, 2009, 6:06 pm

Can you try putting it in

http://tinyurl.com/

and posting that?

31Edward
Sep 26, 2009, 6:11 pm

32quasar
Nov 16, 2009, 3:52 am

Cool. Though annoyingly the URLs my local library uses are hideously ugly and more importantly longer than the librarything system allows.

Would a URL shortener work? or for that matter how long do url shortened urls stay around for?

33timspalding
Nov 16, 2009, 3:55 am

Don't use a URL shortener. Shoot me your library's main homepage. It probably has a short form which our library people know.

34quasar
Nov 16, 2009, 4:03 am

35aethercowboy
Edited: Nov 17, 2009, 5:43 pm

Tim!

I decomposed the URL string for any given MARC record for Harris County, TX public libraries, which will list all branches and the availability of a given book, if you're looking for another set of libraries to integrate with.

http://newcatalog.hcpl.net/FullRecord.ashx?hreciid=%7clibrary%2fmarc%2fdynix-har...

Of course, replace MAGICNUMBER with the MARC number.

Unfortunately, I was unable to discover any way to break it down by branch, or to get DIRECTLY to a record via ISBN. :(

36caseydurfee
Nov 17, 2009, 9:39 pm

You can do this:

http://newcatalog.hcpl.net/?q=1598450239

but that gives you search results for the ISBN; it doesn't take you directly to that item. (By MARC number, aethercowboy means the accession number, which is going to be different for every library system, so we can't use it to link to stuff in a general way.)

37aethercowboy
Nov 18, 2009, 9:58 am

>36 caseydurfee:.

Yeah, I added that to my local HCPL branch's venue (with the branch= option too!), 'cause that was the best I could do.

Thanks for breaking down MARCs for me. I thought they were some magic ISBN-parallel. Shows what I know about library science!