Skip to content

UedaTakeyuki/ndlsearch

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

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