Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision |
development:architecture:real_time_availability_status [2016/04/25 08:39] – [Services] andre_l | development:architecture:real_time_availability_status [2020/09/22 14:29] (current) – demiankatz |
---|
| |
VuFind 3.0 introduces a new ILS driver feature: the 'services' key of the [[development:plugins:ils_drivers#getstatus|getStatus()]] response. When this data is provided, VuFind's boolean availability display is extended to include more detailed information. | VuFind 3.0 introduces a new ILS driver feature: the 'services' key of the [[development:plugins:ils_drivers#getstatus|getStatus()]] response. When this data is provided, VuFind's boolean availability display is extended to include more detailed information. |
| |
| The concept of available services was based on how services were defined in the Document Availability Information API ([[http://gbv.github.io/daia/daia.html|DAIA]]): "a service is something that an item is currently accessible or unaccessible for" (e.g. presentation, loan, interloan). Services are explicit, i.e. there should be no "assumed implications between service types (for instance most times an item is available for loan it is also available for presentation)". |
| |
Supported services right now are ''presentation'' and ''loan''. Other services can be added by modifying the ILS-driver (right now only the DAIA driver supports this feature) and its return values for the services key of [[development:plugins:ils_drivers#getstatus|getStatus()]] response. | Supported services right now are ''presentation'' and ''loan''. Other services can be added by modifying the ILS-driver (right now only the DAIA driver supports this feature) and its return values for the services key of [[development:plugins:ils_drivers#getstatus|getStatus()]] response. |
As translations-tokens and styling-classes for services are generated during runtime you will also need to add a translation-token ''service_available_{service}'' to the [[development:architecture:localization#text_domains|TextDomain]] ''HoldingStatus'' and styling for class ''service_{service}'' for proper display of additional services. The enclosing span for the services my also be styled via the class ''services-{-delimited services}''. | As translations-tokens and styling-classes for services are generated during runtime you will also need to add a translation-token ''service_available_{service}'' to the [[development:architecture:localization#text_domains|TextDomain]] ''HoldingStatus'' and styling for class ''service_{service}'' for proper display of additional services. The enclosing span for the services my also be styled via the class ''services-{-delimited services}''. |
| |
Please refer also to the respective template [[https://github.com/vufind-org/vufind/blob/master/themes/bootstrap3/templates/ajax/status-available-services.phtml|vufind/themes/bootstrap3/templates/ajax/status-available-services.phtml]]. | Please refer also to the respective template [[https://github.com/vufind-org/vufind/blob/dev/themes/bootstrap3/templates/ajax/status-available-services.phtml|vufind/themes/bootstrap3/templates/ajax/status-available-services.phtml]]. |
---- struct data ---- | ---- struct data ---- |
| properties.Page Owner : |
---- | ---- |
| |