Search forms

Hi,
I'm trying to create a search form that contains a search field for a particular metadata field. In the metadata schema I have created a picklist of terms for the user to select from and that works well. When I want to;


  • Search on the whole group of metadata terms in the picklist it won't let me. It wants a individual subterm specified as the search field.
    [*]Create a dropdown list of search terms that corresponds with the list contained in metdata it doesn't let me.
Any assistance would be appreciated.

Thanks,
Ian

Hi,
I got it to work. I was creating each item of the metadata picklist as a top level field in its own right.



Sorry. False alarm,

Ian

Hi,
whenever I go into edit my metadata for a particular page asset (that the schema is apply to), some of the fields are there but one is only partially there (i.e. its section title). The error message "PHP Notice: Undefined Index" is shown.



I followed the authoring guide to set up a picklist for the particular metadata attribute that's failing. Any suggestions would be most welcome.



Thanks again,

Ian

Can you set your debug level to showw the backtrace if it doesnt already (you'll find this on the system config screen).


Then when you see the error, you should be a backtrace link. Can you post the contents of the new screen so I can see where exactly it is missing the index.

Hi,
I wasn't getting a backtrace link so I tried changing a few attributes for the offending section of the metadata form. The error showed up because I hadn't made the picklist 'editable' or 'required'. Once I selected these the error disappeared and the picklist was available for all page assets.



Excellent,

Ian

If you can reproduce this, it would be worth logging a bug - sounds like you may have found one.

Hi,
I'm not sure what' s going on with this. I have applied metadata to some pages like this;

------------------------------------------------------------------------------------------

<!-- Basic //–>



<!-- DC.Subject //–>

<meta name="DC.Subject" lang="English" scheme="Internal Thesaurus" content="Financial Assistance; Keyword 1=Financial Assistance; Keyword 2=Claiming; Keyword 3=Rejections; Keyword 4=Suspensions;" />



<!-- Payment.Type //–>

<meta name="Payment" lang="English" scheme="Internal" content="Deductions; Tax Benefit; Overseas Payment" />

--------------------------------------------------------------------------------------------



The Payment types show up in a search list and on my initial search page but;


  • The first and second words show up separately in the search list.
    [*]Zero results are returned if I select say 'Deductions' from the picklist on my initial search form.
With DC.Subject, only the first term after 'content="...' produces search results or show up as entries in an A-Z page. Again, if the item is made up of two words, they don't appear together in the A-Z page.

So, I need help;
1. Setting up the dc.subject fields so that I can have five terms per page that are recognised/indexed by the system.
2. Setting up the seach form so that it returns actual results after I select a Payment Type from the picklist and hit search.
3. Setting up the metadata and/or search form so terms with multiple words are kept together in search lists and other search results.

I have regenerated the metadata schema across all files, checked that the pages have actual metadata and have re-indexed the site (indexing is also 'on').

Thanks for reading this,
Ian

Hi,
I solved one of the problems. I took away the value components for dc.subject and just used a semi-colon delimiter in the default field.



Ian