Giter Site home page Giter Site logo

wnetpbcore's Introduction

INTRODUCTION

This is a PBCore-compliant media asset database developed in Ruby on Rails.

To report bugs, email the author at [email protected]

To browse the source, go to git.mlcastle.net/?p=pbcore.git;a=summary

This software was developed by Roasted Vermicelli, LLC for the WNET Digital Archive. Copyright © 2008-2009 Educational Broadcasting Corporation. Copyright © 2009-2011 Roasted Vermicelli LLC.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see www.gnu.org/licenses/.

A copy of the GNU General Public License can also be found in the ‘GPL-3’ file in the root directory of the project.

Code in the vendor and gems directories of this project was created by other authors under potentially different Free Software licenses; look in those directories for further information.

This work employs PBCore. The PBCore (Public Broadcasting Metadata Dictionary) was created by the public broadcasting community in the United States of America for use by public broadcasters and others. Initial development funding for PBCore was provided by the Corporation for Public Broadcasting. The PBCore is built on the foundation of the Dublin Core (ISO 15836), an international standard for resource discovery (dublincore.org), and has been reviewed by the Dublin Core Metadata Initiative Usage Board. Copyright: 2005, Corporation for Public Broadcasting.

LOCAL DEVELOPMENT SET-UP

Refer to the server set-up, but don’t actually set up a server.

Some points:

  • Copy a config from config/auth_rules to config/authorization_rules.rb (site-specific)

  • You need to create config/application.json (see .example file)

  • There’s now scripts/install_required_gems.rb which will install all the dependencies needed.

  • At the moment, with rails 2.1, rubygems 1.3.7 is stable. To install with rvm:

    $ rvm rubygems 1.3.7

  • If you are using RVM you may try this for libxml/libxslt:

    $ gem install libxml-ruby –version 0.8.0

    For libxslt, this worked (macports/osx):

    $ gem install -r libxslt-ruby –version 0.9.2 – –with-xml2-lib=/opt/local/lib –with-xml2-include=/opt/local/include –with-xslt-lib=/opt/local/lib –with-xslt-include=/opt/local/include

  • Sunspot gem versions > 1.1 do not seem to work with Rails 2.1

  • Sunspot needs to be indexed and running:

	$ rake sunspot:solr:start

$ rake sunspot:solr:reindex

SERVER SET-UP

See doc/INSTALL.rdoc

Notes

  • /config/authorization_rules.rb is symlinked to a ruleset in /config/auth_rules/

  • /config/auth_rules/lockdown.rb is for DHC

  • zed is z.mlcastle.net

  • wnet is out-of-date and unsupported

  • bavc is gone

There’s a way to get a list of records as an RSS feed. If you don’t provide a search parameter, the records come back BY DEFAULT in most-recently-modified order.

wnetpbcore's People

Contributors

aviflombaum avatar daverice avatar manfred avatar mlc avatar nzkoz avatar somebox avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

wnetpbcore's Issues

Malformed xhtml within <h2><a> tags

Hello,
I am trying to use the search URLs to automate some tasks via xslt, but some of the html/xthml results are malformed. Specifically, the //h2/a elements in the html include e.g.  ampersands (see the source code below).

https://cavafy.wnyc.org/?facet_Series+Title%5B%5D=New+York+%26+Company&q=new+york+%26+company

Is it possible to instruct wnetpbcore to output its <h2><a> tags with xml-wellformed text? It seems all the problems stem from these tags --all other text seems OK in the html file.

Alternately, if you know of an online html cleaning service that can be incorporated into xslt, I am all ears. I have tried to use html tidy without success, due to authentication issues.

https://infohound.net/tidy/

Any help would be appreciated.

Thank you,

Marcos

<?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>WNYC &amp; WQXR Media Archive || Search for new york &amp; company</title>
<link href="/stylesheets/bundle_application.css?6492f0a79586b4c19ae686984d8eeefa8f621dda" media="screen" rel="stylesheet" type="text/css" />
<link href="/stylesheets/bundle_wnyc.css?6492f0a79586b4c19ae686984d8eeefa8f621dda" media="screen" rel="stylesheet" type="text/css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script><script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js" type="text/javascript"></script>
<script src="/javascripts/bundle_common.js?6492f0a79586b4c19ae686984d8eeefa8f621dda" type="text/javascript"></script>

