Changes

Jump to navigation Jump to search
7,732 bytes added ,  01:39, 11 August 2021
m
no edit summary
Line 1: Line 1: −
{{Stamp|2021-04-18|4.10.0|1.9.6}}
+
{{Stamp|2021-05-01|4.10.0|1.10.0}}
    
= Memento Wiki development work =
 
= Memento Wiki development work =
Line 5: Line 5:  
This is the development page summarizing all work under way, planned, & completed.
 
This is the development page summarizing all work under way, planned, & completed.
   −
== Work in progress ==
  −
from latest to oldest, Beth's then Bill's
   
{| class="wikitable"
 
{| class="wikitable"
 +
|+ Urgency legend
 +
! Shade !! Code !! Urgency
 +
|- bgcolor="#E8F0E8"
 +
| Light green || #E8F0E8 || Active
 +
|- bgcolor="#F0EEEE"
 +
| Beige || #F0EEEE || In progress
 +
|-
 +
| None || || Inactive
 +
|}
 +
 +
<hr><hr>
 +
== Work in progress: Beth ==
 +
from latest to oldest
 +
 +
<Other introductory commentary>
 +
 +
[[#BillsWIP|Jump to Bill's work in progress]]
 +
 +
<span id="BethsWIP">
 +
{| class="wikitable"
 +
|+ Beth's work in progress
 
! Date !! Who !! To what !! What !! Why !! Status
 
! Date !! Who !! To what !! What !! Why !! Status
|-
  −
| colspan="6" bgcolor="#F0E8E0" style="Text-align: center;" | '''&mdash;&mdash;&mdash;&nbsp; BETH'S WORK&nbsp;&mdash;&mdash;&mdash;'''
   
|-
 
|-
 
| 2021-04-17|| Beth
 
| 2021-04-17|| Beth
Line 17: Line 34:  
| Create docs for the desktop edition
 
| Create docs for the desktop edition
 
| Just assigned
 
| Just assigned
|-
+
|- bgcolor="#E0E8F0"
| colspan="6" style="Text-align: center;" | '''&mdash;&nbsp;Desktop Edition Overview pages&nbsp;&mdash;'''
+
| colspan="6" style="Text-align:center;" | '''&mdash;&nbsp;Desktop Edition Overview pages&nbsp;&mdash;'''
 
|-
 
|-
 
| 2021-04-17|| Beth
 
| 2021-04-17|| Beth
Line 25: Line 42:  
| Create docs for the desktop edition
 
| Create docs for the desktop edition
 
| Just assigned
 
| Just assigned
|-
+
|- bgcolor="#E0E8F0"
| colspan="6" style="Text-align: center;" | '''&mdash;&nbsp;Desktop Edition Spec pages&nbsp;&mdash;'''
+
| colspan="6" style="Text-align:center;" | '''&mdash;&nbsp;Desktop Edition Spec pages&nbsp;&mdash;'''
 
|-
 
|-
 
| 2021-04-17|| Beth
 
| 2021-04-17|| Beth
Line 62: Line 79:  
| Create docs for the desktop edition
 
| Create docs for the desktop edition
 
| Just assigned
 
| Just assigned
 +
|}
 +
</span>
 +
 +
== Beth's scratchpad ==
 +
This is example content of Beth's scratchpad
 +
 +
<hr><hr>
 +
== Work in progress: Ernst ==
 +
from latest to oldest
 +
 +
<Other introductory commentary>
 +
 +
[[#BethsWIP|Jump to Beth's work in progress]]
 +
 +
[[#BillsWIP|Jump to Bill's work in progress]]
 +
 +
<span id="ErnstsWIP">
 +
{| class="wikitable"
 +
|+ Ernst's work in progress
 +
! Date !! Who !! What page !! What work !! Why !! Status
 
|-
 
|-
| colspan="6" bgcolor="#F0E8E0" style="Text-align: center;" | '''&mdash;&mdash;&mdash;&nbsp; BILL'S WORK&nbsp;&mdash;&mdash;&mdash;'''
+
| 2021-07-24 || Ernst || Ernst's playground German home page || Home page in German || To begin to work in the wiki || In progress
 
|-
 
|-
| 2021-04-15 || Bill || [[Doc: WikiDev work]]
+
| 08.08.2021 || Ernst || [[Erläuterung für MementoWorld : Installation ]] || Installation || Zum Testen || Anfang
| Establish WikiDev work record &mdash; work completed & work in progress with summary status
+
|}
 +
</span>
 +
 
 +
[[#BethsWIP|Jump to Beth's work in progress]]
 +
 
 +
[[#BillsWIP|Jump to Bill's work in progress]]
 +
 
 +
== Ernst's scratchpad ==
 +
<span id="ErnstsScratchpad">
 +
 
 +
;Link for Ernst to use for new pages to play & test with
 +
:[[Dev:Ernst's playground|Link to Ernst's playground]]
 +
 
 +
</span>
 +
 
 +
[[#BethsWIP|Jump to Beth's work in progress]]
 +
 
 +
[[#BillsWIP|Jump to Bill's work in progress]]
 +
 
 +
<hr><hr>
 +
== Work in progress: Bill ==
 +
Order is from latest to oldest
 +
 
 +
<Other introductory commentary>
 +
 
 +
[[#BethsWIP|Jump to Beth's work in progress]]
 +
 
 +
[[#ErnstsWIP|Jump to Ernst's work in progress]]
 +
 
 +
<span id="BillsWIP">
 +
{| class="wikitable"
 +
|+ Bill's work in progress
 +
! Date !! Who !! What page !! What work !! Why !! Status
 +
|- bgcolor="#E8F0E8"
 +
| 2021-07-04 || Bill || [[Bill's mementos]]
 +
| Publish initial memento
 +
| Kick off the mementos & tutorials thing
 +
| Actively under way
 +
|- bgcolor="#E8F0E8"
 +
| 2021-04-30 || Bill || [[Glossary]]
 +
| Update
 +
| In general, but especially to support the case study table
 +
| Actively under way
 +
|- bgcolor="#E8F0E8"
 +
| 2021-04-28 || Bill || [[Case Study:Designing Memento Databases:Photographic equipment]]
 +
| Develop based on Sergio's forum thread
 +
| Tutorial/How/ series
 +
| Actively under way
 +
|-
 +
| 2021-04-24 || Bill || [[Tips:Using JavaScript in Memento#JavaScript Coding Style Guidelines]]
 +
| Code the section
 +
| Was planned long ago and never written
 +
| Assigned
 +
|- bgcolor="#E8F0E8"
 +
| 2021-04-24 || Bill || [[How:Write scripts in JavaScript for Memento]]
 +
| Update stub page to completion
 +
| Was originally planned to be completed long ago & was forgotten
 +
| In progress
 +
|- bgcolor="#E8F0E8"
 +
| 2021-04-23 || Bill || [[Scripting]]
 +
| Update stub page to completion
 +
| Was originally planned to be completed long ago & was forgotten
 +
| In progress in earnest
 +
|- bgcolor="#F0EEEE"
 +
| 2021-04-14 || Bill || [[Dev: Work]]
 +
| Establish Dev work record &mdash; work completed & work in progress with summary status
 
| Latest piece of the reduced implementation of the quashed effort to establish a development within the wiki &mdash; implementing just the Bare Essentials
 
| Latest piece of the reduced implementation of the quashed effort to establish a development within the wiki &mdash; implementing just the Bare Essentials
| Covered the last 30 days of work; will probably need to extend coverage back a little
+
| 95% done. Just need to enter my best recollection of older work
|-
+
|- bgcolor="#F0EEEE"
 
| 2021-04-14 || Bill || [[Doc: Home]]
 
| 2021-04-14 || Bill || [[Doc: Home]]
 
| Create documentation of the wiki, its parts, how they work, etc
 
| Create documentation of the wiki, its parts, how they work, etc
Line 89: Line 191:  
| It's very clear from reading the forum that many people would take better advantage of Memento if they could program it in JS, and many more could benefit from learning to do it better.
 
| It's very clear from reading the forum that many people would take better advantage of Memento if they could program it in JS, and many more could benefit from learning to do it better.
 
| The How page has just begun & the Overview page is still to be done
 
| The How page has just begun & the Overview page is still to be done
 +
|}
 +
</span>
 +
 +
[[#BethsWIP|Jump to Beth's work in progress]]
 +
 +
[[#ErnstsWIP|Jump to Ernst's work in progress]]
 +
 +
== Bill's scratchpad ==
 +
{| class="wikitable"
 +
! Colors
 +
|- bgcolor="#E8F0E8"
 +
|
 +
=== Sergio's photographic equipment email ===
 +
I have a LOT of camera equipment (Camera, Lens, Filters, tripods, bags, etc.). I want to be able to create records of all of this equipment for personal inventory as well as insurance purposes.
 +
 +
So far, none of the prebuilt programs I have looked at covered all of the data that I wanted to track on a per item basis, so I decided to use this program, some research into existing templates and a lot of soul-searching to create my own me-friendly database. So far so good. I spent all day yesterday architecting  starting database. As will all programming, there will be further minor changes (new fields, verbiage tweaks, section grouping changes, etc.). That said, I am very happy with my initial go at this.
 +
 +
So, in this bare bones example, I have a camera entry, a lens entry, and a filter entry.
 +
In real life, ALL three of these items are physically part of the same "group/unit", The Lens is attached to the camera body and the filter is attached to that particular lens.
 +
While I still want to keep each item as their own separate record, I also want to link these 3 records together to visually show this relationship. And at some point, i want this grouping be part of a larger grouping (in a camera bag with other items for example).
 +
|}
 +
 +
=== Gallery ===
 +
<gallery>
 +
file:file_name.ext|caption|alt=alt language
 +
</gallery>
 +
 +
=== WikiMedia lists (bulleted & numbered) ===
 +
* Or create mixed lists
 +
*# and nest them
 +
*#* like this.
 +
*#*; Fruits
 +
*#*: Apple
 +
*#*: Blueberry
 +
 +
=== Bill's mementos ===
 +
# Introducing Bill's mementos & tutorials
 +
# The simple task list
 +
#* The simple task list tutorial
 +
#* The simple task list enhancements
 +
 +
=== Bill's tutorials ===
 +
# Single-library solutions
 +
## Lists
 +
### The simple task list
 +
### The simple task list enhancements
 +
 +
=== Bill's examples ===
 +
# Single-library solutions
 +
## Lists
 +
### The simple task list
 +
### The simple task list enhancements
 +
 +
<hr><hr>
 +
 +
=== Example: Making a Shared library function available & call-in it from a trigger or action ===
 +
{| class="wikitable"
 +
! From forum email
 +
|+ Considering scripting Memento
 +
|- bgcolor="#E8F0E8"
 +
| stary-@live.com, Aug 10 2021
 +
If you want to extend Memento with JavaScript, I suggest you read the wiki, so you can learn how to do it. If you want to use the simplest scripts, you could try using a JavaScript field, but it doesn't have fancy global functions like set() or link() or libByName(), but it does have simple global functions like field();
 +
 +
If you decide a usually simple JavaScript field is for you, read this page...
 +
JavaScript field, or...
 +
https://wiki.mementodatabase.com/index.php/JavaScript_field
 +
 +
If a fancy, probably longer script is what you feel you need, read this page, for starters, since all the other stuff is based on: Memento Javascript Library, or...
 +
https://wiki.mementodatabase.com/index.php/Memento_JavaScript_Library
 +
 +
If you're going for the fancier stuff & have read the MJL page, you can then branch out into various directions, depending on what you want to do next...
 +
 +
* For a button in the libraries list screen or a button in an edit view card (assuming mobile Memento): Actions, or...
 +
https://wiki.mementodatabase.com/index.php/Actions
 +
 +
* For a script to run automatically when certain things happen in certain circumstances: Triggers, or...
 +
https://wiki.mementodatabase.com/index.php/Triggers, or...
 +
 +
...and...
 +
Trigger examples: Trigger examples, or...
 +
https://wiki.mementodatabase.com/index.php/Trigger_examples
 +
 +
The rest of the MJL-based JavaScript pages are for other, less-often-used scripts...
 +
https://wiki.mementodatabase.com/index.php/Data_Sources, or...
 +
https://wiki.mementodatabase.com/index.php/How:Write_scripts_in_JavaScript_for_Memento, or...
 +
https://wiki.mementodatabase.com/index.php/Tips:Using_JavaScript_in_Memento
 +
|- bgcolor="#E8F0E8"
 +
|
 +
For a shared function definition, it should be...
 +
<pre>
 +
function sub(fieldname, fieldvalue) {
 +
    entry().set(fieldName, fieldValue);
 +
}
 +
</pre>
 +
Then call that in a trigger, action, or whatever with this...
 +
<pre>
 +
sub("name", "bullet");
 +
</pre>
 +
On Tue, Aug 10, 2021, 16:34 Bill Crews <bill.crews@gmail.com> wrote:
 +
Hide quoted text
 +
We know only what we can glean ... That there is a field named "name" and a value "bullet" that you want to go into that field. If it's a shared script, why does it call a global function field()? There is no such global function. There must be a "current entry" for that, and shared scripts (like most other things) don't work for JavaScript fields.
 +
 +
If you tell us more, we can be of more help, but all I can do is guess that the following is what you want...
 +
 +
It must be a trigger script or an action script located in an entry. This enables the entry() global function to work, so there is a "current" entry.
 +
 +
So, <code> entry().set("name", "bullet"); </code> is all the script you need, if your objective is to set that field's value to "button". If you're wanting to do something else, you might consider telling what that is.
 
|}
 
|}
   Line 151: Line 360:  
|}
 
|}
   −
== Notes ==
+
== Joint scratchpad ==
    +
[http://timeanddate.com|TimeAndDate.com]
    
[[Category: Dev]]
 
[[Category: Dev]]

Navigation menu