http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14385 Bug ID: 14385 Summary: Extend OpacHiddenItems to allow specifying exempt borrower categories Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: OPAC Assignee: oleonard@myacpl.org Reporter: aleishaamohia@hotmail.com QA Contact: testopia@bugs.koha-community.org Want to be able to allow certain borrower categories to be able to see items, even if they are marked hidden by OpacHiddenItems Todo: • C4::Items->GetHiddenItemnumbers: ** It must take an optional borrowercategory ** It must check the borrowercategory against the exception list, and if there's a match, then it doesn't mark that item as hidden. ** Update the test cases to check this. • C4::Search->searchResults: ** $search_context should be modified to include a reference to the borrower details ** the places using $search_context will need to be updated to handle the new structure ** the borrower category will be passed on to GetHiddenItemnumbers ** update the test cases to account for this • opac/opac-search.pl, opac/opac-detail.pl: ** Call Members::GetMember to get info on the current user, pass the category into searchResults as the search context. • opac-MARCdetail.pl, opac/opac-detail.pl, opac/opac-ISBDdetail.pl: ** Call Members::GetMember to get info on the current user, pass the category into GetHiddenItemnumbers *** Account for no one being logged in (i.e. don't pass the category.) ** Note: opac-MARCdetail.pl will need a bit of rearrangement to where it figures out the current user. -- You are receiving this mail because: You are watching all bug changes.