[ List Archives Home ] [ Thread index for 2008 ] [ Date index for 2008 ] [ Author index for 2008 ]


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Adam,

You saved me a lot of time to code it myself. Thanks. It was nice
meeting you at IUG. I got a lot of ideas from your session; for
instance, add ids in the bib_display to better control the look. Great
job!


Don


-----Original Message-----
From: innopac-bounces at innopacusers dot org
[mailto:innopac-bounces at innopacusers dot org] On Behalf Of Deb Bergeron
Sent: Wednesday, May 23, 2007 5:11 PM
To: IUG INNOPAC List
Subject: Re: [IUG] Something 'fun' for your Friday -- send
catalogrecordsviaSMS

Adam,

Thank you soooo much!!! I removed the 'short +' so only the title
appears. Wowee!

deb

Adam Brin wrote:
> Deb,
> Okay, think I see the problem now, it depends on which
bookmarking
> service you use. I added a new line to the script which removes
'newlines'.
> I think this should solve the issue:
>
> The line is:
>
> addthis_title = addthis_title.replace(/[\n\t]/ig,"");
>
> //and goes right after addthis_title = short +...
>
> The full script is updated here:
>
> http://trilogy.brynmawr.edu/trico/sys/socialbookmarking.html
>
> - adam
>
> _____________________________________
> Tri-Colleges Systems Coordinator
> Bryn Mawr | Haverford | Swarthmore
> 610.526.5294
>
>
> -----Original Message-----
> From: innopac-bounces at innopacusers dot org
> [mailto:innopac-bounces at innopacusers dot org] On Behalf Of Adam Brin
> Sent: Wednesday, May 23, 2007 2:59 PM
> To: 'IUG INNOPAC List'
> Subject: RE: [IUG] Something 'fun' for your Friday -- send
> catalogrecordsviaSMS
>
> Deb,
> When I replace the code in your catalog with mine (see attached)
it
> seems to work fine. It might be there's a caching issue? But on the
> bookmark page, the title is:
>
> "CLICnet: : Addressing test anxiety in a high-stakes environment :
> strategies for classrooms and schools / Gregory J. Cizek, Samantha S.
Burg.
> "
>
> - adam
> _____________________________________
> Tri-Colleges Systems Coordinator
> Bryn Mawr | Haverford | Swarthmore
> 610.526.5294
>
>
> -----Original Message-----
> From: innopac-bounces at innopacusers dot org
> [mailto:innopac-bounces at innopacusers dot org] On Behalf Of Deb Bergeron
> Sent: Wednesday, May 23, 2007 1:31 PM
> To: IUG INNOPAC List
> Subject: Re: [IUG] Something 'fun' for your Friday -- send
> catalogrecordsviaSMS
>
> Adam,
>
> Thanks! I added the code, but I can't get the title to show up. I
> changed 'Tripod' to 'CLICnet' and that's what displays, which links
> directly to the record. How can I get the title to display?
>
> Here's my copied code from you:
>
> <!-- AddThis Bookmark Button BEGIN -->
> <a href="http://www.addthis.com/bookmark.php";
> onclick="bookmarkThis();return false" target="_blank">
> <img src="http://s5.addthis.com/button1-bm.gif"; width="125"
> height="16" border="0" alt="AddThis Social Bookmark Button"
> /></a>
> <script type="text/javascript"
> src="http://s5.addthis.com/js/widget.php?v=10";></script>
>
> <script type="text/javascript">
> var addthis_pub = 'odewahn';
> var short = "CLICnet: "; // short title
> function bookmarkThis() {
> addthis_url=document.getElementById("recordnum");
> addthis_title=document.title;
> try { // try.s allow us to do something and fail
> // without impacting the user
> var debug =0;
> var tr = document.getElementsByTagName('TR'); // get the
rows
> for every table on the page
> for(i = 0; i < tr.length; i++) {
> var x=tr[i].getElementsByTagName('TD'); // for each row,
get
> all of the cells
> if (x.length == 2 && x[0].innerHTML == "Title") { // if I
> have 2 cells one with the title
> addthis_title = short +
> x[1].innerHTML.replace(/(<([^>]+)>)/ig,""); // get the title
and
> strip all tags
> if (debug > 0) alert('found link: ' + addthis_title); //
if
> debugging, show the title
> }
> }
> } catch (e) {}
>
>
> return addthis_click (this);
> }
> </script>
> <!-- AddThis Bookmark Button END -->
>
> Adam Brin wrote:
>
>> Deb,
>> I believe that this code should give you what you're looking
for:
>>
>> http://trilogy.brynmawr.edu/trico/sys/socialbookmarking.html
>>
>> I put the code in a HTML page so it doesn't get 'mangled' by email.
I've
>> added in code that should search for the 'title' and add it. Note it
may
>>
> not
>
>> work in multi-lingual systems.
>>
>> - adam
>> _____________________________________
>> Tri-Colleges Systems Coordinator
>> Bryn Mawr | Haverford | Swarthmore
>> 610.526.5294
>>
>> -----Original Message-----
>> From: innopac-bounces at innopacusers dot org
>> [mailto:innopac-bounces at innopacusers dot org] On Behalf Of Deb Bergeron
>> Sent: Wednesday, May 23, 2007 11:24 AM
>> To: IUG INNOPAC List
>> Subject: Re: [IUG] Something 'fun' for your Friday -- send
>> catalogrecordsviaSMS
>>
>> Don and Bob,
>>
>> I added the following js change on the Bib_display.html page, but it
>> doesn't work. Did either of you get the ADDTHIS button to actually
save
>> the record and not the library name?
>>
>> Here's my code:
>>
>> <!-- AddThis Bookmark Button BEGIN -->
>> <a href="http://www.addthis.com/bookmark.php"; onclick="addthis_url
=
>> document.getElementByID('recordnum'); addthis_title = 'REPLACE THIS
TEXT
>> WITH BOOK TITLE'; return addthis_click(this);" target="_blank"><img
>> src="http://s5.addthis.com/button1-bm.gif"; width="125" height="16"
>> border="0" alt="AddThis Social Bookmark Button" /></a> <script
>> type="text/javascript">var addthis_pub = 'daberge';</script><script
>> type="text/javascript"
>> src="http://s5.addthis.com/js/widget.php?v=10";></script>
>> <!-- AddThis Bookmark Button END -->
>>
>> You can view it in action at clicnet.clic.edu:2082. I did a search
for
>> 'frogs.'
>>
>> Thanks for any help on this.
>>
>> deb
>>
>> Zhou, Don wrote:
>>
>>
>>> Bob,
>>>
>>> Thanks for your suggestion. I will check it out. I put it out for
our
>>> reference librarians who did a presentation on social book-marking,
so I
>>> did not do a thorough testing. Plus, it is still beta.
>>>
>>>
>>> On a different note, I would recommend you for the most helpful
person
>>> on the list in terms of webOPAC. I think Corey and the steering
>>> committee should think of giving out some awards for you for the
>>> upcoming IUG [might be too late, but not a bad idea for next year].
I
>>> have personally benefited so much from your help.
>>>
>>> Second, anybody?
>>>
>>> Don Zhou
>>> William Mitchell College of Law
>>>
>>>
>>>
>>>
>>> -----Original Message-----
>>> From: innopac-bounces at innopacusers dot org
>>> [mailto:innopac-bounces at innopacusers dot org] On Behalf Of Bob Duncan
>>> Sent: Monday, May 07, 2007 10:01 AM
>>> To: IUG INNOPAC List
>>> Subject: RE: [IUG] Something 'fun' for your Friday -- send
>>> catalogrecordsviaSMS
>>>
>>> At 03:45 PM 05/04/2007, Don wrote:
>>>
>>>
>>>
>>>> Here is a neat stuff I did for our beta: you can social bookmark a
bib
>>>> using del.icio.us or other programs. To see it,
>>>>
>>>> Come here: http://library.wmitchell.edu:2082/
>>>>
>>>> Do a search for anything
>>>>
>>>> Pull up the full record. You will see the icon.
>>>>
>>>> This one takes only a few minutes to set up.
>>>>
>>>>
>>>>
>>> This is really slick; thanks for pointing it out. One little
>>> problem with the default set up though---the script passes the URL
of
>>> the window as the URL for the bookmark, and since WebOPAC window
URLs
>>> typically are not persistent/durable, most bookmarks won't be any
>>> good for long. If you edit the AddThis.com-supplied code slightly
>>> you can get the record number URL to be passed instead. I realize
>>> these URLs have some issues with scoped catalogs, but I think a
>>> bookmark is better off with this URL than the window URL.
>>>
>>> To use the recordnum URL, replace:
>>>
>>> onclick="addthis_url = location.href;
>>>
>>> ...with:
>>>
>>> onclick="addthis_url =
document.getElementById('recordnum');
>>>
>>>
>>> And because the document title is always going to be something
>>> generic like the name of your library, I'd be inclined to replace:
>>>
>>> addthis_title = document.title;
>>>
>>> ...with something along the lines of:
>>>
>>> addthis_title = 'REPLACE THIS TEXT WITH BOOK TITLE';
>>>
>>> (Although I'm not sure which is worse---multiple bookmarks with the
>>> title "REPLACE THIS TEXT WITH BOOK TITLE" or multiple bookmarks with

>>> the title "Lafyette College Libraries".)
>>>
>>> Bob Duncan
>>>
>>>
>>> ~!~!~!~!~!~!~!~!~!~!~!~!~
>>> Robert E. Duncan
>>> Systems Librarian
>>> Editor of IT Communications
>>> Lafayette College
>>> Easton, PA 18042
>>> duncanr at lafayette dot edu
>>> http://www.library.lafayette.edu/
>>>
>>>
>>> --
>>> This message was distributed through the Innovative Users Group
INNOPAC
>>> list
>>> Public replies: INNOPAC at innopacusers dot org
>>> Update your subscription options:
>>> http://innopacusers.org/mailman/listinfo/innopac
>>>
>>>
_______________________________________________________________________
>>> This email has been scanned for all viruses.
>>>
>>>
_______________________________________________________________________
>>> This email has been scanned for all viruses.
>>>
>>> --
>>> This message was distributed through the Innovative Users Group
INNOPAC
>>>
>>>
>> list
>>
>>
>>> Public replies: INNOPAC at innopacusers dot org
>>> Update your subscription options:
>>>
>>>
>> http://innopacusers.org/mailman/listinfo/innopac
>>
>>
>>>
>>>
>>>
>> --- StripMime Report -- processed MIME parts ---
>> multipart/mixed
>> multipart/alternative
>> text/plain (text body -- kept)
>> text/html
>> text/x-vcard
>> ---
>> --
>> This message was distributed through the Innovative Users Group
INNOPAC
>>
> list
>
>> Public replies: INNOPAC at innopacusers dot org
>> Update your subscription options:
>> http://innopacusers.org/mailman/listinfo/innopac
>>
>> --
>> This message was distributed through the Innovative Users Group
INNOPAC
>>
> list
>
>> Public replies: INNOPAC at innopacusers dot org
>> Update your subscription options:
>>
> http://innopacusers.org/mailman/listinfo/innopac
>
>>
>>
>
>
> --- StripMime Report -- processed MIME parts ---
> multipart/mixed
> multipart/alternative
> text/plain (text body -- kept)
> text/html
> text/x-vcard
> ---
> --
> This message was distributed through the Innovative Users Group
INNOPAC list
> Public replies: INNOPAC at innopacusers dot org
> Update your subscription options:
> http://innopacusers.org/mailman/listinfo/innopac
>
>
> --- StripMime Report -- processed MIME parts ---
> multipart/mixed
> text/plain (text body -- kept)
> text/html
> ---
> --
> This message was distributed through the Innovative Users Group
INNOPAC list
> Public replies: INNOPAC at innopacusers dot org
> Update your subscription options:
> http://innopacusers.org/mailman/listinfo/innopac
>
> --
> This message was distributed through the Innovative Users Group
INNOPAC list
> Public replies: INNOPAC at innopacusers dot org
> Update your subscription options:
http://innopacusers.org/mailman/listinfo/innopac
>


--- StripMime Report -- processed MIME parts ---
multipart/mixed
multipart/alternative
text/plain (text body -- kept)
text/html
text/x-vcard
---
--
This message was distributed through the Innovative Users Group INNOPAC
list
Public replies: INNOPAC at innopacusers dot org
Update your subscription options:
http://innopacusers.org/mailman/listinfo/innopac

_______________________________________________________________________
This email has been scanned for all viruses.

_______________________________________________________________________
This email has been scanned for all viruses.