Pawtucket: Basic coding question, help please

I am sorry to ask such a basic question, but I don't speak PHP.

I need to introduce a metadata element into the results in the hierarchical collection browser.

The metadata element is sort_name_text

In /views/Collections/child_list_html.php I need to understand how/what code to add to

               $vs_output .= $qr_collections->get("ca_collections.preferred_labels");

in order to add the sort_name_text (in caps) plus a colon and a space (": ") to the result in the hierarchical browser.

The result would look like "NAME: Longer title with name"

Can anyone help me out?

Many thanks,



  • edited June 2


    Not sure I understand what you exactly want, but, try this:

    $sort_name_text = $qr_collections->get("ca_collections.sort_name_text");
    $vs_output .= strtoupper($sort_name_text);
    $vs_output .= ": ";
    $vs_output .= $qr_collections->get("ca_collections.preferred_labels");

    (Also, you may flush the cache files of Pawtucket (delete all files in /app/tmp).)

  • Many thanks to you, darrigan, for taking the time to help us out!

Sign In or Register to comment.