Theses and diplomas
:: services/theses module

This module allows you to access information on theses, their authors and supervisors. It also allows you to search for theses.

Currently, this module is pretty simple. More features may be added if needed. Contact us!

A note for USOS developers: This module "flattens" the representations of four USOS tables into two simpler, dynamically rendered "joint entities" (see attached image). We believe that this representation is better suited for a public API and that all differences between actual USOS entities can be expressed with additional dynamic attributes (e.g. the "type" field of the thesis entity).

Methods

search Search for theses.
search_history_affect Add a thesis to search history.
theses Get information on multiple theses.
thesis Get information on a single thesis.
user Get theses-related information on a given user.
users Get theses-related information on multiple users.
Consumer: required Token: optional Scopes: n/a SSL: not required
URLs of the methods are hidden, because this installation is the mother server.
Click here for the list of all public USOS API installations.

Search for theses matching the given query and/or filters.

By default, this method will search among all types of theses. If you'd like to search only in a limited subset of them, then try using some of the optional parameters.

USOS API supports personalized search results. For example, it may display certain items higher in the results, based on personal user preferences and connections. You should include Access Tokens in your requests in order to make use of these features. For best results, you should also use the search_history_affect method.

lang required

A code of the preferred language ("pl" or "en"). It may influence the order and other properties of the returned matches (in particular, the language used in the match field).

fields optional

Default value: items[match|thesis[type|id|title]]|next_page

A selector of result fields you are interested in. The selector may contain any subset of fields, which are described in the returns section.

query optional

Default value: (empty string)

The search query. The most obvious value for this field is the thesis title, but we'll try to be smart about it. For example, we can also try to find theses by keywords, or by the names of their authors or supervisors, etc. Keep in mind that these extra searching features are not guaranteed to work in the future.

Also note, that if you're searching by providing the author's name, then some results may be hidden, in accordance to user preferences. Only authors, supervisors and reviewers can see all the theses.

type optional

Default value: all

Pipe-separated list of thesis types among which to search. For the list of allowed values see the type field of the thesis method.

An extra value of all can be used to indicate all available types (this is the default).

fac_ids optional

Default value: (empty string)

Pipe-separated list of faculty IDs. If given, then the results will be limited to only those theses which have been submitted to one of the given faculties.

num optional

Default value: 6

The number of search results to return. The maximum allowed value of num is 20.

start optional

Default value: 0

Zero-based offset of the first item that should be included in the response. (Or, in other words, the number of items to strip from the beginning of the items-list.)

Note, that currently no more than 100 items will be returned for any query, even if more than 100 matches were found.

format optional

Default value: json

Format in which to return values. See supported output formats.

callback optional

Required only if you've chosen jsonp as a return format.

Plus required standard OAuth Consumer signing arguments: oauth_consumer_key, oauth_nonce, oauth_timestamp, oauth_signature, oauth_signature_method, oauth_version. Plus optional oauth_token for Token authorization.

Returned value:

A dictionary of selected fields and their values.

Available fields:

  • items - a list of items which have matched your query.

    The length of this list is limited to num items. You can access further results by specifying the start argument.

    Each item on this list is a dictionary of the following structure (you can choose more fields with a subfield selector):

    • thesis - the thesis object, as described in the thesis method.
    • match - thesis title with matching fragments highlighted with HTML <b> tag.

      The match may also contain other text, it is not limited to the the thesis title. For example, if you provide a part of the thesis author's name in your query, then the match may also include the name of the author, etc.

  • next_page - boolean, indicates if there is a next page of results for this query.

services/theses/search_history_affect

Consumer: required Token: required Scopes: none SSL: not required
URLs of the methods are hidden, because this installation is the mother server.
Click here for the list of all public USOS API installations.

Add a thesis to search history.

This method aims at improving user experience while searching. Call this method once your user visits thesis' page, or when he/she selects a given thesis while searching for theses, etc.

Given thesis will be added to search history (currently stored separately for each consumer key and each user). Items saved in search history may appear more frequently in search results.

ths_id required

The ID of the thesis you want saved to the search history.

format optional

Default value: json

Format in which to return values. See supported output formats.

callback optional

Required only if you've chosen jsonp as a return format.

Plus required standard OAuth Consumer signing arguments: oauth_consumer_key, oauth_nonce, oauth_timestamp, oauth_signature, oauth_signature_method, oauth_version. Plus required oauth_token for Token authorization.

Returned value:

Currently, it always returns {"success": true}.

services/theses/theses

Consumer: required Token: optional Scopes: n/a SSL: not required
URLs of the methods are hidden, because this installation is the mother server.
Click here for the list of all public USOS API installations.

Get information on multiple theses.

ths_ids required

Pipe-separated list of thesis IDs.

fields required

