001/*
002 * Copyright 2011 The Kuali Foundation.
003 * 
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 * 
008 * http://www.opensource.org/licenses/ecl2.php
009 * 
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package org.kuali.ole.select.lookup;
017
018import org.kuali.rice.krad.bo.BusinessObjectBase;
019
020import java.util.LinkedHashMap;
021
022public class DocData extends BusinessObjectBase implements DocStoreData {
023
024    private String author;
025    private String isbn;
026    private String localIdentifier;
027    private String titleId;
028    private String uniqueId;
029    private String bibIdentifier;
030    private String itemTitle;
031
032    public String getIsbn() {
033        return isbn;
034    }
035
036    public void setIsbn(String isbn) {
037        this.isbn = isbn;
038    }
039
040    public String getPublisher() {
041        return publisher;
042    }
043
044    public void setPublisher(String publisher) {
045        this.publisher = publisher;
046    }
047
048    public String getLocalIdentifier() {
049        return localIdentifier;
050    }
051
052    public void setLocalIdentifier(String localIdentifier) {
053        this.localIdentifier = localIdentifier;
054    }
055
056    private String publisher;
057
058    public String getAuthor() {
059        return author;
060    }
061
062    public String getTitleId() {
063        return titleId;
064    }
065
066    public void setTitleId(String titleId) {
067        this.titleId = titleId;
068    }
069
070    public String getBibIdentifier() {
071        return bibIdentifier;
072    }
073
074    public void setBibIdentifier(String bibIdentifier) {
075        this.bibIdentifier = bibIdentifier;
076    }
077
078    public DocData() {
079    }
080
081    public DocData(String author, String title, String isbn, String publisher, String placeOfPulication, String publicationDate, String format, String price, String titleId, String uniqueId, String bibIdentifier) {
082        this.author = author;
083        this.title = title;
084        this.isbn = isbn;
085        this.publisher = publisher;
086        this.placeOfPublication = placeOfPulication;
087        this.publicationDate = publicationDate;
088        this.format = format;
089        this.price = price;
090        this.titleId = titleId;
091        this.uniqueId = uniqueId;
092        this.bibIdentifier = bibIdentifier;
093
094    }
095
096    public DocData(String author, String title, String isbn, String localIdentifier, String publisher, String placeOfPulication, String publicationDate, String format, String price, String titleId, String uniqueId, String bibIdentifier) {
097        this.author = author;
098        this.title = title;
099        this.isbn = isbn;
100        this.localIdentifier = localIdentifier;
101        this.publisher = publisher;
102        this.placeOfPublication = placeOfPulication;
103        this.publicationDate = publicationDate;
104        this.format = format;
105        this.price = price;
106        this.titleId = titleId;
107        this.uniqueId = uniqueId;
108        this.bibIdentifier = bibIdentifier;
109
110    }
111
112    public void setAuthor(String author) {
113        this.author = author;
114    }
115
116    public String getTitle() {
117        return title;
118    }
119
120    public void setTitle(String title) {
121        this.title = title;
122    }
123
124    private String title;
125
126
127    protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
128        // TODO Auto-generated method stub
129        return null;
130    }
131
132    public void refresh() {
133        // TODO Auto-generated method stub
134
135    }
136
137    private String placeOfPublication;
138    private String publicationDate;
139    private String format;
140    private String price;
141
142    public String getPlaceOfPublication() {
143        return placeOfPublication;
144    }
145
146    public void setPlaceOfPublication(String placeOfPublication) {
147        this.placeOfPublication = placeOfPublication;
148    }
149
150    public String getPublicationDate() {
151        return publicationDate;
152    }
153
154    public void setPublicationDate(String publicationDate) {
155        this.publicationDate = publicationDate;
156    }
157
158    public String getFormat() {
159        return format;
160    }
161
162    public void setFormat(String format) {
163        this.format = format;
164    }
165
166    public String getPrice() {
167        return price;
168    }
169
170    public void setPrice(String price) {
171        this.price = price;
172    }
173
174    public String getUniqueId() {
175        return uniqueId;
176    }
177
178    public void setUniqueId(String uniqueId) {
179        this.uniqueId = uniqueId;
180    }
181
182    public String getItemTitle() {
183
184        itemTitle = getTitle();
185        if(itemTitle.contains("<")){
186           itemTitle = itemTitle.replace("<","&#60;");
187        }
188        if(itemTitle.contains(">")){
189            itemTitle = itemTitle.replace(">","&#62;");
190        }
191        return itemTitle;
192    }
193
194    public void setItemTitle(String itemTitle) {
195        this.itemTitle = itemTitle;
196    }
197}