Comments (9)
I think this is the logic i use, if helpful. I have it in every language but js or ts lol https://github.com/bmlt-enabled/meetings-by-venue-type/tree/main/src
https://github.com/bmlt-enabled/meetings-by-venue-type/blob/main/src/php/main.php#L104
from bmltsearch3.
Sure, this makes sense. I'll add this to the next release.
from bmltsearch3.
Fixed in #30
from bmltsearch3.
Paul, I know you closed this and said you would implement it but the newest version doesn't do this. Here's a screenshot I just took this morning. This is a virtual meeting temporarily replacing an in-person one and the physical location info is still being displayed.
from bmltsearch3.
OK, so I think the format that was catching me out was "Virtual (temporarily replacing an in-person)". It looks like there is not a separate shortcode for this format, but a meeting is a "Virtual (temporarily replacing an in-person)" meeting if it has both the TC (temporarily closed) format and Virtual Meeting formats.
Is that about right?
from bmltsearch3.
Ah, yes. I didn't take a look at your logic yet, but basically, if the meeting is VM, then the location, address, and extra info fields should be ignored because those all pertain to physical location. For virtual only meetings those fields should be empty and for virtual meetings that are temporarily replacing an in-person, there's info in the fields but we want to ignore it because it's not pertinent while the meeting is virtual.
But if you want to specifically query for VM & TC then that works.
from bmltsearch3.
I'm looking at the php code specifically... this is the section we're talking about that makes the determination which function to use to display the different info?
foreach ($meetings as $meeting) {
$formats = explode(",", $meeting['formats']);
if (!in_array("VM", $formats) && !in_array("TC", $formats) && !in_array("HY", $formats)) {
$inperson++;
} elseif (in_array("VM", $formats) && !in_array("TC", $formats) && !in_array("HY", $formats)) {
$virtual++;
} elseif (in_array("VM", $formats) && in_array("TC", $formats) && !in_array("HY", $formats)) {
$tempvirtual++;
$virtual++;
} elseif (!in_array("VM", $formats) && !in_array("TC", $formats) && in_array("HY", $formats)) {
$hybrid++;
} elseif (in_array("VM", $formats) && !in_array("TC", $formats) && in_array("HY", $formats)) {
$hybrid++;
}
$total_meetings++;
}
from bmltsearch3.
@tempsaint I've made the changes you requested, and I have them running on https://bmltsearch.bmlt.app to test.
Could you have a look and see if the meeting lists are behaving as you would expect? Thanks
from bmltsearch3.
Released in https://github.com/bmlt-enabled/BMLTSearch3/releases/tag/v4.01.00
from bmltsearch3.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bmltsearch3.