Changeset 74

Show
Ignore:
Timestamp:
26/04/06 09:06:04
Author:
jwalsh
Message:

Changes for advanced search, and gifs added.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/PloneSoftwareCenter/content/schemata.py

    r58 r74  
    11161116        name='platform', 
    11171117        required=1, 
    1118         searchable=0
     1118        searchable=1
    11191119        vocabulary='getPlatformVocab', 
    11201120        widget=SelectionWidget( 
  • trunk/PloneSoftwareCenter/skins/plonesoftwarecenter/browse.pt

    r63 r74  
    6464                tal:define="category     python:here.getCategoryName(categoryId, CatType)"> 
    6565            <h6> 
     66                <span tal:condition="python:category == 'Text input Projects'"> 
     67                        <img tal:replace="structure here/textinput_32.gif" alt="enhanced view"/> 
     68                </span> 
     69                <span tal:condition="python:category == 'Accessing the Web'"> 
     70                        <img tal:replace="structure here/webaccess_32.gif" alt="enhanced view"/> 
     71                </span> 
     72                <span tal:condition="python:category == 'Using the Mouse'"> 
     73                        <img tal:replace="structure here/mouse_32.gif" alt="enhanced view"/> 
     74                </span> 
     75                <span tal:condition="python:category == 'Viewing the screen'"> 
     76                        <img tal:replace="structure here/viewing_32.gif" alt="enhanced view"/> 
     77                </span> 
     78                <span tal:condition="python:category == 'Symbols'"> 
     79                        <img tal:replace="structure here/symbol_32.gif" alt="enhanced view"/> 
     80                </span> 
     81                <span tal:condition="python:category == 'Alternative Access'"> 
     82                        <img tal:replace="structure here/altaccess_32.gif" alt="enhanced view"/> 
     83                </span> 
     84                <span tal:condition="python:category == 'Learning and Eductation'"> 
     85                        <img tal:replace="structure here/education_32.gif" alt="enhanced view"/> 
     86                </span> 
     87                <span tal:condition="python:category == 'Other need'"> 
     88                        <img tal:replace="structure here/other_32.gif" alt="enhanced view"/> 
     89                </span> 
    6690                    <a href="" 
    6791                       tal:content="category" 
  • trunk/PloneSoftwareCenter/skins/plonesoftwarecenter/by-category.pt

    r63 r74  
    9494                          tal:content="package/Title">Title</a> 
    9595                      </dt> 
     96                      Category: 
     97                        <span tal:repeat="cattype package/getCategoryTitles()"> 
     98                                <span tal:condition="python:cattype == 'On Screen Keyboard Projects'"> 
     99                                        <img tal:replace="structure here/keyboard_16.gif" alt="On Screen Keyboard Project"/> 
     100                                </span> 
     101                                <span tal:condition="python:cattype == 'Symol Library'"> 
     102                                        <img tal:replace="structure here/symbollib_16.gif" alt="Symbol Library"/> 
     103                                </span> 
     104                                <span tal:condition="python:cattype == 'Text to Speech'"> 
     105                                        <img tal:replace="structure here/texttospeech_16.gif" alt="Text to Speech"/> 
     106                                </span> 
     107                                <span tal:condition="python:cattype == 'Computer Automation'"> 
     108                                        <img tal:replace="structure here/automation_16.gif" alt="Computer Automation"/> 
     109                                </span> 
     110                                <span tal:condition="python:cattype == 'Switch Input Software'"> 
     111                                        <img tal:replace="structure here/switch_16.gif" alt="Switch Input"/> 
     112                                </span> 
     113                                <span tal:condition="python:cattype == 'Alternative and Augmentative Communication'"> 
     114                                        <img tal:replace="structure here/aac_16.gif" alt="Alternative and Augmentative Communication"/> 
     115                                </span> 
     116                                <span tal:condition="python:cattype == 'Environmental Control'"> 
     117                                        <img tal:replace="structure here/education_16.gif" alt="Environmental Control"/> 
     118                                </span> 
     119                                <span tal:condition="python:cattype == 'Educational and Learning'"> 
     120                                        <img tal:replace="structure here/education_16.gif" alt="Educational and Learning"/> 
     121                                </span> 
     122                                <span tal:condition="python:cattype == 'Other function'"> 
     123                                        <img tal:replace="structure here/other_16.gif" alt="Other function"/> 
     124                                </span> 
     125                        </span> 
     126                         
    96127                    <dd tal:content="package/Description">Description</dd> 
    97128                   </tal:package> 
  • trunk/PloneSoftwareCenter/skins/plonesoftwarecenter/oats_view.pt

    r67 r74  
    7676            </div> 
    7777 
     78            <a href="" 
     79                       tal:attributes="href string:${here/absolute_url}/advanced_search" 
     80                       i18n:translate="" > 
     81                        Advanced Search 
     82             </a> 
    7883        </fieldset> 
    7984     
  • trunk/PloneSoftwareCenter/skins/plonesoftwarecenter/psc_project_view.pt

    r72 r74  
    3939 
    4040       <div class="discreet"> 
    41             Category: <span tal:replace="python: ', '.join(here.getCategoryTitles())" /> 
     41        Category: 
     42        <span tal:repeat="category python:here.getCategoryTitles()"> 
     43                <span tal:condition="python:category == 'On Screen Keyboard Projects'"> 
     44                        <img tal:replace="structure here/keyboard_16.gif" alt="On Screen Keyboard Project"/> 
     45                </span> 
     46                <span tal:condition="python:category == 'Symol Library'"> 
     47                        <img tal:replace="structure here/symbollib_16.gif" alt="Symbol Library"/> 
     48                </span> 
     49                <span tal:condition="python:category == 'Text to Speech'"> 
     50                        <img tal:replace="structure here/texttospeech_16.gif" alt="Text to Speech"/> 
     51                </span> 
     52                <span tal:condition="python:category == 'Computer Automation'"> 
     53                        <img tal:replace="structure here/automation_16.gif" alt="Computer Automation"/> 
     54                </span> 
     55                <span tal:condition="python:category == 'Switch Input Software'"> 
     56                        <img tal:replace="structure here/switch_16.gif" alt="Switch Input"/> 
     57                </span> 
     58                <span tal:condition="python:category == 'Alternative and Augmentative Communication'"> 
     59                        <img tal:replace="structure here/aac_16.gif" alt="Alternative and Augmentative Communication"/> 
     60                </span> 
     61                <span tal:condition="python:category == 'Environmental Control'"> 
     62                        <img tal:replace="structure here/education_16.gif" alt="Environmental Control"/> 
     63                </span> 
     64                <span tal:condition="python:category == 'Educational and Learning'"> 
     65                        <img tal:replace="structure here/education_16.gif" alt="Educational and Learning"/> 
     66                </span> 
     67                <span tal:condition="python:category == 'Other function'"> 
     68                        <img tal:replace="structure here/other_16.gif" alt="Other function"/> 
     69                </span> 
     70        </span> 
     71 
    4272        </div> 
    4373