From: Jeff Godin Date: Fri, 15 May 2015 23:16:50 +0000 (-0700) Subject: LP#1312309: Remove old bbags.xml interface, apache config X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=bcd6bb62f5f18ddb267a5ccccfc54118cce26dba;p=evergreen%2Fmasslnc.git LP#1312309: Remove old bbags.xml interface, apache config Remove the XML and Javascript for the old JSPAC book bags / bbags / list display. Also, remove block in Apache example configs for /opac/extras, as the only things requiring it were the (now removed) legacy self checkout interface, and this bbags interface. Signed-off-by: Jeff Godin Signed-off-by: Ben Shum --- diff --git a/Open-ILS/examples/apache/eg_vhost.conf.in b/Open-ILS/examples/apache/eg_vhost.conf.in index 8530e6b33a..c692fd73c3 100644 --- a/Open-ILS/examples/apache/eg_vhost.conf.in +++ b/Open-ILS/examples/apache/eg_vhost.conf.in @@ -278,14 +278,6 @@ Options -Indexes SSLRequireSSL - - # Force to en-US for now to satisfy bbags.xml - SetEnv locale en-US - Options +Includes - AddOutputFilter INCLUDES .xml - AddType application/xhtml+xml .xml - - RewriteCond %{QUERY_STRING} locale=([^&]*) RewriteRule ^/opac/[a-z]{2}-[A-Z]{2}/extras/slimpac/(.*)$ /opac/%1/extras/slimpac/$1? [redirect] diff --git a/Open-ILS/examples/apache_24/eg_vhost.conf.in b/Open-ILS/examples/apache_24/eg_vhost.conf.in index 6e8980ed37..28b8c1790e 100644 --- a/Open-ILS/examples/apache_24/eg_vhost.conf.in +++ b/Open-ILS/examples/apache_24/eg_vhost.conf.in @@ -279,15 +279,6 @@ Options -Indexes SSLRequireSSL - - 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 - - RewriteCond %{QUERY_STRING} locale=([^&]*) RewriteRule ^/opac/[a-z]{2}-[A-Z]{2}/extras/slimpac/(.*)$ /opac/%1/extras/slimpac/$1? [redirect] diff --git a/Open-ILS/web/opac/extras/bbags.js b/Open-ILS/web/opac/extras/bbags.js deleted file mode 100644 index be5fdc1a39..0000000000 --- a/Open-ILS/web/opac/extras/bbags.js +++ /dev/null @@ -1,47 +0,0 @@ - -/* 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; -} diff --git a/Open-ILS/web/opac/extras/bbags.xml b/Open-ILS/web/opac/extras/bbags.xml deleted file mode 100644 index 2b6ecf7537..0000000000 --- a/Open-ILS/web/opac/extras/bbags.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - - Evergreen: Bookbag Viewer - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - -
- Items in Bookbag - -
- - By -
- No Bookbag found! -
- - - - -