]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/javascript/opac/MyOPACPage.js
removing old opac images and css
[Evergreen.git] / Open-ILS / src / javascript / opac / MyOPACPage.js
1 MyOPACPage.prototype                                    = new Page();
2 MyOPACPage.prototype.constructor        = MyOPACPage;
3 MyOPACPage.baseClass                                    = Page.constructor;
4
5 // ---------------------------------------------------------------------------------
6 // my_opac
7 // ---------------------------------------------------------------------------------
8 function MyOPACPage() {
9         this.searhBarForm = new SearchBarFormChunk();
10         this.searchBar = new SearchBarChunk();
11 }
12
13 MyOPACPage.prototype.redirect = function() {
14         var frame = getById("my_opac_iframe");
15
16         var org = globalSelectedLocation;
17         if(org == null)
18                 org = globalLocation;
19         org = org.id();
20         var depth = globalSearchDepth;
21
22         var source = "https://" + globalRootURL + globalRootPath 
23                 + "?target=my_opac_secure" + "&location=" + org + "&depth=" + depth;
24
25         source += "&session=" + UserSession.instance().getSessionId();
26         frame.setAttribute("src",source);
27         return true;
28 }
29
30