Find Resource

This feature of the app helps with browsing for a resource that is present on the HydroShare database. The option works very smoothly. This feature is brought about by the python api of HydroShare and what goes into the process is that we fetch for the resources in the HydroShare database using the fetch files button and then we can view them by just typing the subject with closest relevance to the resource that we are searching for.

Finding a resource is one of the most useful features of this app.

Step 1: Enter in your username and password

In the boxes below you enter your HydroShare username and its password. If you have to make an HydroShare account, click here.

Step 2: Type in your subject of the resource you are looking for

Step 3: Browse for the resource you are looking for

The resources related to the above mentioned subject will appear in the scroll below. Depending on the number of the resources with respect to the subject in HydroShare, it could take seconds to a few minutes:

The resource id is what you could use in other features of the app like adding a file or downloading a file or even deleting a file from a resource.

Resource id of the selected Resource:

To try this on your own, you can use the code snippet below, or download the full javascript file that is used in this demonstration.

    
      auth = HydroShareAuthBasic(username= username, password= password)
      hs = HydroShare(auth=auth)

      result = hs.resources(subject=viewr)

      resourceList = []
      for resource in result:
          resourceList.append(resource)

      return HttpResponse(json.dumps(resourceList))