I was able to modify the theme_biblio_long function to dynamically generate a hyperlink call number relating to where the book would be shelved. Demo: go to each of these links and click on the Call Number hyperlink:
https://www.stanford.edu/group/cubberley/node/329
https://www.stanford.edu/group/cubberley/node/217
https://www.stanford.edu/group/cubberley/node/2019
https://www.stanford.edu/group/cubberley/node/2391
https://www.stanford.edu/group/cubberley/node/2075 )
I'd be happy to share my code for this if there's interest, but it's pretty specialized and tailored to our particular situation (I will post it in this issue once I get a chance to clean it up a touch).
But it got me thinking that it would be a great feature to have a form in the bibio admin interface that creates this functionality based on user input. Whattya think?
Comments
Comment #1
john bickar commentedOK, below is the relevant section of code:
Comment #2
rjerome commentedIndeed this is somewhat specific to your application, but I have been giving some thought to generalizing the linking of various fields (author, title, keyword, publisher, etc.) to other resources. You have some serious logic involved you your case, so I'm not sure how you could capture this in a form, but certainly simpler cases shouldn't be too much of a problem.
By the way, you don't need the call the check_plain() inside your calls to l() since this is done in the l() function anyway.
Ron.
Comment #3
john bickar commentedOne of the risks of pursuing this would be that of feature bloat. Biblio does what it does well, and trying to turn it into something it's not (e.g., an OPAC) may be barking up the wrong tree. Thanks for giving it some consideration. It's working for me based on the above modifications, so unless there's a general clamor for it, it probably wouldn't be worth the effort.
Thanks for the tip on the l() function. I'm a PHP hack; I typically can do just enough to get something working, so it's good to have knowledgeable input.
Comment #4
janusman commentedShouldn't this be done from another module via hook_nodeapi() ?
http://api.drupal.org/api/function/hook_nodeapi/6
Comment #5
Fred.E.Webber commentedThanks for all the good work on this module.
I think it would be great to have the call numbers linked to the specific reference that are added to the bottom of the page. The call numbers can be wrapped in a local-referencing hyperlink such as,
<a href="#bib_001"><span hovertip="reference1">[1]</span></a>,
then a "named" anchor can be wrapped around the specific reference, for example,
<a name="bib_001">Study of Impact to Tibiae....</a>
Some of the pages my client has have dozens, sometimes hundreds of references; it can get pretty ugly scanning through all that to find reference #47.
While I'm at it, I'd also like to also suggest that hovering the mouse over the call number could result in a floating window that provides a mini-but-clickable version of the reference. Something like a more advanced version of a "title" attribute to a anchor tag or "help text".
Comment #6
liam morlandThis version is no longer maintained. If this issue is still relevant to the Drupal 7 version, please re-open and provide details.