Mercurial > hg > LGServices
changeset 61:2486846e61d5
new: auto refresh page when there's new version saved from Ext-Interface
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Wed, 25 May 2016 11:20:27 +0200 |
parents | 90d5e86c157d |
children | 824b808a7481 |
files | src/main/java/de/mpiwg/web/jsp/TopicListPage.java src/main/java/de/mpiwg/web/topicList/fullTextSearch/SortContentByAdminType.java src/main/java/de/mpiwg/web/topicList/fullTextSearch/SortContentByBookId.java src/main/java/de/mpiwg/web/topicList/fullTextSearch/SortContentByBookName.java src/main/java/de/mpiwg/web/topicList/fullTextSearch/SortContentByDynasty.java src/main/java/de/mpiwg/web/topicList/fullTextSearch/SortContentById.java src/main/java/de/mpiwg/web/topicList/fullTextSearch/SortContentByInx.java src/main/java/de/mpiwg/web/topicList/fullTextSearch/SortContentByLevel1.java src/main/java/de/mpiwg/web/topicList/fullTextSearch/SortContentByLevel2.java src/main/java/de/mpiwg/web/topicList/fullTextSearch/SortContentByPeriod.java src/main/java/de/mpiwg/web/topicList/fullTextSearch/SortContentByStartPage.java |
diffstat | 11 files changed, 0 insertions(+), 156 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/de/mpiwg/web/jsp/TopicListPage.java Wed May 25 11:11:32 2016 +0200 +++ b/src/main/java/de/mpiwg/web/jsp/TopicListPage.java Wed May 25 11:20:27 2016 +0200 @@ -12,7 +12,6 @@ import de.mpiwg.gazetteer.bo.LGTopic; import de.mpiwg.gazetteer.utils.DataProvider; -import de.mpiwg.web.fullTextSearch.SortContentByStartPage; import de.mpiwg.web.topicList.SortByDescription; import de.mpiwg.web.topicList.SortByLastModified; import de.mpiwg.web.topicList.SortByNameCh;
--- a/src/main/java/de/mpiwg/web/topicList/fullTextSearch/SortContentByAdminType.java Wed May 25 11:11:32 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,16 +0,0 @@ -package de.mpiwg.web.fullTextSearch; - -import java.util.Comparator; - -import de.mpiwg.gazetteer.db.DBContents; - - -public class SortContentByAdminType implements Comparator<DBContents>{ - - public int compare(DBContents o1, DBContents o2) { - if(o1.getSection() == null || o2.getSection() == null){ - return o1.getId().compareTo(o2.getId()); - } - return o1.getSection().getBook().getAdmin_type().compareTo(o2.getSection().getBook().getAdmin_type()); - } -}
--- a/src/main/java/de/mpiwg/web/topicList/fullTextSearch/SortContentByBookId.java Wed May 25 11:11:32 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,15 +0,0 @@ -package de.mpiwg.web.fullTextSearch; - -import java.util.Comparator; - -import de.mpiwg.gazetteer.db.DBContents; - -public class SortContentByBookId implements Comparator<DBContents>{ - - public int compare(DBContents o1, DBContents o2) { - if(o1.getSection() == null || o2.getSection() == null){ - return o1.getId().compareTo(o2.getId()); - } - return o1.getSection().getBook().getId().compareTo(o2.getSection().getBook().getId()); - } -}
--- a/src/main/java/de/mpiwg/web/topicList/fullTextSearch/SortContentByBookName.java Wed May 25 11:11:32 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,16 +0,0 @@ -package de.mpiwg.web.fullTextSearch; - -import java.util.Comparator; - -import de.mpiwg.gazetteer.db.DBContents; -import de.mpiwg.gazetteer.db.DBSection; - -public class SortContentByBookName implements Comparator<DBContents>{ - - public int compare(DBContents o1, DBContents o2) { - if(o1.getSection() == null || o2.getSection() == null){ - return o1.getId().compareTo(o2.getId()); - } - return o1.getSection().getBook().getName().compareTo(o2.getSection().getBook().getName()); - } -}
--- a/src/main/java/de/mpiwg/web/topicList/fullTextSearch/SortContentByDynasty.java Wed May 25 11:11:32 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,16 +0,0 @@ -package de.mpiwg.web.fullTextSearch; - -import java.util.Comparator; - -import de.mpiwg.gazetteer.db.DBContents; -import de.mpiwg.gazetteer.db.DBSection; - -public class SortContentByDynasty implements Comparator<DBContents>{ - - public int compare(DBContents o1, DBContents o2) { - if(o1.getSection() == null || o2.getSection() == null){ - return o1.getId().compareTo(o2.getId()); - } - return o1.getSection().getBook().getDynasty().compareTo(o2.getSection().getBook().getDynasty()); - } -}
--- a/src/main/java/de/mpiwg/web/topicList/fullTextSearch/SortContentById.java Wed May 25 11:11:32 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ -package de.mpiwg.web.fullTextSearch; - -import java.util.Comparator; - -import de.mpiwg.gazetteer.db.DBContents; - -public class SortContentById implements Comparator<DBContents>{ - - public int compare(DBContents o1, DBContents o2) { - return o1.getId().compareTo(o2.getId()); - } -}
--- a/src/main/java/de/mpiwg/web/topicList/fullTextSearch/SortContentByInx.java Wed May 25 11:11:32 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,16 +0,0 @@ -package de.mpiwg.web.fullTextSearch; - -import java.util.Comparator; - -import de.mpiwg.gazetteer.db.DBContents; - - -public class SortContentByInx implements Comparator<DBContents>{ - - public int compare(DBContents o1, DBContents o2) { - if(o1.getInx() == null || o2.getInx() == null){ - return o1.getId().compareTo(o2.getId()); - } - return o1.getInx().compareTo(o2.getInx()); - } -}
--- a/src/main/java/de/mpiwg/web/topicList/fullTextSearch/SortContentByLevel1.java Wed May 25 11:11:32 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,16 +0,0 @@ -package de.mpiwg.web.fullTextSearch; - -import java.util.Comparator; - -import de.mpiwg.gazetteer.db.DBContents; -import de.mpiwg.gazetteer.db.DBSection; - -public class SortContentByLevel1 implements Comparator<DBContents>{ - - public int compare(DBContents o1, DBContents o2) { - if(o1.getSection() == null || o2.getSection() == null){ - return o1.getId().compareTo(o2.getId()); - } - return o1.getSection().getBook().getLevel1().compareTo(o2.getSection().getBook().getLevel1()); - } -}
--- a/src/main/java/de/mpiwg/web/topicList/fullTextSearch/SortContentByLevel2.java Wed May 25 11:11:32 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,15 +0,0 @@ -package de.mpiwg.web.fullTextSearch; - -import java.util.Comparator; - -import de.mpiwg.gazetteer.db.DBContents; - -public class SortContentByLevel2 implements Comparator<DBContents>{ - - public int compare(DBContents o1, DBContents o2) { - if(o1.getSection() == null || o2.getSection() == null){ - return o1.getId().compareTo(o2.getId()); - } - return o1.getSection().getBook().getLevel2().compareTo(o2.getSection().getBook().getLevel2()); - } -}
--- a/src/main/java/de/mpiwg/web/topicList/fullTextSearch/SortContentByPeriod.java Wed May 25 11:11:32 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,16 +0,0 @@ -package de.mpiwg.web.fullTextSearch; - -import java.util.Comparator; - -import de.mpiwg.gazetteer.db.DBContents; - -public class SortContentByPeriod implements Comparator<DBContents>{ - - public int compare(DBContents o1, DBContents o2) { - if(o1.getSection() == null || o2.getSection() == null){ - return o1.getId().compareTo(o2.getId()); - } - return o1.getSection().getBook().getPeriod().compareTo(o2.getSection().getBook().getPeriod()); - } - -}
--- a/src/main/java/de/mpiwg/web/topicList/fullTextSearch/SortContentByStartPage.java Wed May 25 11:11:32 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ -package de.mpiwg.web.fullTextSearch; - -import java.util.Comparator; - -import de.mpiwg.gazetteer.db.DBContents; - -public class SortContentByStartPage implements Comparator<DBContents>{ - - public int compare(DBContents o1, DBContents o2) { - if(o1.getSection() == null || o2.getSection() == null){ - return o1.getId().compareTo(o2.getId()); - } - return o1.getSection().getStart_page().compareTo(o2.getSection().getStart_page()); - } - - -}