| Conditions | 3 |
| Paths | 3 |
| Total Lines | 23 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | public function handle() |
||
| 16 | { |
||
| 17 | if (($value = $this->getParam('format'))) { |
||
| 18 | // predict if 'format électronique' |
||
| 19 | // format electronique lié au champ 'lire en ligne' |
||
| 20 | // 2015 https://fr.wikipedia.org/wiki/Discussion_mod%C3%A8le:Ouvrage#format,_format_livre,_format_%C3%A9lectronique |
||
| 21 | // if (preg_match('#(pdf|epub|html|kindle|audio|\{\{aud|jpg)#i', $value) > 0) { |
||
| 22 | // |
||
| 23 | // $this->setParam('format électronique', $value); |
||
| 24 | // $this->unsetParam('format'); |
||
| 25 | // $this->log('format:électronique?'); |
||
| 26 | // |
||
| 27 | // return; |
||
| 28 | // } |
||
| 29 | if (preg_match( |
||
| 30 | '#(ill\.|couv\.|in-\d|in-fol|poche|broché|relié|{{unité|{{Dunité|\d{2} ?cm|\|cm}}|vol\.|A4)#i', |
||
| 31 | $value |
||
| 32 | ) > 0 |
||
| 33 | ) { |
||
| 34 | $this->setParam('format livre', $value); |
||
| 35 | $this->unsetParam('format'); |
||
| 36 | $this->addSummaryLog('format:livre?'); |
||
| 37 | $this->optiStatus->setNotCosmetic(true); |
||
| 38 | } |
||
| 42 | } |