Forum - customization by angularJS(Find controllers)
- This topic has 4 replies, 5 voices, and was last updated 4 months, 3 weeks ago by Mehmet Celik.
- January 14, 2019 at 2:49 am #35248AnonymousInactive
I am editing custome.js with angularJS. I noticed there’s many ‘controllers’ in it.Each controller has its own data.
But for now I have to view and find the ‘controllers’ in console view of web browser.It’s little inconveniences.
I want to know if there’s any documentation that I can find all supported controllers? such as:
Parent Controller – prmSearchResultAvailabilityLine
parentCtrl.result.pnx.control.sourcerecordid – MMSID
Parent Controller – prmLoginHelp
parentCtrl.loginHelpService._loginHelpData.moreInfo – Sign-in Help Text
Parent Controller – prmLocations
parentCtrl.results.location.callNumber – Item Call Number
parentCtrl.results.availability – Item Avaliability
parentCtrl.results.additionalData.mainlocationname – Main Location Name
Parent Controller – prmGalleryCollectionsList
parentCtrl.collections.name – Collection Title
parentCtrl.collections.pid.value – Collection ID
Thank you.March 6, 2019 at 4:22 am #39855Beijing Normal University 86BNU_INSTParticipant
Hi Is there any comments or advise?April 8, 2019 at 2:47 am #51696Macau University of Science and Technology 853MUST_INSTParticipant
any updates?April 8, 2019 at 9:10 am #51697Ori MillerKeymaster
Unfortunately, there isn’t such documentation that can tell exactly what each parameter means.
The only thing that available now is the showDirectives script that provided in primo-explore-package GitHub repository (https://github.com/ExLibrisGroup/primo-explore-package/blob/master/VIEW_CODE/showDirectives.txt) which can tell you what components are free to use by the customization package.
GiladNovember 13, 2019 at 6:55 am #64054Mehmet CelikParticipant
Not sure if you are still struggling with this but have a look at https://github.com/mehmetc/primo-explore-dom
It will popup a window with all the active components and you can drill down 2 levels into the component.
Here is a snippet to load the window from the console. It works in 2 steps first you need to enable debug and after the screen is reloaded enter the second part
//enable debug information. Wait for the screen to reload.
//When screen is reloaded
//Get a pointer to AngularJs and angularLoad
var appInjector = angular.injector([‘ng’,’angularLoad’]);
//Get a reference to angularLoad
var angularLoad = appInjector.get(‘angularLoad’);
//Load the script;
- You must be logged in to reply to this topic.