wiki:Drupal/SocialBookmarking

Social Bookmarking Component

one of the OrganikComponents

The purpose of this component is to provide a way for the creation and shared management of bookmarks that link to information artefacts. This component was implemented from the beginning as a part of OrganiK.

The Social Bookmarking creates a new content type in the environment of Drupal. This new content type can be subsequently managed using the provisions of the platform for creation, management and presentation of bookmarks. The content type contains 3 fields: Title, Notes and Link where the link is the URL of the artefact stored. Additionally views and blocks have been created that are used for the presentation of the bookmarks found in the system. If needed, the system administrator can easily create customised views and blocks for this purpose.

The Social Bookmarking component also includes a bookmarklet, as an easy way to add new information. The bookmarklet is a small application stored as the URL of a bookmark that can be used in a web browser. This bookmarklet is written in JavaScript? and is cooperating with existing modules of Drupal (Prepopulate module) in order to provide a way to bookmark items to OrganiK while surfing the web without interrupting the current work flow.

Make a new bookmark with this "address":

javascript:dr='http://hermes.epd.ece.ntua.gr/drupal_svn/';pa='?';u=document.location.href;t=document.title.replace(/\|/g,'::');s2=''+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);s2=s2.replace(/[\n\r\t]/g,'%20');void(window.open(dr+'node/add/social-bookmarking'+pa+'edit[title]='+encodeURIComponent(t)+'&edit[body_filter][body]='+encodeURIComponent(s2)+'&edit[URL]='+encodeURIComponent(u),'_blank','width=900,height=500,status=yes,resizable=yes,scrollbars=yes'));

In the above figure, the OrganiK bookmarklet creates a new resource utilising the title and the content of the page as presented in Mozilla Firefox.

People

KostasChristidis

Code

Last modified 7 years ago Last modified on 07/21/10 11:10:32

Attachments (1)

Download all attachments as: .zip