<link href="/assets/opensearch.xml" rel="search" title="WNYC &amp; WQXR Media Archive" type="application/opensearchdescription+xml" />
<meta content="20" name="itemsPerPage" />
<meta content="3691" name="totalResults" />
<meta content="1" name="startIndex" />
<link href="https://cavafy.wnyc.org/assets.atom?facet_Series+Title%5B%5D=New+York+%26+Company&amp;q=new+york+%26+company" rel="alternate" type="application/atom+xml" />

</head>
<body>
<table class='holder'>
<tr>
<td align='center'>
<table class='header' id='header'>
<tr>
<td>&nbsp;</td>
</tr>
</table>
<table border='0' cellpadding='0' cellspacing='0' id='body'>


<tr>

<td align='left' bgcolor='#FFFFFF' class='contentMiddle'>
<div class='digg_pagination'>
<div class='page_info'>
Displaying entries <b>1&nbsp;-&nbsp;20</b> of <b>3691</b> in total
</div>
<span class="disabled prev_page">&laquo; Previous</span> <span class="current">1</span> <a href="/?facet_Series+Title%5B%5D=New+York+%26+Company&amp;page=2&amp;q=new+york+%26+company" rel="next">2</a> <a href="/?facet_Series+Title%5B%5D=New+York+%26+Company&amp;page=3&amp;q=new+york+%26+company">3</a> <a href="/?facet_Series+Title%5B%5D=New+York+%26+Company&amp;page=4&amp;q=new+york+%26+company">4</a> <a href="/?facet_Series+Title%5B%5D=New+York+%26+Company&amp;page=5&amp;q=new+york+%26+company">5</a> <a href="/?facet_Series+Title%5B%5D=New+York+%26+Company&amp;page=6&amp;q=new+york+%26+company">6</a> <a href="/?facet_Series+Title%5B%5D=New+York+%26+Company&amp;page=7&amp;q=new+york+%26+company">7</a> <a href="/?facet_Series+Title%5B%5D=New+York+%26+Company&amp;page=8&amp;q=new+york+%26+company">8</a> <a href="/?facet_Series+Title%5B%5D=New+York+%26+Company&amp;page=9&amp;q=new+york+%26+company">9</a> <span class="gap">&hellip;</span> <a href="/?facet_Series+Title%5B%5D=New+York+%26+Company&amp;page=184&amp;q=new+york+%26+company">184</a> <a href="/?facet_Series+Title%5B%5D=New+York+%26+Company&amp;page=185&amp;q=new+york+%26+company">185</a> <a href="/?facet_Series+Title%5B%5D=New+York+%26+Company&amp;page=2&amp;q=new+york+%26+company" class="next_page" rel="next">Next &raquo;</a>
</div>

<div class='recordItem' id='asset_13280'>
<div class='recordItemTitle'>
<h2>
<a href="https://cavafy.wnyc.org/assets/175208f4-6a88-4e63-840a-c456065721a7">New York & Company; New York & Company; WNYC</a>
</h2>
<h3>11616</h3>

<a href="https://cavafy.wnyc.org/assets/13280/edit" class="editBtn">EDIT</a>
<div class='moreBtn'><span>+</span><ul>
<li><a href="https://goo.gl/forms/EfNq3jnFILRg2pJn2">REQUEST</a></li>
<li><a href="https://cavafy.wnyc.org/assets/175208f4-6a88-4e63-840a-c456065721a7.xml">XML</a></li>
<li><a class="title2" href="#" onclick="if (confirm('Are you sure you wish to delete New York &amp; Company; New York &amp; Company; WNYC?')) { $.ajax({data:'_method=delete' + '&amp;authenticity_token=' + encodeURIComponent('JMCA0lxHuygdP/T2UGhgi4Gq73BKYEYfNRzbOlPKBCw='), dataType:'script', type:'post', url:'/assets/13280'}); }; return false;">DELETE</a></li>
</ul></div>
<ul class='recordFormats'>
<li>
11616.1
</li>
</ul>
</div>
</div>
<div class='recordItem' id='asset_28138'>
<div class='recordItemTitle'>
<h2>
<a href="https://cavafy.wnyc.org/assets/93b38d56-db05-4db9-aa63-0a5bd91b0ffc">New York & Company; New York & Company; WNYC</a>
</h2>
<h3>36316</h3>

