From: Filipe MS B. (UA) <fs...@ua...> - 2011-09-28 16:51:53
|
Hi! Have it up & running, although 1. it's using some "shortcuts" out of the VuFind's framework [mysql access] and I am afraid I haven't had the time to adapt it meanwhile (in my wish list -- to upload it to VuFind's JIRA), although, as mentioned with Demian some days ago, after Luke shared his feedback patch, could re-use parts of this last; 2. it's identical to Marmot's (http://opac.marmot.org) implementation (jquery [doesn't require reload the page after voting] / average patron rating / number of votes), but without displaying the distribution of votes (5 stars > x votes, 4 stars > y votes, ...); could be implemented, though, as the DB as the values stored; 3. doesn't require the user to be logged in. We are in just about to do the STP of our ILS (Aleph), so I guess after that (mid-October) could try to reserve some time to adapt it. Meanwhile, would like to show it running, but the server is still in staging so only accessible within our computer center. I design it for default theme and in VF1.2 adapted it to blueprint. I have the first fully documented, but not this last (I think is a minor issue, using jQuery JavaScript Library included in blueprint theme, instead of a downloaded one for that purpose [jquery-1.5.2.min.js]). I hope to have the time meanwhile to check that out and update the "pacth" and I'll share it with you ASAP (even with the "shortcuts"), so that you have an idea (although fully functional without the need to change it to get it working). Basically it is something like: 1. change web\interface\themes\<theme>\RecordDrivers\Index\*core.tpl ** *to show the stars / ratings; 2. new web\interface\themes\<theme>\js\*ratings.js * include that handles user actions (mouseover / clicks) and shows the results; 3. new web\interface\plugins\*function**.*ratings*.php * that handles mysql reads and writes and does the necessary math to show average patron rating / number of votes Apologies for the technical bits and bytes to all non-technical members out there... All the best from Portugal, Filipe On Wed, Sep 28, 2011 at 4:37 PM, Demian Katz <dem...@vi...>wrote: > I think there are a couple of institutions that have implemented this, so > hopefully one will be willing to share code. If not, I would recommend > looking at the way tags currently work -- implementing this is probably a > matter of adding a new table, writing code to save ratings (which could > resemble the current tag saving code) and then writing the logic to > calculate an average rating based on the contents of the new table. You > might be able to adapt Luke's feedback patch ( > http://vufind.org/jira/browse/VUFIND-276) for the UI element to display > five-star controls. > > I hope this is somewhat helpful -- let me know if you need more details on > anything. > > - Demian > > > -----Original Message----- > > From: Stephanie Funk [mailto:ste...@gm...] > > Sent: Wednesday, September 28, 2011 11:25 AM > > To: vuf...@li... > > Subject: [VuFind-General] How to integrate a rating system in VuFind > > > > > > I like to integrate a 5 star rating system in my VuFind-Installation. > > Is there an instruction anywhere, or could anybody explain how to do > > this > > who made it already? > > > > Thanks for help! > > -- > > View this message in context: http://old.nabble.com/How-to-integrate-a- > > rating-system-in-VuFind-tp32549364p32549364.html > > Sent from the vufind-general mailing list archive at Nabble.com. > > > > > > ----------------------------------------------------------------------- > > ------- > > All the data continuously generated in your IT infrastructure contains > > a > > definitive record of customers, application performance, security > > threats, fraudulent activity and more. Splunk takes this data and makes > > sense of it. Business sense. IT sense. Common sense. > > http://p.sf.net/sfu/splunk-d2dcopy1 > > _______________________________________________ > > VuFind-General mailing list > > VuF...@li... > > https://lists.sourceforge.net/lists/listinfo/vufind-general > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2dcopy1 > _______________________________________________ > VuFind-General mailing list > VuF...@li... > https://lists.sourceforge.net/lists/listinfo/vufind-general > Filipe Manuel S. Bento :: http://about.me/filipeb :: sTIC - Serviços de Tecnologias de Informação e Comunicação aSGI – Área de Sistemas e Gestão de Informação Universidade de Aveiro | Campus Universitário Santiago | 3810-193 AVEIRO Suporte Técnico: sti...@ua... / Telf: +351 234 370099 / Ext: 22299 Geral/Administrativo: st...@ua... / Telf: +351 234 372469 / Ext: 2225 |