Oral histories (Many thanks Lingling!)

Many thanks Lingling! GitHUB

  • Transcripts UI
cd ~/github
git clone git://github.com/sprklinginfo/transcripts_ui
mv transcripts_ui /var/www/fabb.to.cnr.it/sites/all/modules/
cd /var/www/fabb.to.cnr.it/
drush en transcripts_ui

Browse to admin/config/user-interface/transcripts:

  1. Tiers = or_transcript|Transcript
  2. Speaker names = or_speaker|Speaker


  • Oral Histories Solution Pack
cd ~/github
git clone git://github.com/digitalutsc/islandora_solution_pack_oralhistories
mv islandora_solution_pack_oralhistories /var/www/fabb.to.cnr.it/sites/all/modules/
cd /var/www/fabb.to.cnr.it/
drush -u 1 en islandora_oralhistories

Browse to admin/islandora/solution_pack_config/solution_packs:

  1. check all required objects are ingested


Browse to admin/islandora/solution_pack_config/oralhistories:

  1. Create WEBVTT file for captions or subtitles. = YES
  2. Enable captions/subtitles display = YES
  3. Enable transcript display = YES
  4. Display media and transcript side-by-side = NO
  5. Display annotation tab = NO


  • Oral Histories Solr indexing

On back-end server:

cd /var/lib/tomcat7/webapps/fedoragsearch/WEB-INF/classes/fgsconfigFinal/index/FgsIndex/islandora_transforms
wget https://raw.githubusercontent.com/digitalutsc/islandora_solution_pack_oralhistories/master/xsl/or_transcript_solr.xslt
chown tomcat7:tomcat7 or_transcript_solr.xslt

cd ..
cp foxmlToSolr.xslt foxmlToSolr.xslt.OK
nano -w foxmlToSolr.xslt

  +  <xsl:include href="/var/lib/tomcat7/webapps/fedoragsearch/WEB-INF/classes/fgsconfigFinal/index/FgsIndex/islandora_transforms/or_transcript_solr.xslt"/>
 
cd /usr/local/solr/islandora/conf/
cp schema.xml schema.xml.OK
nano -w schema.xml

  + <dynamicField name="or_*" type="text" indexed="true" stored="true" multiValued="true"/>

service tomcat7 restart

NOTE
We use a modified version of or_transcript_solr.xslt to index transcription text as full-text.

<?xml version="1.0" encoding="UTF-8"?>
<!-- ORALHISTORIES TRANSCRIPT -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:foxml="info:fedora/fedora-system:def/foxml#" xmlns:dcterms="http://purl.org/dc/terms/">
 
    <xsl:template match="foxml:datastream[@ID='TRANSCRIPT']/foxml:datastreamVersion[last()]" name="index_TRANSCRIPT">
        <xsl:param name="content"/>
        <xsl:param name="prefix">or_</xsl:param>
        <xsl:param name="solespeaker" select="$content//solespeaker"></xsl:param>
        <xsl:for-each select="$content//cue">
                <field>
                    <xsl:attribute name="name">
                        <xsl:value-of select="concat($prefix, 'cue_id')"/>
                    </xsl:attribute>
                    <xsl:value-of select="position()"/>
                </field>
                <xsl:if test="$content//solespeaker">
                    <field>
                        <xsl:attribute name="name">
                            <xsl:value-of select="concat($prefix, 'speaker')"/>
                        </xsl:attribute>
                        <xsl:value-of select="$solespeaker"/>
                    </field>
                </xsl:if>
                <xsl:apply-templates>
                    <xsl:with-param name="prefix" select="$prefix"/>
                </xsl:apply-templates>
         </xsl:for-each>
 
 
        <field>
             <xsl:attribute name="name">
               <xsl:value-of select="concat('OCR_', 't')"/>
             </xsl:attribute>
 
                        <xsl:for-each select="$content//cue">
                                <xsl:for-each select="speaker">
                                        <xsl:value-of select="."/><xsl:text> </xsl:text>
                                </xsl:for-each>
                                <xsl:for-each select="transcript">
                                        <xsl:value-of select="."/><xsl:text> </xsl:text>
                                </xsl:for-each>
                        </xsl:for-each>
        </field>
 
    </xsl:template>
 
    <xsl:template match="//cue/*">
        <xsl:param name="prefix" />
        <xsl:for-each select=".">
            <field>
                <xsl:attribute name="name">
                    <xsl:value-of select="concat($prefix, local-name())"/>
                </xsl:attribute>
                <xsl:value-of select="."/>
            </field>
        </xsl:for-each>
    </xsl:template>
</xsl:stylesheet>
 
 
isla7x/or.txt ยท Last modified: 2016/02/24 08:35 by giancarlo

Developers: CNR IRCrES IT Office and Library
Giancarlo Birello (giancarlo.birello _@_ ircres.cnr.it) and Anna Perin (anna.perin _@_ ircres.cnr.it)
FAbb@TO.CNR is licensed under: Creative Commons License
Recent changes RSS feed Creative Commons License Valid XHTML 1.0 Valid CSS Driven by DokuWiki
Drupal Garland Theme for Dokuwiki