Changeset 366d22 in indico
- Timestamp:
- 06/10/10 18:11:33 (3 years ago)
- Branches:
- master, burotel, hello-world-walkthrough, ipv6, new-webex, v0.97-series, v0.98-series, v0.98.2, v0.98.3, v0.98b1, v0.98b2, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, 0da0c1403bae8e51d8229f460181c71b9e6dda72
- Children:
- b3195a
- Parents:
- b31f6a
- git-author:
- Jeremy Herr <jeremy.herr@…> (03/25/10 15:48:07)
- git-committer:
- Jeremy Herr <jeremy.herr@…> (06/10/10 18:11:33)
- Location:
- indico/MaKaC
- Files:
-
- 8 edited
-
common/output.py (modified) (4 diffs)
-
plugins/Collaboration/RecordingManager/common.py (modified) (3 diffs)
-
plugins/Collaboration/RecordingManager/options.py (modified) (1 diff)
-
plugins/Collaboration/RecordingManager/output.py (modified) (1 diff)
-
plugins/Collaboration/RecordingManager/services.py (modified) (3 diffs)
-
plugins/Collaboration/RecordingManager/tpls/Extra.js (modified) (3 diffs)
-
webinterface/stylesheets/cds_marcxml_video_contribution.xsl (modified) (2 diffs)
-
webinterface/stylesheets/cds_marcxml_video_presentation.xsl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
indico/MaKaC/common/output.py
r79c280 r366d22 201 201 return roomName 202 202 203 204 def _confToXML(self, conf, vars, includeSession=1, includeContribution=1, includeMaterial=1, showSession="all", showDate="all",showContribution="all", showWithdrawed=True, useSchedule=True, out=None, source=None): 203 def _confToXML(self, conf, vars, includeSession=1, includeContribution=1, includeMaterial=1, showSession="all", showDate="all",showContribution="all", showWithdrawed=True, useSchedule=True, out=None, source=None, videoFormat=None): 205 204 if not out: 206 205 out = self._XMLGen … … 236 235 from MaKaC.plugins.Collaboration.RecordingManager.output import MarcAccessListGenerator 237 236 MarcAccessListGenerator().generateAccessListXML(out, conf) 237 MarcAccessListGenerator().generateVideoXML(out, conf, videoFormat) 238 238 239 239 if conf.canModify( self.__aw ) and vars and modificons: … … 865 865 866 866 867 def confToXML(self,conf,includeSession,includeContribution,includeMaterial,showSession="all", showContribution="all", out=None, forceCache=False, source=None ):867 def confToXML(self,conf,includeSession,includeContribution,includeMaterial,showSession="all", showContribution="all", out=None, forceCache=False, source=None, videoFormat=None): 868 868 if not out: 869 869 out = self._XMLGen … … 877 877 else: 878 878 temp = XMLGen(init=False) 879 self._confToXML(conf,None,includeSession,includeContribution,includeMaterial,showSession=showSession, showDate="all", showContribution=showContribution, showWithdrawed=False, useSchedule=False, out=temp, source=source )879 self._confToXML(conf,None,includeSession,includeContribution,includeMaterial,showSession=showSession, showDate="all", showContribution=showContribution, showWithdrawed=False, useSchedule=False, out=temp, source=source, videoFormat=videoFormat) 880 880 xml = temp.getXml() 881 881 self.cache.cacheObject(version, xml, conf) -
indico/MaKaC/plugins/Collaboration/RecordingManager/common.py
r79c280 r366d22 374 374 connection.close() 375 375 376 def createCDSRecord(IndicoID, aw ):376 def createCDSRecord(IndicoID, aw, videoFormat): 377 377 '''Retrieve a MARC XML string for the given conference, then package it up and send it to CDS.''' 378 378 … … 397 397 Logger.get('RecMan').info("generating MARC XML for a conference") 398 398 # og.confToXMLMarc21(conf, 1, 1, 1, forceCache=True, out=xmlGen, source='RecordingManager') 399 og.confToXML(conf, 0, 0, 1, source='RecordingManager' )399 og.confToXML(conf, 0, 0, 1, source='RecordingManager', videoFormat=videoFormat) 400 400 # conf,includeSession,includeContribution,includeMaterial,showSession="all", showContribution="all", out=None, forceCache=False 401 401 elif parsed["type"] == 'session': … … 407 407 Logger.get('RecMan').info("generating MARC XML for a contribution") 408 408 cont = conf.getContributionById(parsed["contribution"]) 409 og.contribToXMLMarc21(cont, includeMaterial=1, forceCache=True, out=xmlGen, source='RecordingManager' )409 og.contribToXMLMarc21(cont, includeMaterial=1, forceCache=True, out=xmlGen, source='RecordingManager', videoFormat=videoFormat) 410 410 # cont,includeMaterial=1, out=None, forceCache=False, source=None 411 411 elif parsed["type"] == 'subcontribution': -
indico/MaKaC/plugins/Collaboration/RecordingManager/options.py
r66fbc0 r366d22 95 95 "visible": True} ), 96 96 97 ("videoFormatStandard", {"description" : _("Standard video format"), 98 "type": str, 99 "defaultValue": "720x576 4/3, 25", 100 "editable": True, 101 "visible": True} ), 102 103 ("videoFormatWide", {"description" : _("Wide-screen video format"), 104 "type": str, 105 "defaultValue": "720x576 16/9, 25", 106 "editable": True, 107 "visible": True} ), 108 97 109 ("MarcField506Subfield2", {"description" : _("MARC datafield 506 subfield 2"), 98 110 "type": str, -
indico/MaKaC/plugins/Collaboration/RecordingManager/output.py
r79c280 r366d22 78 78 out.writeTag("email", email_id) 79 79 out.closeTag("allowedAccessEmails") 80 81 def generateVideoXML(self, out, obj, videoFormat): 82 """Generate XML variables needed for video records.""" 83 84 videoTagStandard = CollaborationTools.getOptionValue("RecordingManager", "videoFormatStandard") 85 videoTagWide = CollaborationTools.getOptionValue("RecordingManager", "videoFormatWide") 86 87 if videoFormat == 'standard': 88 out.writeTag("videoFormat", videoTagStandard) 89 elif videoFormat == 'wide': 90 out.writeTag("videoFormat", videoTagWide) -
indico/MaKaC/plugins/Collaboration/RecordingManager/services.py
r2ae83d r366d22 47 47 def _checkParams(self): 48 48 CollaborationPluginServiceBase._checkParams(self) #puts the Conference in self._conf 49 self._IndicoID = self._params.get('IndicoID', None) 50 self._LOID = self._params.get('LOID', None) 51 self._confId = self._params.get('conference', None) 49 self._IndicoID = self._params.get('IndicoID', None) 50 self._LOID = self._params.get('LOID', None) 51 self._confId = self._params.get('conference', None) 52 self._videoFormat = self._params.get('videoFormat', None) 52 53 53 54 if not self._IndicoID: … … 57 58 if not self._confId: 58 59 raise RecordingManagerException("No conference ID supplied") 60 if not self._videoFormat: 61 raise RecordingManagerException("No video format supplied") 59 62 60 63 def _getAnswer(self): … … 63 66 64 67 # Get the MARC XML and submit it to CDS 65 resultCreateCDSRecord = createCDSRecord(self._IndicoID, self._aw )68 resultCreateCDSRecord = createCDSRecord(self._IndicoID, self._aw, self._videoFormat) 66 69 67 70 # raise RecordingManagerException("got this far") -
indico/MaKaC/plugins/Collaboration/RecordingManager/tpls/Extra.js
r209930 r366d22 241 241 var RMselectedLOName = ''; 242 242 var RMviewMode = ''; 243 var RMvideoFormat = 'standard'; 243 244 244 245 function RMbuttonModeSelect(mode) { … … 356 357 357 358 function RMchooseVideoFormat(format_string) { 358 if (format_string == '4/3') { 359 360 } 361 else if (format_string == '16/9') { 362 363 } 364 359 RMvideoFormat = format_string; 365 360 } 366 361 … … 401 396 conference: '<%= ConferenceId %>', 402 397 IndicoID: RMselectedTalkId, 403 LOID: RMselectedLOID 398 LOID: RMselectedLOID, 399 videoFormat: RMvideoFormat 404 400 }, 405 401 function(result, error){ -
indico/MaKaC/webinterface/stylesheets/cds_marcxml_video_contribution.xsl
rb31f6a r366d22 56 56 <datafield tag="300" ind1=" " ind2=" "> 57 57 <subfield code="a">Streaming video</subfield> 58 <subfield code="b"> 720x576 4/3, 25</subfield>58 <subfield code="b"><xsl:value-of select="./contribution/videoFormat" /></subfield> 59 59 </datafield> 60 60 <datafield tag="340" ind1=" " ind2=" "> … … 146 146 </xsl:if> 147 147 <xsl:value-of select="./@first" disable-output-escaping="yes"/> 148 </xsl:template> 148 </xsl:template> 149 149 150 150 </xsl:stylesheet> -
indico/MaKaC/webinterface/stylesheets/cds_marcxml_video_presentation.xsl
rb31f6a r366d22 56 56 <datafield tag="300" ind1=" " ind2=" "> 57 57 <subfield code="a">Streaming video</subfield> 58 <subfield code="b"> 720x576 4/3, 25</subfield>58 <subfield code="b"><xsl:value-of select="./videoFormat" /></subfield> 59 59 </datafield> 60 60 <datafield tag="340" ind1=" " ind2=" ">
Note: See TracChangeset
for help on using the changeset viewer.
