Project

General

Profile

« Previous | Next » 

Revision 9872

handle redirecting Metacat "shortcut" URLs when docid is given with and without revision. https://projects.ecoinformatics.org/ecoinfo/issues/7063

View differences:

src/edu/ucsb/nceas/metacat/MetaCatServlet.java
754 754
					// see: https://projects.ecoinformatics.org/ecoinfo/issues/6546
755 755
					if (!skin.equals("xml")) {
756 756
						String uiContext = PropertyService.getProperty("ui.context");
757
						String docidNoRev = DocumentUtil.getDocIdFromAccessionNumber(docidToRead);
757
						String docidNoRev = DocumentUtil.getSmartDocId(docidToRead);
758 758
						int rev = DocumentUtil.getRevisionFromAccessionNumber(docidToRead);
759 759
						String pid = null;
760 760
						try {

Also available in: Unified diff