/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package org.dspace.app.xmlui.aspect.journal.landing;

import org.apache.log4j.Logger;

import org.dspace.app.xmlui.cocoon.AbstractDSpaceTransformer;

import org.dspace.app.xmlui.wing.Message;
import org.dspace.app.xmlui.wing.element.Body;
import org.dspace.app.xmlui.wing.element.Division;
import static org.dspace.app.xmlui.aspect.journal.landing.Const.*;

import java.sql.SQLException;
import org.dspace.app.xmlui.utils.UIException;
import org.dspace.app.xmlui.wing.WingException;
import org.dspace.authorize.AuthorizeException;
import org.xml.sax.SAXException;
import java.io.IOException;

/**
 *
 * @author Nathan Day
 */
public class JournalSearch extends AbstractDSpaceTransformer {
    
    private static final Logger log = Logger.getLogger(JournalSearch.class);
    private static final Message T_panelHeadFormatString = message("xmlui.JournalLandingPage.JournalSearch.panel_head"); 
    
    @Override
    public void addBody(Body body) throws SAXException, WingException,
            UIException, SQLException, IOException, AuthorizeException
    {
        // ------------------
        // Search data in Dryad associated with Journal X
        // 
        // ------------------
        Division searchDiv = body.addDivision(SEARCH_DIV);
        
        
    }
}

@@ -769,16 +769,110 @@
 ception;
+%0Aimport org.apache.avalon.framework.parameters.ParameterException;%0Aimport java.net.URLEncoder;
 %0A%0A/**%0A *
@@ -1087,24 +1087,13 @@
 anel
-H
+_h
 ead
-FormatString
  = m
@@ -1321,16 +1321,288 @@
 n%0A    %7B%0A
+        String journalName = null;%0A        try %7B%0A            journalName = parameters.getParameter(PARAM_JOURNAL_NAME);%0A        %7D catch (ParameterException ex) %7B%0A            log.error((ex));%0A        %7D%0A        if (journalName == null %7C%7C journalName.length() == 0) return;%0A%0A
         
@@ -1783,33 +1783,94 @@
 _DIV
-);%0A        %0A        
+, SEARCH_DIV);%0A        searchDiv.setHead(T_panel_head.parameterize(journalName));
 %0A    %7D%0A%7D
 %0A
@@ -1868,9 +1868,8 @@
 %0A    %7D%0A%7D
-%0A

fix merge error