<a href="https://cavafy.wnyc.org/assets/28138/edit" class="editBtn">EDIT</a>
<div class='moreBtn'><span>+</span><ul>
<li><a href="https://goo.gl/forms/EfNq3jnFILRg2pJn2">REQUEST</a></li>
<li><a href="https://cavafy.wnyc.org/assets/93b38d56-db05-4db9-aa63-0a5bd91b0ffc.xml">XML</a></li>
<li><a class="title2" href="#" onclick="if (confirm('Are you sure you wish to delete New York &amp; Company; New York &amp; Company; WNYC?')) { $.ajax({data:'_method=delete' + '&amp;authenticity_token=' + encodeURIComponent('JMCA0lxHuygdP/T2UGhgi4Gq73BKYEYfNRzbOlPKBCw='), dataType:'script', type:'post', url:'/assets/28138'}); }; return false;">DELETE</a></li>
</ul></div>
<ul class='recordFormats'>
<li>
36316.1 / NYCO 75 / WNY628 (1/4 inch audio tape)
</li>
<li>
36316.2 / Beta MASTER 1006 / WNY410 (Beta PCM F-1)
</li>
<li>
36316.3 / 5271 2111 0262 (CD-Audio)
</li>
<li>
36316.4 / 5271 2111 6013 (CD-Audio)
</li>
<li>
36316.5 (Betacam)
</li>
<li>
36316.6 (BWF)
</li>
</ul>
</div>
</div>

<div class='page_info'>
Displaying entries <b>1&nbsp;-&nbsp;20</b> of <b>3691</b> in total
</div>
<span class="disabled prev_page">&laquo; Previous</span> <span class="current">1</span> <a href="/?facet_Series+Title%5B%5D=New+York+%26+Company&amp;page=2&amp;q=new+york+%26+company" rel="next">2</a> <a href="/?facet_Series+Title%5B%5D=New+York+%26+Company&amp;page=3&amp;q=new+york+%26+company">3</a> <a href="/?facet_Series+Title%5B%5D=New+York+%26+Company&amp;page=4&amp;q=new+york+%26+company">4</a> <a href="/?facet_Series+Title%5B%5D=New+York+%26+Company&amp;page=5&amp;q=new+york+%26+company">5</a> <a href="/?facet_Series+Title%5B%5D=New+York+%26+Company&amp;page=6&amp;q=new+york+%26+company">6</a> <a href="/?facet_Series+Title%5B%5D=New+York+%26+Company&amp;page=7&amp;q=new+york+%26+company">7</a> <a href="/?facet_Series+Title%5B%5D=New+York+%26+Company&amp;page=8&amp;q=new+york+%26+company">8</a> <a href="/?facet_Series+Title%5B%5D=New+York+%26+Company&amp;page=9&amp;q=new+york+%26+company">9</a> <span class="gap">&hellip;</span> <a href="/?facet_Series+Title%5B%5D=New+York+%26+Company&amp;page=184&amp;q=new+york+%26+company">184</a> <a href="/?facet_Series+Title%5B%5D=New+York+%26+Company&amp;page=185&amp;q=new+york+%26+company">185</a> <a href="/?facet_Series+Title%5B%5D=New+York+%26+Company&amp;page=2&amp;q=new+york+%26+company" class="next_page" rel="next">Next &raquo;</a>
</div>


</td>
</tr>
<tr>
<td class='sidebarBottom'>&nbsp;</td>
<td class='contentBottom'>&nbsp;</td>
</tr>
</table>
<table border='0' cellpadding='3' cellspacing='3' class='footer' id='footer'>
<tr>
<td>
<a href="/static/about" class="footerLink popmeup">About this site</a>
<a href="http://www.wnyc.org/" class="footerLink">WNYC</a>
<a href="mailto:[email protected]" class="footerLink">Contact</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
<script type='text/javascript'>
  //<![CDATA[
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
  //]]>
</script>
<script type='text/javascript'>
  //<![CDATA[
    try{ 
    var pageTracker = _gat._getTracker("UA-283599-24");
    pageTracker._trackPageview();
    } catch(err) {}
  //]]>
</script>

</body>
</html>


Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.