2017 © Pedro Peláez
 

library azdatabases

Connect to alma and extract a list of databases for searching.

image

seumunday/azdatabases

Connect to alma and extract a list of databases for searching.

  • Tuesday, February 27, 2018
  • by akosarek
  • Repository
  • 1 Watchers
  • 2 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

AZ Databases Laravel Plugin

This plugin allows you to connect your library website to Alma and pull down database resources and display them using HTML and Javascript., (*1)

Installation

TODO: Clean Up the Installation Instructions, (*2)

Composer

Install with composer. Use the following command in your terminal window., (*3)

composer require seumunday/azdatabases

Create new autoloads, (*4)

composer dump-auto

Add Service Provider

Add the following to your service providers in config/app.php, (*5)

Seumunday\Azdatabases\AzdatabasesServiceProvider::class,

Artisan

Use Artisan to publish the vendor files into your site. This allows you to fully customize the views., (*6)

php artisan vendor:publish --provider="Seumunday\Azdatabases\AzdatabasesServiceProvider"

List of Transfered files: * config/azdatabases.php * app/Console/commands/AzDatabaseImport.php * resources/views/vendor/azdatabases - aznav.blade.php - index.blade.php * resources/assets/js/vendor/azdatabases.js, (*7)

Edit Config File

Insert your OAI url from alma into the newly transfered config file., (*8)

'url' => 'https://YOURURLHERE'

NOTE Learn how to get this url by reading these helpful articles from exlibris. Alma OAI Integration API Exlibris OAI Article, (*9)

You may also change the url slug for this plugin. Please keep in mind you will also have to change it in the azdatabases.js file that's imported as well. To change that file, set the variable on line 10 to the same value that's in the config file., (*10)

Set Up Command

In app/Console/Kernel.php, add the following to protected $commands:, (*11)

\App\Console\Commands\AzDatabaseImport::class,

And the following under function schedule, (*12)

$schedule->command('importAZDB')
        ->daily();

To populate it instantly, change daily() to everyMinute(), then run the following artisan command., (*13)

To run the command:, (*14)

php artisan schedule:run

NOTE: The data is populated by accessing the ALMA api, and downloading it ever day. To set this up, you will need to make sure you have set up scheduling. https://laravel.com/docs/5.4/scheduling, (*15)

At this point, you should be able to see html loading at YOURDOMAIN/database, (*16)

Set Up Javascript

Add the following to Elixer in your gulp file., (*17)

mix.webpack('vendor/azdatabases.js', 'public/assets/js');

If you have Laravel 5.4, it will be in your webpack.js file, and will instead look like this:, (*18)

.js('resources/assets/js/vendor/azdatabases.js', 'public/assets/js')

If you store your JS files else where, make sure to also change the script url in the view., (*19)

If this is a new project, don't forget to run 'npm install', (*20)

Install vue-router

This allows us to have permalinks to searches and selections. Run the following in your terminal window:, (*21)

npm install vue-router --save

Depending on what version of Laravel you use, here are the commands to compile the javascript., (*22)

Laravel 5.3, (*23)

gulp

Laravel 5.4, (*24)

npm run watch

Usage

TODO: Write usage instructions, (*25)

History

TODO: Write more history, (*26)

This project was based on Justin Kells AZ Database project., (*27)

The Versions

27/02 2018

dev-master

9999999-dev https://github.com/seumunday/Azdatabases

Connect to alma and extract a list of databases for searching.

  Sources   Download

GNU GENERAL PUBLIC LICENSE GPL-3.0-or-later

The Requires

 

by Alex Kosarek

database laravel databases alma exlibris primo

02/03 2017

1.0.0

1.0.0.0 https://github.com/seumunday/Azdatabases

Connect to alma and extract a list of databases for searching.

  Sources   Download

GNU GENERAL PUBLIC LICENSE

The Requires

 

by Alex Kosarek

laravel