From: Demian K. <dem...@vi...> - 2015-10-26 19:55:25
|
Adding an entry there is a good place to start, but you'll need to do some more coding as well. A next step may be to create a characterAction() similar to the existing genreAction(), regionAction(), etc. Also, it may be necessary to add a 'Browse/Character' route to the configuration file here: https://github.com/vufind-org/vufind/blob/master/module/VuFind/config/module.config.php#L729 I suspect some additional work may be necessary, but I can't remember all the details off the top of my head. If you have trouble proceeding, please share any error messages and I can provide more advice. - Demian From: seelan [mailto:se...@km...] Sent: Monday, October 26, 2015 3:09 PM To: Demian Katz; vuf...@li...; vuf...@li... Subject: RE: Browse the catalog I tried to modify browsecontroller but it gives error $remainingOptions = [ 'Author', 'Topic', 'Genre', 'Region', 'Era', 'Character' ]; Is there any other page I need to modify to add Character facet Thank you From: Demian Katz [mailto:dem...@vi...] Sent: Tuesday, 27 October, 2015 2:57 AM To: seelan; vuf...@li...<mailto:vuf...@li...>; vuf...@li...<mailto:vuf...@li...> Subject: RE: Browse the catalog This functionality is defined by the BrowseController: https://github.com/vufind-org/vufind/blob/master/module/VuFind/src/VuFind/Controller/BrowseController.php It should be possible to add another facet by modifying this controller; if you trace through all of the code related to a facet that is similar to the one you wish to add, that should help you figure out what needs to be added. It would be nice if we could make this code a little more modular and extensible - right now, it is not as flexible as I would like. If you have any suggestions for refactoring, I would welcome them. In the meantime, let me know if more specific questions come up once you have begun looking at this code. thanks, Demian From: seelan [mailto:se...@km...] Sent: Monday, October 26, 2015 2:44 PM To: Demian Katz; vuf...@li...<mailto:vuf...@li...>; vuf...@li...<mailto:vuf...@li...> Subject: Browse the catalog Hi, Is there a way to add new search facet in browse the catalog? Which are the files I need to modify? [cid:image001.png@01D11006.B0C1BCB0] Best Regards, [logo] Sathiya Seelan<mailto:se...@km...> Programmer | KNOWLEDGE LINK SDN. BHD. (Reg.: 341361-V) Suite A603 Phileo Damansara II, 15 Jalan 16/11, 46350 Petaling Jaya, Selangor Tel: 03-7955 0121 | Fax: 03-7955 0131 | Mobile: 017-623 8798 | Web: www.kmlink.com.my<http://www.kmlink.com.my> CONFIDENTIALITY CAUTION This communication (including any accompanying documents) is intended only for the use of the addressee(s) and contains information that is PRIVILEGED AND CONFIDENTIAL. Unauthorized reading, dissemination, distribution or copying of this communication is prohibited. If you have received this communication in error, please promptly destroy the original communication. Thank you for your cooperation. |