Product Page Processing Methods
From Salish Sea Wiki
Technical Pages
- For all pages containing {{Product}}
- If namespace is not "File" or "Main" then flag as "Product in other namespace" and END
- Where free text contains [[Category:Document]] Then:
- Look for four digit number in name string, and make YEAR = four-digit Number, if there is no number then flag as "Document with no year" (a few.. )
- Take text to left of the number and make AUTHOR = left text string (strip of rightmost space)
- Take text to right of the number, starting at first non-space character and make TITLE = right text string; if no text then
- Take all categories and add as comma delimited structured data in the field CATEGORIES
- Where namespace = File Then
- Create a new page with page name AUTHOR + YEAR + TITLE
- Create a link directly to the File Media at the top of the new page
- Add all the free text and structured data created above to the new page
- Delete the original File:Page content and replace with #redirect[[NEWPAGENAME]] //or alternately a link to the main namespace product page?
- Where free text contains [[Category:Dataset]] Then:
- Look for four digit number in name string, and make YEAR = Number, if there is no number then flag as "Document with no year" (a few.. )
- Take text to left of the number and make AUTHOR = left text string (strip of rightmost space)
- Take text to right of the number, starting at first non-space character and make TITLE = right text string; if no text then
- Take all categories and add as comma delimited structured data in the field CATEGORIES
- Where free text contains [[Category:Graphic]] or [[Category:Image]] or [[Category:Map]][[Category:Diagram]]
- Replace {{Product}} with {{Cosmetic Graphic}} //Right now, all the media in the graphic category are just images used to decorate pages. At a later date, they can be "promoted" to full Products if it is merited. We will need to start flagging and managing a set of File namespace media that are in the Cosmetic Image category (as opposed to an graphic that is a product with an author and year).
- If contains [[Category:Webpage]]
- AUTHOR = Null, YEAR = Null
- TITLE = pagename
- Take all categories and add as comma delimited structured data in the field CATEGORIES
- For any remaining product pages flag as "Product without subtype"
//This is to clean up a number of pages in File that contain media that are categorized irregularly, and also assigns them to the template {{Cosmetic Graphic}} so they can be managed more easily later. I will need to do some manual work to sort these... some may become products, and otherwise I'll have to start managing cosmetic graphics separate from products.
- Where page does NOT contain {{Product}} but does contains [[Category:Graphic]] or [[Category:Image]] or [[Category:Map]][[Category:Diagram]] add {{Cosmetic Graphic}} at the top of free text. //This is the support the future cleanup described above.
- File:Acquisition.jpg
- File:Allen quilceda basins.jpg
- File:Butler11x17.pdf
- File:ButlerCrestline11x17.pdf
- File:Chehalis subbasins.jpg
- File:Counties.jpg
- Category:Dataset
- File:Decker-aerial.jpg
- File:Decker-pubowner.jpg
- File:Decker-soils.jpg
- Category:Document
- File:ECOSITE 160k.jpg
- File:Ecosystem Site Discovery Bay.png
- File:Ecosystem Site Port Gamble.png
- File:Ecosystem site lower skykomish floodplain.png
- File:Ecosystem site port susan bay.png
- File:Ecosystem site snow-salmon.png
- File:Ecosystem sites north jefferson.png
- File:Ecosystem sites north thurston.png
- File:Ecosystem sites port susan.png
- File:Estuary salmon recovery.png
- File:Estuary sites.jpg
- File:Floodplains.png
- File:French creek ditches.jpg
- File:French creek watershed.jpg
- File:French creek watershed2.jpg
- Category:Graphic
- File:GreenCove Population.jpg
- File:Green cove mud minnow.png
- File:Greencovecreek.jpg
- File:Greencovecreek.pdf
- File:Headwaters of the salish sea.jpg
- File:HendersonEcoregion.jpg
- File:Henderson Inlet Watershed.pdf
- File:Historical edmonds marsh.jpg
- File:Kitsap sediment assessment.jpg
- File:Lake Stevens.png
- File:Lopez.pdf
- File:Lopez waterflow.pdf
- File:LowStilly estuary elevation.pdf
- File:LowStilly estuary parcel.pdf
- File:LowStilly lower elevation.pdf
- File:LowStilly lower parcel.pdf
- File:LowStilly sylvana elevation.pdf
- File:LowStilly sylvana parcel.pdf
- File:LowStilly upper elevation.pdf
- File:LowStilly upper parcel.pdf
- File:Lower Stillaguamish.pdf
- File:Lower Stillaguamish Agriculture.pdf
- File:Lower Stillaguamish DEM.pdf
- File:Lower snohomish watershed.pdf
- File:Lower stillaguamish floodplain.png
- File:Lower stillaguamish floodplain parcels.pdf
- File:Mission creek watershed.png
- File:Nisqually delta current.jpg
- File:Olympia shoreline change.jpg
- File:Pierce levee setbacks.jpg
- File:Port Townsend ecosystem site.png
- File:Scatter creek.jpg
- File:Schneider creek GLO.jpg
- File:Schneider creek aerial.jpg
- File:Schneider creek overview.jpg
- File:Skagit-stillaguamish delta site.png
- File:Skokomish.png
- File:SnoSky Confluence DEM.jpg
- File:Snohomish Schematic.png
- File:Snohomish delta after.jpg
- File:Snohomish riparian zone management pilot.png
- File:Southernmost salish sea.jpg
- File:Stillaguamish Delta LiDAR 2013b.jpg
- File:The Southernmost Salish Sea.pdf
- File:Thomas creek.jpg
- File:Watersheds of Olympia.jpg
- Category:Website