Now that we have localized org trees, let our tools pull them in
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 19 Mar 2009 05:59:47 +0000 (05:59 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 19 Mar 2009 05:59:47 +0000 (05:59 +0000)
Note that for now I've cheated on the staff client chrome and book bags and forced them to en-US

git-svn-id: svn://svn.open-ils.org/ILS/trunk@12600 dcc99617-32d9-48b4-a31d-7c20da2025e4

20 files changed:
Open-ILS/examples/apache/eg_vhost.conf
Open-ILS/web/opac/extras/bbags.xml
Open-ILS/web/opac/skin/default/js/rdetail.js
Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_extras.xml
Open-ILS/web/reports/oils_rpt_common.xhtml
Open-ILS/web/reports/xul/template_builder.xul
Open-ILS/xul/staff_client/chrome/content/OpenILS/util_overlay_chrome.xul
Open-ILS/xul/staff_client/chrome/content/main/constants.js
Open-ILS/xul/staff_client/server/OpenILS/util_overlay.xul
Open-ILS/xul/staff_client/server/admin/cash_reports.xhtml
Open-ILS/xul/staff_client/server/admin/closed_dates.xhtml
Open-ILS/xul/staff_client/server/admin/copy_locations.xhtml
Open-ILS/xul/staff_client/server/admin/hold_pull_list.xhtml
Open-ILS/xul/staff_client/server/admin/hold_pull_list_classic.xhtml
Open-ILS/xul/staff_client/server/admin/non_cat_types.xhtml
Open-ILS/xul/staff_client/server/admin/printer_settings.html
Open-ILS/xul/staff_client/server/admin/stat_cat_editor.xhtml
Open-ILS/xul/staff_client/server/main/ws_info.xul
Open-ILS/xul/staff_client/server/patron/ue.xhtml
Open-ILS/xul/staff_client/server/patron/user_edit.xhtml

index 0d8deef..18f91c4 100644 (file)
@@ -91,6 +91,10 @@ RewriteRule - - [E=locale:%1] [L]
 </LocationMatch>
 
 <LocationMatch /opac/extras/>
+    # Force to en-US for now to satisfy bbags.xml
+    SetEnv locale en-US
+    Options +Includes
+    AddOutputFilter INCLUDES .xml
     AddType application/xhtml+xml .xml
 </LocationMatch>
 
@@ -121,7 +125,7 @@ RewriteCond %{ENV:locale} ^$ [OR]
 RewriteCond %{ENV:locale} ^en$
 RewriteRule - - [E=locale:en-US] [L]
 
-<LocationMatch /xul/.*\.xhtml$>
+<LocationMatch /xul/.*\.x?html$>
     Options +Includes
     XMLEntEscapeScript "no"
     XMLEntStripComments "yes"
@@ -129,6 +133,7 @@ RewriteRule - - [E=locale:en-US] [L]
     XMLEntStripDoctype "yes"
     XMLEntContentType "text/html; charset=utf-8"
     AddOutputFilter INCLUDES;XMLENT .xhtml
+    AddOutputFilter INCLUDES;XMLENT .html
     allow from all
 </LocationMatch>
 
index e701f29..9e7ebe3 100644 (file)
@@ -1,4 +1,4 @@
-<?xml version='1.0'?>
+<?xml version='1.0' encoding='UTF-8'?>
 
 <!DOCTYPE html PUBLIC 
        "-//W3C//DTD XHTML 1.0 Transitional//EN" 
@@ -18,7 +18,7 @@
                <script language='javascript' src='/opac/common/js/fmall.js'> </script>
                <script language='javascript' src='/opac/common/js/fmgen.js'> </script>
                <script language='javascript' src='/opac/common/js/opac_utils.js'> </script>
-               <script language='javascript' src='/opac/common/js/OrgTree.js'> </script>
+               <script language='javascript' src='/opac/common/js/<!--#echo var="locale"-->/OrgTree.js'> </script>
                <script language='javascript' src='/opac/common/js/org_utils.js'> </script>
                <script language='javascript' src='/opac/common/js/init.js'> </script>
                <script language='javascript' src='/opac/common/js/RemoteRequest.js'> </script>
index b973267..1d1811f 100644 (file)
@@ -349,6 +349,7 @@ function rdetailShowExtra(type, args) {
        hideMe($('rdetail_reviews_div'));
        hideMe($('rdetail_toc_div'));
        hideMe($('rdetail_anotes_div'));
+       hideMe($('rdetail_performer_notes_div'));
        hideMe($('rdetail_excerpt_div'));
        hideMe($('rdetail_preview_div'));
        hideMe($('rdetail_marc_div'));
@@ -363,6 +364,7 @@ function rdetailShowExtra(type, args) {
        removeCSSClass($('rdetail_excerpt_link'), 'rdetail_extras_selected');
        removeCSSClass($('rdetail_preview_link'), 'rdetail_extras_selected');
        removeCSSClass($('rdetail_anotes_link'), 'rdetail_extras_selected');
+       removeCSSClass($('rdetail_performer_notes_link'), 'rdetail_extras_selected');
        removeCSSClass($('rdetail_annotation_link'), 'rdetail_extras_selected');
        removeCSSClass($('rdetail_viewmarc_link'), 'rdetail_extras_selected');
 
@@ -394,6 +396,11 @@ function rdetailShowExtra(type, args) {
                        unHideMe($('rdetail_anotes_div'));
                        break;
 
+               case "performer_notes": 
+                       addCSSClass($('rdetail_performer_notes_link'), 'rdetail_extras_selected');
+                       unHideMe($('rdetail_performer_notes_div'));
+                       break;
+
                case "toc": 
                        addCSSClass($('rdetail_toc_link'), 'rdetail_extras_selected');
                        unHideMe($('rdetail_toc_div'));
@@ -485,6 +492,9 @@ function rdetailhandleAC(data) {
        if( data.toc.html ) {
                $('rdetail_toc_div').innerHTML = data.toc.html;
                unHideMe($('rdetail_toc_link'));
+       } else if( record.toc() ) {
+               $('rdetail_toc_div').innerHTML = record.toc();
+               unHideMe($('rdetail_toc_link'));
        }
 
        if( data.excerpt.html ) {
@@ -496,6 +506,11 @@ function rdetailhandleAC(data) {
                $('rdetail_anotes_div').innerHTML = data.anotes.html;
                unHideMe($('rdetail_anotes_link'));
        }
+
+       if( record.performer_notes() ) {
+               $('rdetail_performer_notes_div').innerHTML = record.performer_notes();
+               unHideMe($('rdetail_performer_notes_link'));
+       }
 }
 
 function rdetailShowReviews(r) {
index 7b38f9a..5fb679b 100644 (file)
                                                class='classic_link'>&rdetail.extras.author.notes;</a>
                                </td>
 
+                               <td id='rdetail_performer_notes_link' class='hide_me rdetail_extras_td'
+                                       style='padding-right: 15px; padding-left: 15px;' >
+                                       <a href='javascript:rdetailShowExtra("performer_notes");' 
+                                               class='classic_link'>&rdetail.extras.performer.notes;</a>
+                               </td>
+
 
                                <td id='rdetail_annotation_link' class='hide_me rdetail_extras_td'
                                        style='padding-right: 15px; padding-left: 15px;' >
@@ -87,6 +93,8 @@
 
                <div id='rdetail_anotes_div' class='rdetail_extras_div hide_me'> </div>
 
+               <div id='rdetail_performer_notes_div' class='rdetail_extras_div hide_me'> </div>
+
                <div id='rdetail_marc_div' class='rdetail_extras_div hide_me'> 
                        <div id='rdetail_view_marc_box'> </div>
                </div>
index 3f3c825..9666f1f 100644 (file)
@@ -29,7 +29,7 @@
 <script type='text/javascript' src='/opac/common/js/fmgen.js'> </script>
 <script type='text/javascript' src='/opac/common/js/Cookies.js'> </script>
 <script type='text/javascript' src='/opac/common/js/opac_utils.js'> </script>
-<script type='text/javascript' src='/opac/common/js/OrgTree.js'> </script>
+<script type='text/javascript' src='/opac/common/js/<!--#echo var="locale"-->/OrgTree.js'> </script>
 <script type='text/javascript' src='/opac/common/js/org_utils.js'> </script>
 <script type='text/javascript' src='/opac/common/js/init.js'> </script>
 <script type='text/javascript' src='/opac/common/js/RemoteRequest.js'> </script>
index 688ea8e..6bd874d 100644 (file)
@@ -1,4 +1,4 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
 <?xml-stylesheet href="reporter.css" type="text/css"?>
 <?xml-stylesheet href="/opac/common/js/jscalendar/calendar-brown.css" type="text/css" ?>
@@ -38,7 +38,7 @@
 <script src='/opac/common/js/fmgen.js' type="application/x-javascript; e4x=1"/>
 <script src='/opac/common/js/Cookies.js' type="application/x-javascript; e4x=1"/>
 <script src='/opac/common/js/opac_utils.js' type="application/x-javascript; e4x=1"/>
-<script src='/opac/common/js/OrgTree.js' type="application/x-javascript; e4x=1"/>
+<script src='/opac/common/js/<!--#echo var="locale"-->/OrgTree.js' type="application/x-javascript; e4x=1"/>
 <script src='/opac/common/js/org_utils.js' type="application/x-javascript; e4x=1"/>
 <script src='/opac/common/js/RemoteRequest.js' type="application/x-javascript; e4x=1"/>
 <script src='/opac/common/js/md5.js' type="application/x-javascript; e4x=1"/>
index 168e714..cc4e031 100644 (file)
@@ -12,7 +12,7 @@
                <script type="text/javascript" src="util/fmall.js" />
                <script type="text/javascript" src="util/fmgen.js" />
                <script type="text/javascript" src="util/RemoteRequest.js" />
-               <script type="text/javascript" src="util/OrgTree.js" />
+               <script type='text/javascript' src='util/en-US/OrgTree.js' />
                <script type="text/javascript" src="util/org_utils.js" />   
                <script type="text/javascript" src="global_util.js" />   
                <messagecatalog id="offlineStrings" src='chrome://open_ils_staff_client/locale/offline.properties'/>
index 7264aa2..5f4d622 100644 (file)
@@ -234,7 +234,7 @@ const urls = {
        'opac' : '/opac/en-US/skin/default/xml/advanced.xml?nps=1',
        'opac_rdetail' : '/opac/en-US/skin/default/xml/rdetail.xml',
        'opac_rresult' : '/opac/en-US/skin/default/xml/rresult.xml',
-       'org_tree' : '/opac/common/js/OrgTree.js',
+       'org_tree' : '/opac/common/js/en-US/OrgTree.js',
        'browser' : '/opac/en-US/skin/default/xml/advanced.xml?nps=1',
        'fieldmapper' : '/opac/common/js/fmall.js',
        'isodate_lib_remote' : '/opac/common/js/DP_DateExtensions.js',
index b404d3f..382b34c 100644 (file)
@@ -16,7 +16,7 @@
                <script type="text/javascript" src="/opac/common/js/fmall.js" />
                <script type="text/javascript" src="/opac/common/js/fmgen.js" />
                <script type="text/javascript" src="/opac/common/js/RemoteRequest.js" />
-               <script type="text/javascript" src="/opac/common/js/OrgTree.js" />
+               <script type='text/javascript' src='/opac/common/js/<!--#echo var="locale"-->/OrgTree.js' />
                <script type="text/javascript" src="/opac/common/js/org_utils.js" />   
                <script type="text/javascript" src="global_util.js" />   
         <menupopup id="clipboard">
index 95345ba..51633b3 100644 (file)
@@ -20,7 +20,7 @@
                <script language='javascript' src='/opac/common/js/fmgen.js'> </script>
                <script language='javascript' src='/opac/common/js/Cookies.js'> </script>
                <script language='javascript' src='/opac/common/js/opac_utils.js'> </script>
-               <script language='javascript' src='/opac/common/js/OrgTree.js'> </script>
+               <script language='javascript' src='/opac/common/js/<!--#echo var="locale"-->/OrgTree.js'> </script>
                <script language='javascript' src='/opac/common/js/org_utils.js'> </script>
                <script language='javascript' src='/opac/common/js/init.js'> </script>
                <script language='javascript' src='/opac/common/js/RemoteRequest.js'> </script>
index fb1fa07..7b71133 100644 (file)
@@ -20,7 +20,7 @@
                <script language='javascript' src='/opac/common/js/fmgen.js'> </script>
                <script language='javascript' src='/opac/common/js/Cookies.js'> </script>
                <script language='javascript' src='/opac/common/js/opac_utils.js'> </script>
-               <script language='javascript' src='/opac/common/js/OrgTree.js'> </script>
+               <script language='javascript' src='/opac/common/js/<!--#echo var="locale"-->/OrgTree.js'> </script>
                <script language='javascript' src='/opac/common/js/org_utils.js'> </script>
                <script language='javascript' src='/opac/common/js/init.js'> </script>
                <script language='javascript' src='/opac/common/js/RemoteRequest.js'> </script>
index 72906c9..c6cb676 100644 (file)
@@ -20,7 +20,7 @@
                <script language='javascript' src='/opac/common/js/fmgen.js'> </script>
                <script language='javascript' src='/opac/common/js/Cookies.js'> </script>
                <script language='javascript' src='/opac/common/js/opac_utils.js'> </script>
-               <script language='javascript' src='/opac/common/js/OrgTree.js'> </script>
+               <script language='javascript' src='/opac/common/js/<!--#echo var="locale"-->/OrgTree.js'> </script>
                <script language='javascript' src='/opac/common/js/org_utils.js'> </script>
                <script language='javascript' src='/opac/common/js/init.js'> </script>
                <script language='javascript' src='/opac/common/js/RemoteRequest.js'> </script>
index 540e44d..78f81af 100644 (file)
@@ -22,7 +22,7 @@
                <script language='javascript' src='/opac/common/js/fmgen.js'> </script>
                <script language='javascript' src='/opac/common/js/Cookies.js'> </script>
                <script language='javascript' src='/opac/common/js/opac_utils.js'> </script>
-               <script language='javascript' src='/opac/common/js/OrgTree.js'> </script>
+               <script language='javascript' src='/opac/common/js/<!--#echo var="locale"-->/OrgTree.js'> </script>
                <script language='javascript' src='/opac/common/js/org_utils.js'> </script>
                <script language='javascript' src='/opac/common/js/init.js'> </script>
                <script language='javascript' src='/opac/common/js/RemoteRequest.js'> </script>
index 48fd2d3..3e76c1f 100644 (file)
@@ -21,7 +21,7 @@
                <script language='javascript' src='/opac/common/js/fmgen.js'> </script>
                <script language='javascript' src='/opac/common/js/Cookies.js'> </script>
                <script language='javascript' src='/opac/common/js/opac_utils.js'> </script>
-               <script language='javascript' src='/opac/common/js/OrgTree.js'> </script>
+               <script language='javascript' src='/opac/common/js/<!--#echo var="locale"-->/OrgTree.js'> </script>
                <script language='javascript' src='/opac/common/js/org_utils.js'> </script>
                <script language='javascript' src='/opac/common/js/init.js'> </script>
                <script language='javascript' src='/opac/common/js/RemoteRequest.js'> </script>
index c2e07da..15bf4c8 100644 (file)
@@ -20,7 +20,7 @@
                <script language='javascript' src='/opac/common/js/fmgen.js'> </script>
                <script language='javascript' src='/opac/common/js/Cookies.js'> </script>
                <script language='javascript' src='/opac/common/js/opac_utils.js'> </script>
-               <script language='javascript' src='/opac/common/js/OrgTree.js'> </script>
+               <script language='javascript' src='/opac/common/js/<!--#echo var="locale"-->/OrgTree.js'> </script>
                <script language='javascript' src='/opac/common/js/org_utils.js'> </script>
                <script language='javascript' src='/opac/common/js/init.js'> </script>
                <script language='javascript' src='/opac/common/js/RemoteRequest.js'> </script>
index c64694c..e9a2b02 100644 (file)
@@ -7,7 +7,7 @@
        <script type="text/javascript" src="/opac/common/js/fmall.js"></script>
        <script type="text/javascript" src="/opac/common/js/fmgen.js"></script>
        <script type="text/javascript" src="/opac/common/js/RemoteRequest.js"></script>
-       <script type="text/javascript" src="/opac/common/js/OrgTree.js"></script>
+       <script type='text/javascript' src='/opac/common/js/<!--#echo var="locale"-->/OrgTree.js'></script>
        <script type="text/javascript" src="/opac/common/js/org_utils.js"></script>
 
        <script type="text/javascript" src="/xul/server/OpenILS/global_util.js"></script>
index 92461ec..bfa76d6 100644 (file)
@@ -20,7 +20,7 @@
                <script language='javascript' src='/opac/common/js/fmgen.js'> </script>
                <script language='javascript' src='/opac/common/js/Cookies.js'> </script>
                <script language='javascript' src='/opac/common/js/opac_utils.js'> </script>
-               <script language='javascript' src='/opac/common/js/OrgTree.js'> </script>
+               <script language='javascript' src='/opac/common/js/<!--#echo var="locale"-->/OrgTree.js'> </script>
                <script language='javascript' src='/opac/common/js/org_utils.js'> </script>
                <script language='javascript' src='/opac/common/js/init.js'> </script>
                <script language='javascript' src='/opac/common/js/RemoteRequest.js'> </script>
index 5761a0c..6fe0a16 100644 (file)
@@ -34,7 +34,7 @@
        <script type="text/javascript">var myPackageDir = 'open_ils_staff_client'; var IAMXUL = true; var g = {};</script>
        <scripts id="openils_util_scripts"/>
 
-       <script type="text/javascript" src="/opac/common/js/OrgTree.js"/>
+       <script type='text/javascript' src='/opac/common/js/<!--#echo var="locale"-->/OrgTree.js'/>
        <script type="text/javascript" src="/opac/common/js/org_utils.js"/>
        <script type="text/javascript" src="/xul/server/main/JSAN.js"/>
        <script>
index 9b102cd..468423f 100644 (file)
@@ -20,7 +20,7 @@
                <script language='javascript' src='/opac/common/js/fmgen.js'> </script>
                <script language='javascript' src='/opac/common/js/Cookies.js'> </script>
                <script language='javascript' src='/opac/common/js/opac_utils.js'> </script>
-               <script language='javascript' src='/opac/common/js/OrgTree.js'> </script>
+               <script language='javascript' src='/opac/common/js/<!--#echo var="locale"-->/OrgTree.js'> </script>
                <script language='javascript' src='/opac/common/js/org_utils.js'> </script>
                <script language='javascript' src='/opac/common/js/init.js'> </script>
                <script language='javascript' src='/opac/common/js/RemoteRequest.js'> </script>
index 14de9b8..06975e0 100644 (file)
@@ -20,7 +20,7 @@
                 <script language='javascript' src='/opac/common/js/fmall.js'> </script>
                 <script language='javascript' src='/opac/common/js/fmgen.js'> </script>
                 <script language='javascript' src='/opac/common/js/opac_utils.js'> </script>
-                <script language='javascript' src='/opac/common/js/OrgTree.js'> </script>
+                <script language='javascript' src='/opac/common/js/<!--#echo var="locale"-->/OrgTree.js'> </script>
                 <script language='javascript' src='/opac/common/js/org_utils.js'> </script>
                 <script language='javascript' src='/opac/common/js/init.js'> </script>
                 <script language='javascript' src='/opac/common/js/RemoteRequest.js'> </script>