Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Relay Sublibrary Bundle Laravel Package

dbp/relay-sublibrary-bundle

View on GitHub
Deep Wiki
Context7

Bundle Configuration

Created via ./bin/console config:dump-reference DbpRelaySublibraryBundle | sed '/^$/d'

# Default configuration for "DbpRelaySublibraryBundle"
dbp_relay_sublibrary:
  # The REST API endpoint to use
  api_url:              ~ # Required, Example: 'https://api-eu.hosted.exlibrisgroup.com'
  # The API key for the REST API
  api_key:              ~ # Required, Example: your_key
  # The API key for the analytics API (defaults to api_key)
  analytics_api_key:    ~ # Example: your_key
  # Makes all write operations error out, even if the API key would allow them.
  readonly:             false
  organization_local_data_attributes:
    # The organization local data attribute that contains the library code
    code:                 code
  # The full paths to the used analytics reports
  analytics_reports:
    # Full path to the report containing information about all book offers
    book_offer:           ~ # Required, Example: /shared/MyUni/Reports/book_offer
    # Full path to the report containing information about all book orders
    book_order:           ~ # Required, Example: /shared/MyUni/Reports/book_order
    # Full path to the report containing information about all book loans
    book_loan:            ~ # Required, Example: /shared/MyUni/Reports/book_loan
    # Full path to the report containing information about the budget of the libraries
    budget:               ~ # Required, Example: /shared/MyUni/Reports/budget
    # Full path to the report containing information about when the analytics were last updated
    update_check:         ~ # Required, Example: /shared/MyUni/Reports/update_check
  authorization:
    roles:
      # Returns true if the user is allowed to use the dispatch API.
      ROLE_LIBRARY_MANAGER: 'false'
    resource_permissions: []
    attributes:
      # Returns the list of sublibrary IDs the user has manager rights in
      SUBLIBRARY_IDS:       '[]'
      # Returns the list of Alma library IDs the user has manager rights in
      ALMA_LIBRARY_IDS:     '[]'

Example configuration:

dbp_relay_sublibrary:
  api_url: 'https://api-eu.hosted.exlibrisgroup.com'
  api_key: '%env(SUBLIBRARY_ALMA_API_KEY)%'
  authorization:
    roles:
      ROLE_LIBRARY_MANAGER: 'user.get("LIBRARY_MANAGER_AT", []) !== []'
    attributes:
      SUBLIBRARY_IDS: 'user.get("LIBRARY_MANAGER_AT", [])'
      ALMA_LIBRARY_IDS: 'user.get("ALMA_LIBRARY_MANAGER_AT", [])'

Prerequisites

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
bugban/symfony
beyonder-capi/workflow-extensions-bundle
beyonder-capi/job-queue-bundle
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin