You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 54 Next »

Summary

Project

DSpace ClientUI built on RESTful API

Student

Vibhaj Rajan

Mentors

Technologies

DSpace REST
JavaScript jQuery FireSpark

Proposal

Melange

Repository

https://github.com/tr4n2uil/restclient

Demo

http://ec2-50-16-74-56.compute-1.amazonaws.com:8080/restclient/

Notes

jQuery
DSpace deployment on Amazon EC2

Requirements

  1. Client run interface
  2. Attractive look and feel
  3. Easy to customize

Functional Specifications

Features to be supported

  1. Respository Browsing
  2. Repository Manipulation
  3. Content Searching
  4. Statistics
  5. Administration

Customizations to be supported

  1. Stylesheets (CSS)
  2. Layout
  3. Themes
  4. Internationalization

Project Timeline

(tick)

Ready

(plus)

Base done, Improvement phase

(thumbs up)

In Progress

Before May 24

  1. Obtain access to :
    • (tick) Wiki
    • (tick) Project repository
  2. (tick) Download, build and install local DSpace instance
  3. (tick) Download, build and install DSpace REST module
  4. (tick) Test and verify the installation
  5. (tick) Go through the functionality of DSpace and DSpace REST API
  6. (tick) Compare possible JavaScript UI frameworks -- Ext JS preferred

Mark: I would like to see a bit more dialog with Bojan concerning the REST API contracts and migration to Spring, mainly, are we happy with these API contracts and using them for the students project, or do we need to consider some possible changes int he API to adopt to using Spring REST instead of Entity Broker. And if so, is there a timeline for providing those changes in scope of the 1.8 release?

Vibhaj: Confirmed that the possible migration shall not affect the REST interface and hence RestClient project.

May 25 - June 15

  1. (thumbs up) Get familiar with DSpace REST API
    1. collections, communities, items and bitstreams
      • create
      • (tick) view
      • (tick) edit
      • (tick) delete
    2. users and groups
      • (tick) view
    3. search
    4. generating statistics
  2. Decide the JavaScript Library to be used by discussing with the DSpace community: jQuery [decided by community]

  3. (plus) Learn the jQuery JavaScript Library
    • (tick) Selectors
    • (tick) Actions and Methods
    • (tick) Events
    • (thumbs up) UI Widgets
  4. (plus) Design client run FireSpark framework supporting JavaScript UI for RESTful (JSON) services
  5. (plus) Design generic Services and Workflows in FireSpark
  6. (thumbs up) Plan these extensions for RestClient
    • (plus) RESTUI.Resource.Load Workflow
    • (plus) RESTUI.Resource.Edit Workflow
    • (thumbs up) RESTUI.Resource.Delete Workflow
    • (thumbs up) ParseItemMetadata helper

June 15 - July 10

  1. (plus) Implement extensions (Services and Workflows) to FireSpark in RESTClient to provide support for :
    1. Repository Browsing
      • Communities
        • (plus) All
        • (plus) Single
        • (plus) Subcommunities
        • (plus) Recent Submissions
        • Sort
      • Collections
        • (plus) All
        • (plus) Single
        • Sort
      • Items
        • (plus) All
        • (plus) Single
        • (thumbs up) Read Metadata
      • Bitstreams
        • (plus) Download

July 11 - July 15

  1. (plus) GSoC Mid Term Evaluations

July 15 - July 31

  1. (thumbs up) Implement extensions (Services and Workflows) to FireSpark in RESTClient to provide support for :
    1. Repository Manupulation
      • Communities
        • (plus) Edit
        • (thumbs up) Delete
      • Collections
        • (plus) Edit
        • (thumbs up) Delete
    2. Content Searching
    3. Administration
      • Users
        • (plus) Login
        • (thumbs up) All
        • (thumbs up) Single
      • Groups
        • (thumbs up) All
        • (thumbs up) Single
    4. Statistics
      • Reports
      • Charts and Visualization

August 1 - August 15

  1. Enhancing the look and feel
  2. Look into and improve scope for customizations
    • Stylesheets (CSS)
    • Layout
    • Themes
    • Internationalization (jQuery support required)
  3. Improve the architecture of RESTClient and FireSpark
  4. Testing
  5. Complete Documentation
  6. Final Improvements

Recent Screenshots 

Issues / Problems

1. [ 04 Jun 2011 ] I am not getting the community logo using the URL /communities/{id}/logo

Solved : /bitstream/{community.logo.id}/receive

2. [ 05 Jun 2011 ] While working with REST module, I found that after making many requests while testing for some time, I get the following exception and then the module does not give correct results for further requests. Kindly look into the issue and inform me if the error is occurring due to some mistake from my side.

org.postgresql.util.PSQLException: This statement has been closed.
        at org.postgresql.jdbc2.AbstractJdbc2Statement.checkClosed(AbstractJdbc2Statement.java:2424)
        at org.postgresql.jdbc2.AbstractJdbc2Statement.setInt(AbstractJdbc2Statement.java:1147)
        at org.apache.commons.dbcp.DelegatingPreparedStatement.setInt(DelegatingPreparedStatement.java:120)
        at org.apache.commons.dbcp.DelegatingPreparedStatement.setInt(DelegatingPreparedStatement.java:120)
        at org.apache.commons.dbcp.DelegatingPreparedStatement.setInt(DelegatingPreparedStatement.java:120)
        at org.dspace.storage.rdbms.DatabaseManager.loadParameters(DatabaseManager.java:1558)
        at org.dspace.storage.rdbms.DatabaseManager.queryTable(DatabaseManager.java:223)
        at org.dspace.storage.rdbms.DatabaseManager.querySingleTable(DatabaseManager.java:366)
        at org.dspace.storage.rdbms.DatabaseManager.findByUnique(DatabaseManager.java:514)
        at org.dspace.storage.rdbms.DatabaseManager.find(DatabaseManager.java:476)
        at org.dspace.eperson.Group.find(Group.java:684)
        at org.dspace.content.Collection.groupFromColumn(Collection.java:1315)
        at org.dspace.content.Collection.<init>(Collection.java:134)
        at org.dspace.content.Collection.findAll(Collection.java:319)
        at org.dspace.rest.providers.CollectionsProvider.getEntities(CollectionsProvider.java:229)
        at org.sakaiproject.entitybus.impl.EntityBrokerManagerImpl.internalGetEntities(EntityBrokerManagerImpl.java:550)
        at org.sakaiproject.entitybus.impl.EntityBrokerManagerImpl.getEntitiesData(EntityBrokerManagerImpl.java:402)
        at org.sakaiproject.entitybus.rest.EntityHandlerImpl.handleEntityAccess(EntityHandlerImpl.java:563)
        at org.sakaiproject.entitybus.util.servlet.DirectServlet.dispatch(DirectServlet.java:186)
        at org.sakaiproject.entitybus.util.servlet.DirectServlet.handleRequest(DirectServlet.java:157)
        at org.sakaiproject.entitybus.util.servlet.DirectServlet.service(DirectServlet.java:130)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:562)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:395)
        at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:306)
        at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:323)
        at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1719)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
INFO: EntityEncodingManager: No entities to format (json) and output for ref (/collections)
WARN Could not process entity: /collections/2 (404)[null]: Attempted to access an entity URL path (/collections/2.json) for an entity (/collections/2) that does not exist
  • No labels