Selector of result fields you are interested in. The selector may contain any subset of fields, which are described in the returns section of thesis method.

format optional

Default value: json

Format in which to return values. See supported output formats.

callback optional

Required only if you've chosen jsonp as a return format.

Plus required standard OAuth Consumer signing arguments: oauth_consumer_key, oauth_nonce, oauth_timestamp, oauth_signature, oauth_signature_method, oauth_version. Plus optional oauth_token for Token authorization.

Returned value:

A dictionary: your ths_ids will be mapped to dictionary's keys, and each value will contain the description of one thesis, as defined in the thesis method.

For invalid ths_ids (theses which do not exist) null will be returned (instead of the thesis object).

services/theses/thesis

Consumer: required Token: optional Scopes: n/a SSL: not required
URLs of the methods are hidden, because this installation is the mother server.
Click here for the list of all public USOS API installations.

Get information on a single thesis.

ths_id required

ID of the thesis.

fields optional

Default value: type|id|title

Selector of result fields you are interested in. The selector may contain any subset of fields, which are described in the returns section.

format optional

Default value: json

Format in which to return values. See supported output formats.

callback optional

Required only if you've chosen jsonp as a return format.

Plus required standard OAuth Consumer signing arguments: oauth_consumer_key, oauth_nonce, oauth_timestamp, oauth_signature, oauth_signature_method, oauth_version. Plus optional oauth_token for Token authorization.

Returned value:

A dictionary of selected fields and their values.

Available fields:

  • id - the ID of the thesis;

  • type - thesis type.

    One of the following values: doctoral, master, licentiate, engineer or postgraduate. Other types may come in the future, you must be ready for them (for example, you should display them as "unknown types").

  • title - string (not a LangDict). The primary title of the thesis.

    Most of USOS entities have at most two names - in Polish and in English. However, theses may have as much as three different titles. This is the primary title. Other titles (in Polish and in English) can be found in the titles fields.

    Please note that currently you have no way of fetching the language of this title.

  • titles - LangDict object. Polish and English names of the thesis;

  • authors - a list of thesis authors.

    Each element of this list is a services/users/user object. You can use a subfield selector to ask for specific user fields (the default is id|first_name|last_name).

  • supervisors - a list of thesis supervisors.

    Each element of this list is a services/users/user object. You can use a subfield selector to ask for specific user fields (the default is id|first_name|last_name).

  • faculty - the faculty to which this thesis has been submitted to.

    This an an object in the formated described in the services/fac/faculty method. You can use a subfield selector to ask for specific faculty fields (the default is id|name).

services/theses/user

Consumer: required Token: optional Scopes: n/a SSL: not required
URLs of the methods are hidden, because this installation is the mother server.
Click here for the list of all public USOS API installations.

Get theses-related information on a given user. Visibility of the information may depend on the roles of your user, and scopes provided to you.

user_id required

ID of the user.

fields required

Selector of result fields you are interested in. The selector may contain any subset of fields, which are described in the returns section.

format optional

Default value: json

Format in which to return values. See supported output formats.

callback optional

Required only if you've chosen jsonp as a return format.

Plus required standard OAuth Consumer signing arguments: oauth_consumer_key, oauth_nonce, oauth_timestamp, oauth_signature, oauth_signature_method, oauth_version. Plus optional oauth_token for Token authorization.

Returned value:

A dictionary of selected fields and their values.

Available fields:

  • authored_theses - the list of all theses authored by the user.

    A list of thesis objects, as defined in the thesis method. Use a subfield selector to access specific thesis fields.

    Note, that some theses may be hidden, in accordance to user preferences. Only authors, supervisors and reviewers can see all the theses.

    This field references objects returned by thesis method. See its returns section for possible subfields.

services/theses/users

Consumer: required Token: optional Scopes: n/a SSL: not required
URLs of the methods are hidden, because this installation is the mother server.
Click here for the list of all public USOS API installations.

Get theses-related information on multiple users. This is very similar to the user method, but work with multiple users.

user_ids required

Pipe-separated list of user IDs.

fields required

Selector of result fields you are interested in. The selector may contain any subset of fields, which are described in the returns section of user method.

format optional

Default value: json

Format in which to return values. See supported output formats.

callback optional

Required only if you've chosen jsonp as a return format.

Plus required standard OAuth Consumer signing arguments: oauth_consumer_key, oauth_nonce, oauth_timestamp, oauth_signature, oauth_signature_method, oauth_version. Plus optional oauth_token for Token authorization.

Returned value:

A dictionary: your user_ids will be mapped to dictionary's keys, and each value will contain an object with user-related thesis data, as defined in the user method.

For invalid user_ids (users which do not exist) null will be returned (instead of a dictionary).

USOS API ver. 6.1.2.0-bc1aa53 (2016-06-07)