diff --git a/.gitignore b/.gitignore index ee08dd6..5ec47b7 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,6 @@ -grima-config.php +.bundle +.htaccess +docs/dev +dist +releases +node_modules diff --git a/Boundwith.php b/Boundwith.php deleted file mode 100644 index 526098b..0000000 --- a/Boundwith.php +++ /dev/null @@ -1,112 +0,0 @@ -bibs = preg_split('/\r\n|\r|\n/',$this['mms']); - - # BIBS - foreach ($this->bibs as $mmsid) { - $bib = new Bib(); - $bib->loadFromAlma($mmsid); - $this->biblist[] = $bib; - } - - # build array of unique titles - $arrfor501 = array(); - foreach ($this->biblist as $k => $bib) { - $title = $bib->get_title_proper(); - if ($k > 0) { - $this->biblist[0]->appendField("774","1"," ",array( - 't' => $title, - 'w' => $bib['mms_id'] - ) - ); - } - if (!in_array($title,$arrfor501)) { - $arrfor501[] = $title; - } - } - - foreach ($this->biblist as $bib) { - $my501text = "Bound with: "; - $skip = $bib->get_title_proper(); - foreach ($arrfor501 as $title) { - if ($title != $skip) { - $my501text .= $title . "; "; - } - } - $my501text = preg_replace("/; $/",".",$my501text); - $bib->appendField("501"," "," ",array('a' => $my501text)); - $bib->updateAlma(); - } - - ## holdings list - $this->biblist[0]->getHoldingsList(); - - ## HOLDING - $mfhd = new Holding(); - $mfhd->loadFromAlma($this->biblist[0]['mms_id'], $this->biblist[0]->holdingsList->holdings[0]['holding_id']); - - foreach ($this->biblist as $k => $bib) { - if ($k > 0) { - $mfhd->appendField("014","1"," ",array('a' => $bib['mms_id'])); - } - } - $mfhd->updateAlma(); - } - - function print_success() { - print <<