| Summary: | Code to calculate item's holdability must be moved to Koha::Item | ||
|---|---|---|---|
| Product: | Koha | Reporter: | Jonathan Druart <jonathan.druart> | 
| Component: | Architecture, internals, and plumbing | Assignee: | Bugs List <koha-bugs> | 
| Status: | RESOLVED DUPLICATE | QA Contact: | Testopia <testopia> | 
| Severity: | enhancement | ||
| Priority: | P5 - low | ||
| Version: | Main | ||
| Hardware: | All | ||
| OS: | All | ||
| GIT URL: | Initiative type: | --- | |
| Sponsorship status: | --- | Crowdfunding goal: | 0 | 
| Patch complexity: | --- | Documentation contact: | |
| Documentation submission: | Text to go in the release notes: | ||
| Version(s) released in: | Circulation function: | ||
| Bug Depends on: | 28422 | ||
| Bug Blocks: | |||
Code is duplicated in opac/opac-ISBDdetail.pl, opac/opac-MARCdetail.pl and opac/opac-detail.pl (at least). It must be moved to a Koha::Item method 721 $norequests = 0 722 if $norequests 723 && !$itm->{'withdrawn'} 724 && !$itm->{'itemlost'} 725 && ($itm->{'itemnotforloan'}<0 || not $itm->{'itemnotforloan'}) 726 && !$itemtypes->{$itm->{'itype'}}->{notforloan} 727 && $itm->{'itemnumber'}; search for '$norequests' in those 3 files.