Last active
May 26, 2017 09:03
-
-
Save xmorave2/55240ac35326bc07e12f1ea5c0aa2528 to your computer and use it in GitHub Desktop.
Série - 787 vufind:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <? $serie = $this->driver->getSerie();?> | |
| <? if (!empty($serie)): ?> | |
| <tr> | |
| <th><?=$this->transEsc('Serie')?>: </th> | |
| <td> | |
| <? foreach($serie as $s): ?> | |
| <a href="<?=$this->record($this->driver)->getLink('series787', $s["title"])?>"><?=$s["title"]?></a><? echo ", " . $this->translate("part") . " " . $s["part"] ?><br/> | |
| <? endforeach; ?> | |
| </td> | |
| </tr> | |
| <? endif; ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| part = "část" | |
| Serie = "Série" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?=$this->url('search-results')?>?lookfor=%22<?=urlencode($this->lookfor)?>%22&type=Series787 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| series787 = 787t |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <? $serie = $this->driver->getSerie();?> | |
| <? if (!empty($serie)): ?> | |
| <? foreach($serie as $s): ?> | |
| <br/><?=$this->transEsc('Serie')?>: <a href="<?=$this->record($this->driver)->getLink('series787', $s["title"])?>"><?=$s["title"]?></a><? echo ", " . $this->translate("part") . " " . $s["part"] ?><br/> | |
| <? endforeach; ?> | |
| <? endif; ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- Série - dílovky --> | |
| <field name="series787" type="text" indexed="true" stored="true" multiValued="true"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Series787: | |
| DismaxFields: | |
| - series787 | |
| QueryFields: | |
| series787: | |
| - [onephrase, 50] | |
| - [and, 50] | |
| - [or, ~] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public function getSerie() | |
| { | |
| $ret = []; | |
| $fields = $this->getMarcRecord()->getFields('787'); | |
| foreach ($fields as $field) { | |
| if (strpos($field->getSubfield('i')->getData(), 'Z cyklu') !== false) { | |
| $subfield_g = $field->getSubfield('g'); | |
| $subfield_t = $field->getSubfield('t'); | |
| $ret[] = [ | |
| "title" => $subfield_t ? $subfield_t->getData() : false, | |
| "part" => $subfield_g ? $subfield_g->getData() : false, | |
| ]; | |
| } | |
| } | |
| return $ret; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment