Skip to content

UedaTakeyuki/ndlsearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ndlsearch

Japan National Diet Library bibliographic search

how to use

# 10 or 13 column digit of ISBN code
$isbn_str = '9784526077425'; 

# create class with ISBN code
$ndl = new NDLsearch($isbn_str);

# get bibliographic info
print "title: ".$ndl->title();
print "author: ".$ndl->creator();
print "subject: ".$ndl->subject();
print "description: ".$ndl->description();
print "language: ".$ndl->language();

how to install

use from Laravel 5

  1. add ndlsearch to the "composer.json" on your laravel project as follows:
...
    "require": {
        ...
        "uedatakeyuki/ndlsearch": "dev-master"
    },
...
    "autoload": {
        "classmap": [
            ...
        ],
        "psr-4": {
            "App\\": "app/"
        },
	"files": [
		"vendor/uedatakeyuki/ndlsearch/ndlsearch.php"
	]
...
  1. composer install
  2. composer dump-autoload
  3. add use App\Classes\NDLsearch; as follows:

<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Input;

use App\Classes\NDLsearch;

class BibliographyController extends Controller
{
...
    public function create()
    {
    ...
    $ndl = new NDLsearch($barcode);
    session(['title' => (string)$ndl->title()]);
    ...    

About

Japan National Diet Library bibliographic search

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages