1 | <?php |
||
7 | class Bibs extends ResourceList |
||
8 | { |
||
9 | protected $resourceName = Bib::class; |
||
10 | |||
11 | /** |
||
12 | * Get a Bib object from a item barcode. |
||
13 | * |
||
14 | * @param string $barcode |
||
15 | * @return Bib |
||
16 | */ |
||
17 | public function fromBarcode($barcode) |
||
29 | |||
30 | /** |
||
31 | * Get a Bib object from a holdings ID. |
||
32 | * |
||
33 | * @param string $holdings_id |
||
34 | * @return Bib |
||
35 | */ |
||
36 | public function fromHoldingsId($holdings_id) |
||
44 | |||
45 | /** |
||
46 | * Get Bib records from SRU search. You must have an SRU client connected |
||
47 | * to the Alma client (see `Client::setSruClient()`). |
||
48 | * Returns a generator that handles continuation under the hood. |
||
49 | * |
||
50 | * @param string $cql The CQL query |
||
51 | * @param int $batchSize Number of records to return in each batch. |
||
52 | * @return \Generator|Bib[] |
||
53 | */ |
||
54 | public function search($cql, $batchSize = 10) |
||
62 | |||
63 | /** |
||
64 | * Returns the first result from a SRU search or null if no results. |
||
65 | * |
||
66 | * @param string $cql |
||
67 | * @return Bib |
||
68 | */ |
||
69 | public function findOne($cql) |
||
73 | |||
74 | /** |
||
75 | * Get a Bib object from an ISBN value. Returns null if no Bib record found. |
||
76 | * |
||
77 | * @param string $isbn |
||
78 | * @return Bib |
||
79 | */ |
||
80 | public function fromIsbn($isbn) |
||
84 | } |
||
85 |