Dev: Work: Difference between revisions

Jump to navigation Jump to search
5,374 bytes added ,  10 August 2021
m
no edit summary
mNo edit summary
mNo edit summary
(33 intermediate revisions by 2 users not shown)
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.


{| 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 ==
== Work in progress: Beth ==
from latest to oldest
from latest to oldest
<Other introductory commentary>


[[#BillsWIP|Jump to Bill's work in progress]]
[[#BillsWIP|Jump to Bill's work in progress]]
Line 12: Line 26:
<span id="BethsWIP">
<span id="BethsWIP">
{| class="wikitable"
{| class="wikitable"
|+ Beth's work in progress
! Date !! Who !! To what !! What !! Why !! Status
! Date !! Who !! To what !! What !! Why !! Status
|-
|-
Line 67: Line 82:
</span>
</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
|-
| 2021-07-24 || Ernst || Ernst's playground German home page || Home page in German || To begin to work in the wiki || In progress
|-
| 08.08.2021 || Ernst || [[Erläuterung für MementoWorld : Installation ]] || Installation || Zum Testen || Anfang
|}
</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 ==
== Work in progress: Bill ==
* Order is from latest to oldest
Order is from latest to oldest
* A green background => work is actively under way
 
<Other introductory commentary>


[[#BethsWIP|Jump to Beth's work in progress]]
[[#BethsWIP|Jump to Beth's work in progress]]
[[#ErnstsWIP|Jump to Ernst's work in progress]]


<span id="BillsWIP">
<span id="BillsWIP">
{| class="wikitable"
{| class="wikitable"
! Date !! Who !! To what !! What !! Why !! Status
|+ 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"
|- bgcolor="#E8F0E8"
| 2021-04-30 || Bill || [[Glossary]]
| 2021-04-30 || Bill || [[Glossary]]
Line 130: Line 194:
</span>
</span>


[[#BillsWIP|Jump to Bill's work in progress]]
[[#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.


[[#BethsWIP|Jump to Beth's work in progress]]
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.
|}


== Work completed ==
== Work completed ==
Line 194: Line 360:
|}
|}


== Scratchpad ==
== Joint scratchpad ==
'''''The 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.
[http://timeanddate.com|TimeAndDate.com]
 
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).


[[Category: Dev]]
[[Category: Dev]]

Navigation menu