SSLRequireSSL
</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>
-
RewriteCond %{QUERY_STRING} locale=([^&]*)
RewriteRule ^/opac/[a-z]{2}-[A-Z]{2}/extras/slimpac/(.*)$ /opac/%1/extras/slimpac/$1? [redirect]
<LocationMatch /opac/[a-z]{2}-[A-Z]{2}/extras/slimpac/>
SSLRequireSSL
</LocationMatch>
-<LocationMatch /opac/extras/>
- SSILegacyExprParser on
- # 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>
-
RewriteCond %{QUERY_STRING} locale=([^&]*)
RewriteRule ^/opac/[a-z]{2}-[A-Z]{2}/extras/slimpac/(.*)$ /opac/%1/extras/slimpac/$1? [redirect]
<LocationMatch /opac/[a-z]{2}-[A-Z]{2}/extras/slimpac/>
+++ /dev/null
-
-/* XXX allow to pass in a 'local' var so the links back into the opac can be localized */
-/* maybe also a 'skin' var */
-
-function bbInit() {
- var cgi = new CGI();
- var bb = cgi.param('bb');
- if(!bb) { unHideMe($('not_found')); return; }
- var req = new Request(FLESH_PUBLIC_CONTAINER, 'biblio', bb);
- req.callback( bbShow );
- req.send();
-}
-
-
-var template;
-function bbShow(r) {
-
- var bb = r.getResultObject();
- if(!bb || !bb.pub()) { unHideMe($('not_found')); return; }
- $('bb_name').appendChild(text(bb.name()));
-
- var tbody = $('tbody');
- if(!template) template = tbody.removeChild($('row_template'));
-
- for( var i in bb.items() )
- tbody.appendChild(bbShowItem( template, bb.items()[i] ));
-}
-
-function bbShowItem( template, item ) {
- var row = template.cloneNode(true);
-
- var req = new Request( FETCH_RMODS, item.target_biblio_record_entry() );
- req.request.tlink = $n(row, 'title');
- req.request.alink = $n(row, 'author');
- req.request.blink = $n(row, 'by');
-
- req.callback( function(r) {
- var rec = r.getResultObject();
- buildTitleDetailLink(rec, r.tlink);
- r.tlink.setAttribute('href', '/opac/en-US/skin/default/xml/rdetail.xml?r='+rec.doc_id());
- r.alink.appendChild(text(rec.author()));
- unHideMe(r.blink);
- });
-
- req.send();
- return row;
-}
+++ /dev/null
-<?xml version='1.0' encoding='UTF-8'?>
-
-<!DOCTYPE html PUBLIC
- "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html xmlns="http://www.w3.org/1999/xhtml">
-
- <head>
- <title>Evergreen: Bookbag Viewer</title>
- <script language='javascript' src='/opac/common/js/utils.js'> </script>
- <script language='javascript' src='/opac/common/js//config.js'> </script>
- <script language='javascript' src='/opac/common/js/CGI.js'> </script>
-
- <script language='javascript' src='/opac/common/js/slimtree.js'> </script>
- <script language='javascript' src='/opac/common/js/JSON_v1.js'> </script>
- <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/<!--#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>
- <script language='javascript' src='bbags.js'> </script>
-
- <style type='text/css'>
- .hide_me { visibility: hidden; display: none }
- .has_color { background: #E0F0E0; color: #000000; }
- .data_grid { font-weight: 500; border-collapse: collapse;}
- .data_grid thead tr { background: #E0F0E0; color: #000000; }
- .data_grid thead td { border: 1px solid #808080; padding-right: 5px; padding-left: 5px;}
- .data_grid tbody td { border: 1px solid #E0E0E0; padding: 10px; }
- .data_grid_center { text-align: center; }
- </style>
-
- </head>
-
- <body onload='bbInit();'>
- <center>
- <table class='data_grid data_grid_center' width='80%' style='margin-top: 30px;'>
- <thead>
- <tr>
- <td id='view_bookbags'>
- <span>Items in Bookbag </span>
- <b><span id='bb_name'> </span></b>
- </td>
- </tr>
- </thead>
- <tbody id='tbody'>
- <tr id='row_template'>
- <td>
- <b><a href='javascript:void(0);' name='title'> </a></b>
- <span name='by' class='hide_me'> By </span><b><span name='author'> </span></b>
- </td>
- </tr>
- </tbody>
- </table>
- <span id='not_found' class='hide_me'><b>No Bookbag found!</b></span>
- </center>
- </body>
-
-
-</html>
-